/* --- FONT PERSONALIZZATO SOFACHROME --- */
@font-face {
  font-family: 'Sofachrome';
  src: url('fonts/Sofachrome-Regular.woff2') format('woff2'),
       url('fonts/Sofachrome-Regular.woff') format('woff'),
       url('fonts/Sofachrome-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- RESET E BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background: 
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
    url('img/solare_sfondo.webp') center center / cover no-repeat fixed;
  color: #222;
  line-height: 1.5;
}

/* --- MENU NAV RESPONSIVE --- */
.main-nav {
  position: absolute;
  top: 40px;
  right: 32px;
  z-index: 10;
  font-family: Arial, sans-serif;
}
.menu {
  list-style: none;
  display: flex;
  gap: 24px;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  align-items: center;
}
.menu li a {
  color: #004080;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}
.menu li a:hover {
  color: #ff8800;
  background: #f2f2f2;
}
.menu-toggle,
.menu-icon {
  display: none;
}

/* --- MOBILE MENU --- */
@media (max-width: 700px) {
  .main-nav {
    top: 14px;
    right: 10px;
  }
  .menu {
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 44px;
    right: 0;
    background: rgba(255,255,255,0.97);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 12px 18px;
    min-width: 140px;
    display: none;
  }
  .menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
  .menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    z-index: 11;
  }
  .menu-icon span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background: #f5f2f0;
    border-radius: 2px;
    transition: 0.3s;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: url('img/sfondo_high_res.webp') center/cover no-repeat;
  width: 100%;
  min-height: 250px; /* <<< MODIFICA EFFETTUATA QUI */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 12px;
}

/* LOGO IN ALTO A SINISTRA, GRANDE */
.logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 20px;
  left: 30px;
  margin-bottom: 0;
  z-index: 2;
}

.hero-text {
  width: 100%;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px; /* Sposta in basso i testi della hero */
  transform: translateY(-20px); /* Prova anche -10px o -30px se vuoi più o meno spostamento */
}
.hero-title {
  color: #fff;
  font-size: 2.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.15;
}
.hero-subtitle {
  color: #fff;
  font-size: 1.1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.cta-button {
  background-color: #ff8800;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  letter-spacing: 1px;
  text-decoration: none;
}
.cta-button:hover {
  background-color: #e67600;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
}

/* --- LOGO A SOFACHROME --- */
.logo-A {
  font-family: 'Sofachrome', Arial, sans-serif;
  font-size: 1.2em;
  color: #fff;
  position: relative;
  top: -2px; /* Allineamento verticale migliorato */
  margin-right: 4px;
}

/* --- SEZIONI GENERALI --- */
.section-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin: 40px 0 0 0;
  width: 100%;
  gap: 40px;
}
.section-block {
  max-width: 600px;
  flex: 1 1 320px;
  min-width: 260px;
  margin: 0 20px 30px 20px;
  text-align: left;
  background: none;
  padding: 0;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}
.section-paragraph {
  margin-top: 4px;
  text-align: justify; /* GIUSTIFICATO COME NEI LIBRI */
}
.section-features {
  margin-top: 4px;
}
.scheda-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.feature-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 32px;
  color: #274483;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 2px;
}
.feature-desc {
  font-size: 0.98rem;
  color: #666;
  margin: 0;
  line-height: 1.3;
}
.download-item .download-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff8800;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 2px;
}
.download-item .download-link:hover {
  color: #e67600;
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background-color: #004080;
  color: #fff;
  padding: 24px 10px 18px 10px;
  font-size: 1.1rem;
  text-align: center;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-section {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.footer-brand {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.15em;
}
.footer-section a, .footer-section address {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.footer-section a:hover {
  color: #25D366;
  text-decoration: underline;
}
.footer-section .separator {
  margin: 0 12px;
  user-select: none;
}
.social-icons a {
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
}
.social-icons a:first-child {
  margin-left: 0;
}
.social-icons a:hover {
  color: #25D366;
}
.whatsapp-btn {
  background-color: #25D366;
  border-radius: 50%;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  margin-left: 18px;
  transition: background-color 0.3s;
}
.whatsapp-btn:hover {
  background-color: #1ebe57;
}

/* Forza l'indirizzo in stampatello (normale) */
footer address {
  font-style: normal;
}

/* --- RESPONSIVE: TABLET --- */
@media (max-width: 900px) {
  .hero {
    min-height: 220px;
    padding: 36px 8px;
  }
  .logo {
    width: 180px;
    top: 10px;
    left: 10px;
  }
  .hero-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 12px;
  }
  .section-row {
    flex-direction: column;
    gap: 0;
    margin: 32px 0 0 0 !important;
  }
  .section-block {
    margin: 0 0 30px 0;
    max-width: 100%;
    min-width: 0;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-section {
    white-space: normal;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .footer-section .separator {
    display: none;
  }
  .social-icons a,
  .whatsapp-btn {
    margin-left: 10px;
    margin-right: 10px;
  }
  .social-icons a:first-child {
    margin-left: 0;
  }
}

/* --- RESPONSIVE: MOBILE --- */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0;
    margin: 0;
  }
  .hero {
    min-height: 140px;
    padding: 32px 4px;
  }
  .logo {
    width: 170px !important;
    top: 20px !important;
    left: 16px !important;
    position: absolute !important;
  }
  .hero-text {
    margin-top: 40px; /* Un po' meno su mobile */
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.2;
    padding: 0 2px;
    margin-bottom: 7px;
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.3;
    padding: 0 2px;
    margin-bottom: 12px;
    word-break: break-word;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 8px 18px;
  }
  .section-row,
  .section-block {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 6px !important;
    margin: 0 0 14px 0 !important;
    box-sizing: border-box;
  }
  .section-row {
    margin-top: 32px !important;
  }
  img, .scheda-img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-section {
    white-space: normal;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .footer-section .separator {
    display: none;
  }
  .social-icons a,
  .whatsapp-btn {
    margin-left: 16px;
    margin-right: 16px;
  }
  .social-icons a:first-child {
    margin-left: 0;
  }
  h1, h2, h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
  }
  p, li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  /* Centra il titolo "Scheda di controllo per inseguitori solari" solo su mobile */
  .section-block:first-child .section-title {
    text-align: center;
  }
  /* Centra il titolo "Caratteristiche principali" solo su mobile */
  .section-block:nth-child(2) .section-title {
    text-align: center;
  }
}

/* --- STILI PER SELETTORE LINGUA (BANDIERINE) --- */
.language-switcher {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}
.language-switcher a img {
  width: 28px;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.language-switcher a:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.language-switcher a.inactive-lang {
  opacity: 0.6;
}
.language-switcher a.inactive-lang:hover {
  opacity: 1;
}
@media (max-width: 700px) {
  .language-switcher {
    margin-left: 0 !important;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    justify-content: center;
    width: 100%;
  }
}

/* --- FINE CSS --- */