/* -------------------- SHARED SITE SHELL -------------------- */
/* Header desktop: stile v1. Menu mobile e footer: condivisi da tutte le pagine. */

:root {
  --shell-accent: #c9181f;
  --shell-text: #181818;
}

/* -------------------- SHARED HEADER -------------------- */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 165px;
  height: 66px;
  object-fit: contain;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--shell-text);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--shell-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-navigation a:hover::after,
.site-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* In modalità desktop il testo resta sempre nero: lo stato attivo è indicato solo dalla linea rossa. */
.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
  color: var(--shell-text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--shell-text);
}

/* -------------------- SHARED FOOTER - STYLE V2 -------------------- */
.site-footer {
  padding: 0;
  color: #ffffff;
  background: #333333;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 145px;
  align-items: center;
  gap: 30px;
}

.footer-brand img {
  width: 150px;
  height: 78px;
  object-fit: contain;
}

.footer-email {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0;
  font-weight: 700;
  text-decoration: none;
}

.social-links a::before {
  font-size: 1.35rem;
  line-height: 1;
}

.social-links a:nth-child(1) {
  background: #4267a9;
}

.social-links a:nth-child(1)::before {
  content: "f";
}

.social-links a:nth-child(2) {
  background: #d62d8a;
}

.social-links a:nth-child(2)::before {
  content: "◎";
}

.social-links a:nth-child(3) {
  background: #ff0000;
}

.social-links a:nth-child(3)::before {
  content: "▶";
  font-size: 1rem;
}

.social-links a:hover,
.footer-email:hover {
  color: #ffffff;
  opacity: 0.86;
}

.copyright {
  display: none;
}

/* -------------------- ABOUT PAGE COUNTERS -------------------- */
.stats-section .stat strong,
.stats-section .stat span {
  color: #ffffff;
}

/* -------------------- SUPPORT DOWNLOAD LINKS -------------------- */
.download-section {
  cursor: default;
}

.download-list a {
  cursor: pointer;
}

/* -------------------- SHARED MOBILE MENU -------------------- */
@media (max-width: 991px) {
  .header-content {
    min-height: 78px;
  }

  .brand img {
    width: 128px;
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 78px);
    gap: 4px;
    overflow-y: auto;
    padding: 16px 25px 22px;
    border-top: 1px solid #dddddd;
    background: #ffffff;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.12);
  }

  .site-navigation.is-open {
    display: grid;
  }

  .site-navigation a {
    padding: 10px 0;
    color: var(--shell-text);
  }

  .site-navigation a::after {
    display: none;
  }

  .site-navigation a:hover,
  .site-navigation a[aria-current="page"] {
    color: var(--shell-accent);
  }

  .footer-content {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding: 25px 0;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 115px;
  }
}


/* -------------------- FORM SUBMISSION STATUS -------------------- */
.form-submit-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.form-submit-status.is-error {
  color: #b00020;
}
