/* styles.css - VERSIONE DEFINITIVA (SHOP + COOKIE BANNER FIX) */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER BASE */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  /* Effetto traslucido moderno */
  background: #ffffffee;
  backdrop-filter: blur(6px);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.nav-logo-text span:last-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #777;
}

.nav-menu {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-menu a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: #444;
}

.nav-menu a:hover {
  border-bottom-color: #008fd3;
  color: #008fd3;
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #008fd3;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
}

.nav-cta:hover {
  background: #0074ac;
}

/* LOGO HERO CENTRALE */
.logo-hero {
  text-align: center;
  background: #fff;
  padding: 2rem 0 1.2rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.logo-hero-inner img {
  width: 260px;
  max-width: 70%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
}

/* HERO CARTOON */
.hero-cartoon {
  position: relative;
  background: url("img/cartoon.jpg") center center / cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  z-index: 1;
  padding: 2rem;
  position: relative;
  top: -90px;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hero-text h1 span {
  color: #00a0e5;
}

.hero-text .btn-outline {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.hero-text .btn-outline:hover {
  background: #00a0e5;
  border-color: #00a0e5;
  color: #fff;
}

/* SEZIONI */
.section {
  padding: 3rem 1.5rem;
}

.section.alt {
  background: #f7f8fa;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

ul {
  margin-left: 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

ul li {
  margin-bottom: 0.4rem;
}

/* IMMAGINI */
img {
  max-width: 100%;
  height: auto;
}

.content-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  background: #fff;
  text-align: center;
}

.content-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* FORM */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

/* FOOTER */
.site-footer {
  background: #333333;
  color: #f0f0f0;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 2rem;
}

.site-footer strong {
  color: #ffffff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #ddd;
  margin: 0 0.4rem;
}

.footer-links a:hover {
  color: #00a0e5;
}

.footer-links span {
  color: #777;
}

/* HERO SHOP */
.hero-shop {
  position: relative;
  background: url("img/BACK_S.jpg") center center / cover no-repeat;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-top: 60px;
}

.hero-shop .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shop .hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero-shop .hero-text span {
  color: #00a0e5;
}

.hero-shop .hero-text p {
  font-size: 1.1rem;
  color: #f3f3f3;
}

/* DECORATIVE SECTION BACKGROUNDS */
.section.soft-blue {
  background: #f3f8ff;
}

.section.soft-yellow {
  background: #fff8e6;
}

.section.soft-green {
  background: #f2fbf4;
}

/* Eyebrow label above titles */
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #008fd3;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Icon lists */
.icon-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.icon-list span.icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #e7f4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.icon-list li:nth-child(2) span.icon { background: #ffecc7; }
.icon-list li:nth-child(3) span.icon { background: #eaf7ec; }
.icon-list li:nth-child(4) span.icon { background: #f3e9ff; }
.icon-list li:nth-child(5) span.icon { background: #ffe6f0; }

/* Subpage hero background */
.section.hero {
  background: linear-gradient(135deg, #f3f8ff 0, #ffffff 40%, #fff8e6 100%);
  border-bottom: 1px solid #e5e5e5;
}

/* === NAVBAR PIÙ EVIDENTE (DESKTOP) === */
header {
  background: #ffffffee; /* leggermente traslucido */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #dcdcdc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-menu {
  gap: 1.8rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav-menu a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border-bottom: 2px solid transparent;
  color: #333;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  border-bottom-color: transparent;
  background: #e6f3ff;
  color: #007acc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.nav-cta {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Link istruzioni sotto il logo in home */
.instructions-link-text {
  margin-top: 0.75rem;
  text-align: center;
}
/* --- INCOLLA QUESTO NUOVO --- */
.btn-text-link {
  font-size: 1.25rem;       /* Molto più grande */
  font-weight: 700;         /* Grassetto */
  color: #008fd3;
  text-decoration: none;
  border-bottom: 2px solid #008fd3; /* Sottolineatura più spessa */
  padding-bottom: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 5px;
}

.btn-text-link:hover {
  color: #006fa3;
  background-color: #eef7fc; /* Sfondo azzurrino al passaggio del mouse */
  border-bottom-color: transparent;
  padding: 4px 10px;        /* Effetto bottone */
  border-radius: 5px;
}

/* Pagina istruzioni d’uso */
.instructions-page .section-inner {
  max-width: 860px;
}

.instructions-box {
  margin-top: 1.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 12px;
  background: #f5fbff;
  border: 1px solid #d6e9f7;
}

.instructions-box h2 {
  margin-bottom: 0.75rem;
}

.instructions-box ul {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.instructions-box li {
  margin-bottom: 0.4rem;
}

.instructions-consent {
  border-top: 1px solid #e1eef8;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

.small-note {
  font-size: 0.8rem;
  color: #666;
  margin: 0.75rem 0 1rem;
}

/* Stato disabilitato per il bottone download */
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}


/* =========================================
   RESPONSIVE - MENU MOBILE (Hamburger)
   ========================================= */

/* 1. Nascondiamo il pulsante hamburger su Desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  padding: 0.5rem;
}

/* 2. Regole solo per schermi piccoli (max 860px) */
@media (max-width: 860px) {
  /* Layout Navbar: Spazio tra Logo e Hamburger */
  .navbar {
    position: relative;
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  /* Mostriamo il pulsante Hamburger */
  .nav-toggle {
    display: block; 
  }

  /* Il menu di default è NASCOSTO */
  .nav-menu {
    display: none; 
    position: absolute;
    top: 100%; /* Si apre sotto la barra */
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 0;
    gap: 0;
    z-index: 9999;
  }

  /* Quando aggiungiamo la classe "active" col click, diventa FLEX (visibile) */
  .nav-menu.active {
    display: flex;
    padding-bottom: 1rem;
  }

  /* Stile dei link nel menu mobile */
  .nav-menu a {
    padding: 1rem 2rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
    
    /* Reset stili desktop "pillola" */
    border-radius: 0; 
    background: transparent;
    margin: 0;
    box-shadow: none;
    color: #333; 
  }
  
  .nav-menu a:hover {
    background: #f9f9f9;
    color: #008fd3;
    border-bottom-color: #f5f5f5;
  }

  /* FIX DEFINITIVO: Bottone SHOP a sinistra */
  .nav-menu .nav-cta {
    display: inline-block;
    width: auto;
    margin: 1.5rem 0 0.5rem 2rem; /* Margine per allinearlo */
    text-align: center;
    background: #008fd3 !important; 
    color: #ffffff !important;      
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    border-bottom: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  /* Effetto click sul mobile */
  .nav-menu .nav-cta:active {
    background: #0074ac !important;
    transform: translateY(1px);
  }

  /* Adattamenti layout mobile generali */
  .hero-text h1 { font-size: 1.8rem; }
  .hero-cartoon, .hero-shop { height: 50vh; }
  .hero-text { top: -20px; padding: 1.5rem; }
  .logo-hero-inner img { width: 180px; }
  .two-columns, .contact-grid { grid-template-columns: 1fr; }
  .checkbox-row { flex-direction: row; }
}


/* =========================================
   TASTO SHOP FLUTTUANTE (Sticky Button)
   ========================================= */
.shop-float {
  position: fixed;
  bottom: 20px;       /* Distanza dal fondo */
  right: 20px;        /* Distanza da destra */
  background-color: #008fd3; /* Colore Blu del tuo brand */
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: 50px; /* Forma a pillola arrotondata */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ombra per staccarlo dallo sfondo */
  z-index: 10000;     /* Assicura che stia SOPRA a tutto il resto */
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px; /* Spazio tra eventuale icona e testo */
}

/* Effetto quando ci passi sopra col mouse */
.shop-float:hover {
  background-color: #0074ac;
  transform: translateY(-3px); /* Si alza leggermente */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* =========================================
   BANNER COOKIES (Stile)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Colore di sfondo scuro per distinguerlo bene */
  background-color: #222222; 
  color: #ffffff;
  padding: 1.5rem;
  
  /* Flexbox per allineare testo e bottone */
  display: none; /* Di base nascosto, appare con lo script */
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
  
  /* Ombra per staccarlo dalla pagina */
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  border-top: 1px solid #444;

  /* Z-INDEX ALTISSIMO: Deve stare SOPRA al tasto Shop (che è 10000) */
  z-index: 99999; 
}

/* Link dentro il banner */
.cookie-content a {
  color: #4db8ff; /* Azzurro chiaro leggibile su scuro */
  text-decoration: underline;
}

/* Bottone ACCETTO */
.cookie-btn {
  background-color: #008fd3;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: #0074ac;
}

/* Su cellulare riduciamo un po' gli spazi */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
}
/* =========================================
   BOTTONI DOWNLOAD
   ========================================= */
.btn-download {
  display: inline-block;
  background-color: #008fd3; /* Blu Sbarra Sicura */
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px; /* Arrotondato */
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem; /* Spazio sopra per staccarlo dalla lista */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background-color: #0074ac; /* Blu più scuro al passaggio del mouse */
  transform: translateY(-2px); /* Effetto sollevamento */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  color: #ffffff !important;
}
/* =========================================
   NUOVO STILE PER IL BOX BONUS FISCALE
   ========================================= */
.promo-box {
  background-color: #f0f9ff; /* Azzurro chiarissimo per lo sfondo */
  border: 3px solid #008fd3; /* Bordo blu spesso e forte */
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 143, 211, 0.15); /* Ombra marcata per farlo "uscire" */
  position: relative;
  overflow: hidden;
}

/* Nastrino "OFFERTA DI STATO" nell'angolo (fa molto "occasione") */
.promo-box::before {
  content: '📢 INCENTIVO STATALE';
  position: absolute;
  top: 20px;
  right: -35px;
  background: #d32f2f; /* Rosso per attirare attenzione */
  color: white;
  padding: 8px 40px;
  transform: rotate(45deg);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.promo-title {
  color: #008fd3;
  font-size: 2rem; /* Titolo molto grande */
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.promo-text {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenitore per le percentuali giganti */
.promo-highlight-box {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* I singoli box delle percentuali */
.promo-highlight {
  background: white;
  border: 2px solid #008fd3;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  min-width: 220px; /* Non diventano troppo piccoli */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Il numero gigante */
.promo-percent {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: #d32f2f; /* Rosso per il massimo impatto sul numero */
  line-height: 1;
}

.promo-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #008fd3;
  margin-top: 0.5rem;
  display: block;
}

.promo-note {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 2rem;
  color: #666;
}

/* Adattamento mobile */
@media (max-width: 768px) {
  .promo-box {
     padding: 2rem 1rem;
  }
  .promo-title {
      font-size: 1.6rem;
  }
  .promo-box::before {
    /* Su mobile nascondiamo il nastrino se copre troppo testo */
    display: none; 
  }
  .promo-highlight-box {
    flex-direction: column;
    gap: 1rem;
  }
}