/* deepee PetGo — stile condiviso · direzione Frutiger Aero (glossy, luminoso, aqua/cielo) */
:root {
  /* Brand */
  --navy: #0C447C;
  --green: #0F6E56;
  --green-glow: #17A67B;
  --sky: #85B7EB;
  --lightblue: #85B7EB;      /* alias retrocompatibile */
  --sky-soft: #BFE0FF;
  --aqua: #1FB6C9;
  --bg: #E9F3FD;             /* tinta soft per fasce sezione (era sparita) */
  /* Superfici */
  --bg-top: #EAF6FF;
  --bg-mid: #F3FBFF;
  --glass: rgba(255,255,255,0.62);
  --glass-strong: rgba(255,255,255,0.82);
  --text: #16233A;
  --muted: #5B6E88;
  --border: rgba(12,68,124,0.12);
  --danger: #C0392B;
  --shadow-soft: 0 10px 30px rgba(12,68,124,0.10);
  --shadow-card: 0 14px 34px rgba(12,68,124,0.13);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(133,183,235,0.45), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(31,182,201,0.28), transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, #ffffff 100%);
  background-attachment: fixed;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Ticker banner in alto */
.ticker-banner {
  background: linear-gradient(90deg, var(--navy), #16688f 55%, var(--aqua));
  color: #fff; overflow: hidden; white-space: nowrap;
  position: sticky; top: 0; z-index: 101; font-size: 12px; font-weight: 700;
  letter-spacing: .2px; box-shadow: 0 2px 10px rgba(12,68,124,.25);
}
.ticker-banner .ticker-contenuto { display: inline-block; padding-left: 100%; animation: scorri-ticker 32s linear infinite; }
.ticker-banner .ticker-contenuto span { padding: 8px 40px; display: inline-block; }
@keyframes scorri-ticker { 0% { transform: translateX(0);} 100% { transform: translateX(-100%);} }
@media (prefers-reduced-motion: reduce) { .ticker-banner .ticker-contenuto { animation: none; padding-left: 12px; } }

/* Header — vetro smerigliato */
header.sito-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-soft);
  position: sticky; top: 30px; z-index: 100;
}
header.sito-header img.logo { height: 38px; }
header.sito-header nav a {
  margin-left: 24px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 14px;
}
header.sito-header nav a:hover { color: var(--aqua); }
.nav-toggle { display: none; }

/* Footer */
footer.sito-footer {
  background: linear-gradient(180deg, #0C447C 0%, #0b3a67 60%, #0a3352 100%);
  color: #eaf3ff; padding: 44px 20px; margin-top: 70px; font-size: 13px;
}
footer.sito-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer.sito-footer a { color: #bcd8f5; text-decoration: none; }
footer.sito-footer a:hover { text-decoration: underline; color: #fff; }
footer.sito-footer .colonna { min-width: 160px; }
footer.sito-footer h4 { font-size: 13px; margin: 0 0 10px; color: #fff; letter-spacing:.3px; }
footer.sito-footer p { margin: 4px 0; }
footer.sito-footer .copyright { width: 100%; text-align: center; margin-top: 30px; opacity: .75; font-size: 12px; }

/* Bottoni glossy */
.btn {
  position: relative; display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 800; text-decoration: none; cursor: pointer; border: none; font-size: 15px;
  letter-spacing: .2px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  overflow: hidden;
}
.btn::before { /* riflesso glossy in alto */
  content: ""; position: absolute; inset: 0 0 50% 0; border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0)); pointer-events: none;
}
.btn:hover { transform: translateY(-1px); filter: saturate(108%); }
.btn:active { transform: translateY(0); }
.btn-primario {
  background: linear-gradient(180deg, var(--green-glow), var(--green));
  color: #fff !important; box-shadow: 0 10px 22px rgba(15,110,86,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-secondario {
  background: var(--glass-strong); color: var(--navy) !important;
  border: 1px solid rgba(12,68,124,.25); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-secondario::before { inset: 0 0 55% 0; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Hero luminoso */
.hero { position: relative; padding: 72px 20px 64px; text-align: center; overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(180deg, rgba(191,224,255,.55), rgba(255,255,255,0)); }
.hero::after { /* orbo di luce ambientale */
  content:""; position:absolute; width:340px; height:340px; right:-80px; top:-120px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(31,182,201,.35), rgba(31,182,201,0) 70%); pointer-events:none;
}
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; color: var(--navy); letter-spacing: -.5px; }
.hero p.tagline { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero-foto { position: relative; z-index: 1; max-width: 560px; margin: 32px auto 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.hero-foto img { display: block; width: 100%; height: auto; }

/* Sezioni */
section { padding: 56px 20px; }
section h2 { font-size: 28px; color: var(--navy); text-align: center; margin: 0 0 34px; letter-spacing: -.3px; }

/* Griglia feature — 3+3 bilanciata e centrata (niente più auto-fit sbilanciato) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.feature-card {
  text-align: center; padding: 26px 22px; border-radius: var(--radius);
  background: var(--glass-strong); border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-card); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(12,68,124,.18); }
.feature-card h3 { font-size: 16px; margin: 4px 0 6px; color: var(--navy); }
.feature-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Badge icona glossy (contiene un SVG bianco) */
.feature-card .icona {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--sky), var(--aqua));
  box-shadow: 0 8px 18px rgba(31,182,201,.4), inset 0 2px 3px rgba(255,255,255,.6);
}
.feature-card .icona svg { width: 28px; height: 28px; stroke: #fff; fill: none; }
.feature-card .icona.verde { background: linear-gradient(180deg, var(--green-glow), var(--green)); box-shadow: 0 8px 18px rgba(15,110,86,.38), inset 0 2px 3px rgba(255,255,255,.5); }

/* Card vetro generica riutilizzabile */
.glass-card {
  background: var(--glass-strong); border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Pagine contenuto (legali, chi siamo) */
.contenuto-pagina { max-width: 760px; margin: 40px auto; padding: 28px 26px; }
.contenuto-pagina h1 { color: var(--navy); }
.contenuto-pagina h2 { font-size: 20px; color: var(--navy); margin-top: 32px; }

/* Torna su */
.torna-su {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; z-index: 90;
  background: linear-gradient(180deg, var(--sky), var(--aqua)); color:#fff;
  box-shadow: 0 8px 20px rgba(31,182,201,.45), inset 0 1px 0 rgba(255,255,255,.5); border: none; cursor: pointer;
}
.torna-su.visibile { display: flex; }
.torna-su svg { width: 22px; height: 22px; stroke: #fff; fill: none; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; } }
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 6px; cursor: pointer; color: var(--navy); }
  header.sito-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-soft); padding: 6px 0; }
  header.sito-header nav a { margin: 0; padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-toggle-cb:checked ~ nav { display: flex; }
  .hero h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 340px; }
}

.feature-card .icona svg.solido { fill:#fff; stroke:none; width:30px; height:30px; }

/* FAQ accordion (home) */
.faq-acc { max-width: 720px; margin: 0 auto; }
.faq-acc details { background: var(--glass-strong); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: var(--shadow-soft); margin-bottom: 10px; overflow: hidden; }
.faq-acc summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: "+"; font-size: 22px; color: var(--aqua); font-weight: 400; line-height: 1; }
.faq-acc details[open] summary::after { content: "\2212"; }
.faq-acc details > p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 01/09/2026 — Le ancore finivano SOTTO le due barre appiccicate in cima.
   Misurato su un telefono da 390x844 arrivando dal link vero di prodotto.html
   (/termini.html#care): il titolo "5-bis. deepee Care" si fermava a 0-62 mentre
   il ticker occupa 0-35, e document.elementFromPoint sul titolo restituiva il
   ticker. Con l'intestazione visibile la fascia coperta arriva a 102.
   Chi clicca "Termini deepee Care" dalla pagina di acquisto atterra quindi con
   il titolo della clausola mezzo nascosto, e non e' un dettaglio estetico: e'
   il punto in cui deve capire dov'e' finito.
   114 = 102 della fascia piu' 12 di respiro. Vale per qualunque ancora del
   sito, perche' le due barre ci sono su tutte le pagine. */
:target,
h1[id], h2[id], h3[id] { scroll-margin-top: 114px; }

/* 01/10 (W13): modulo newsletter nel footer (assets/newsletter.js). Il footer
   e' blu scuro: testo chiaro, campo bianco, errori in un rosso leggibile qui. */
footer.sito-footer #newsletter-footer { width: 100%; max-width: 1100px; margin: 0 auto 30px; }
footer.sito-footer .nl-footer { max-width: 460px; }
footer.sito-footer .nl-footer p { color: #eaf3ff; }
footer.sito-footer .nl-riga { display: flex; gap: 8px; margin-top: 10px; }
footer.sito-footer .nl-riga input { flex: 1; min-width: 0; padding: 11px; border: 0; border-radius: 10px; font-size: 14px; }
footer.sito-footer .nl-consenso { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 12px; line-height: 1.5; color: #cfe2f7; }
footer.sito-footer .nl-consenso input { margin-top: 2px; flex-shrink: 0; }
footer.sito-footer .nl-conferma { margin-top: 10px; padding: 12px 14px; border: 1px solid #8fd3bd; border-radius: 10px; color: #eaf3ff; line-height: 1.6; }
footer.sito-footer .nl-esito { margin-top: 8px; font-size: 13px; }
footer.sito-footer .nl-errore { color: #ffb4a8; }

/* 22/10 (R-2210-cc024-5): il QR dell'app solo da schermo largo; dal telefono basta il pulsante. */
.qr-schermo-largo { display: none; margin-top: 18px; }
@media (min-width: 721px) { .qr-schermo-largo { display: block; } }

/* 22/10 (R-2210-cc024-18 punto 4b): la newsletter del pie' di pagina, centrata su tutte le pagine. */
footer.sito-footer .nl-footer { margin: 0 auto; text-align: center; }
footer.sito-footer .nl-consenso { text-align: left; }
/* 22/10 (punto 4c): le prime due card di "Perche' deepee PetGo", grandi. */
.feature-grande { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 960px; margin: 0 auto 22px; }
.feature-grande .feature-card { padding: 30px 26px; }
.feature-grande .feature-card h3 { font-size: 24px; line-height: 1.2; margin: 8px 0 10px; }
.feature-grande .feature-card p { font-size: 17px; line-height: 1.5; color: var(--text); }
@media (max-width: 720px) { .feature-grande { grid-template-columns: 1fr; max-width: 340px; } }
/* 22/10 (R-2210-cc024-19 punto 2): i due badge degli store in riquadri IDENTICI (146 x 43), immagine
   contenuta. Le proporzioni ufficiali sono diverse (App Store 2,99:1, Google Play 3,36:1) e non si
   deformano: escono con la stessa altezza, 43 px (il riquadro e' largo 3,4 volte l'altezza), e Google Play non e' mai piu' piccolo (regola Google).
   Del PNG di Google Play e' tolto solo il margine trasparente; lo spazio libero lo da' il gap. */
.badge-store { display: inline-flex; align-items: center; justify-content: center; width: 146px; height: 43px; }
.badge-store img { display: block; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
/* 23/10 (R-2210-cc024-22 punto 7b): le card dell'ultima riga, se non la riempiono, centrate.
   Griglia a 6 colonne, ogni card ne prende 2; con 5 card le ultime due partono dalla colonna 2. */
@media (min-width: 721px) {
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .feature-grid > .feature-card { grid-column: span 2; }
  .feature-grid > .feature-card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .feature-grid > .feature-card:nth-child(3n+1):nth-last-child(1) { grid-column: 3 / span 2; }
}
