/* =========================================================
   INFORMEDIA Store — foglio di stile
   Per cambiare i colori del brand modifica solo le variabili qui sotto.
   ========================================================= */
/* Font Poppins ospitato sul sito (nessuna connessione a Google, conforme GDPR) */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy-deep: #2B2A29;   /* grafite del logo */
  --navy: #45423F;
  --signal: #FECC00;      /* giallo del logo */
  --signal-dark: #D9AD00;
  --ink: #1F1E1D;
  --muted: #5C5955;
  --paper: #F3F3F1;
  --line: #DDDBD7;
  --white: #FFFFFF;
  --wa: #1FA855;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img, svg, iframe { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--signal); color: var(--ink); padding: .6rem 1rem; z-index: 200; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-deep); color: var(--white); border-bottom: 4px solid var(--signal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: block; flex: none; line-height: 0; padding: .45rem 0; }
/* dimensioni esplicite: evitano che Safari iOS collassi il logo a larghezza 0 */
.brand img { display: block; width: 164px; height: 64px; max-width: none; }
@media (max-width: 480px) { .brand img { width: 128px; height: 50px; } }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav a { color: var(--white); text-decoration: none; padding: .55rem .8rem; border-radius: var(--radius-s); font-weight: 500; font-size: .96rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--white); }
.main-nav .nav-call { background: var(--signal); color: var(--ink); font-weight: 700; margin-left: .5rem; }
.main-nav .nav-call:hover { background: #FFD83D; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--radius-s); padding: .45rem .6rem; cursor: pointer; font: inherit; }
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); border-bottom: 4px solid var(--signal); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; }
  .main-nav a { display: block; padding: .85rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .nav-call { margin: .75rem 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.2rem; border-radius: var(--radius-s); font-weight: 500; text-decoration: none; border: 2px solid transparent; font-size: 1.02rem; line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #FFD83D; color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #178a45; color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-dark { background: var(--navy-deep); color: var(--white); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero (home) ---------- */
.hero { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.hero::after { /* il "binario" giallo, elemento firma del sito */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, var(--navy-deep) 18px 36px);
}
.hero-inner { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3rem; align-items: center; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.12rem; color: #D8D5D0; max-width: 52ch; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-left: 6px solid var(--signal); border-radius: var(--radius-s); padding: 1.6rem 1.6rem 1.2rem; }
.hero-card h2 { font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
.hero-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; }
.hero-card dt { color: var(--signal); font-weight: 500; }
.hero-card dd { margin: 0; color: #ECEAE6; }
.hero-card a { color: var(--white); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Servizi — griglia con righe divise, non card identiche */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.service { padding: 1.8rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.service + .service { }
.services .service:not(:nth-child(3n+1)) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; color: var(--navy); margin-bottom: 1rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.service p { color: var(--muted); flex: 1; }
.service .more { font-weight: 700; color: var(--navy); text-decoration: none; align-self: flex-start; border-bottom: 3px solid var(--signal); padding-bottom: 2px; }
.service .more:hover { color: var(--navy-deep); border-color: var(--navy-deep); }
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .services .service:nth-child(2n) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .services .service:nth-child(2n) { padding-left: 0; border-left: 0; }
  .service { padding-right: 0; }
}

/* Chi siamo */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-facts { list-style: none; margin: 0; padding: 0; }
.about-facts li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.about-facts li strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 1.5rem; } .about-facts li { grid-template-columns: 1fr; gap: .15rem; } }

/* Dove siamo + mappa */
.location { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: stretch; }
.location-info address { font-style: normal; margin-bottom: 1.5rem; }
.location-info .cta-row { flex-direction: column; align-items: stretch; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--muted); padding-right: 1rem; }
.map-box { position: relative; min-height: 420px; border-radius: var(--radius-m); overflow: hidden; background: #E4E2DE; border: 1px solid var(--line); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 1rem;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(43,42,41,.07) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(43,42,41,.07) 39px 40px), #ECEBE8; }
.map-consent p { max-width: 42ch; color: var(--muted); margin: 0; }
.map-consent .pin { width: 44px; height: 44px; color: var(--navy); }
.map-open { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } .map-box { min-height: 340px; } }

/* ---------- Pagine interne ---------- */
.page-hero { background: var(--navy-deep); color: var(--white); padding: 2.5rem 0 3rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--navy-deep) 12px 24px); }
.page-hero .lead { color: #D8D5D0; font-size: 1.15rem; max-width: 60ch; margin-bottom: 1.75rem; }
.page-hero .service-icon { color: var(--signal); }
.breadcrumb { font-size: .92rem; margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #9A958F; }
.breadcrumb a { color: #D8D5D0; }
.breadcrumb [aria-current] { color: var(--white); }

.detail { display: grid; grid-template-columns: 1fr 330px; gap: 3rem; align-items: start; }
.detail h2 { font-size: 1.8rem; margin-top: 2.5rem; }
.detail h2:first-child { margin-top: 0; }
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 2rem; }
.checklist li { padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--signal); color: var(--ink); font-family: var(--font-display); font-weight: 700; border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps strong { display: block; font-size: 1.08rem; }
.steps span { color: var(--muted); }
.side-card { position: sticky; top: 100px; background: var(--paper); border-top: 6px solid var(--signal); padding: 1.6rem; border-radius: 0 0 var(--radius-s) var(--radius-s); }
.side-card h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.side-card p { color: var(--muted); font-size: .98rem; }
.side-card .btn { width: 100%; margin-bottom: .6rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.other-services { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .side-card { position: static; } }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }

/* Testi legali */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h3 { margin-top: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.legal th { background: var(--paper); }
.legal .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1A1918; color: #C9C5BF; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: #ECEAE6; text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { margin: 0 0 1.1rem; line-height: 0; }
.footer-brand img { display: block; width: 205px; height: 80px; max-width: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #ECEAE6; cursor: pointer; }
.linklike:hover { color: var(--signal); text-decoration: underline; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Cookie banner ---------- */
.cc-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000; max-width: 760px; margin-inline: auto; background: var(--white); color: var(--ink); border-top: 6px solid var(--signal); border-radius: var(--radius-m); box-shadow: 0 18px 50px rgba(31,30,29,.35); padding: 1.5rem 1.6rem 1.3rem; }
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.cc-banner p { font-size: .96rem; color: var(--muted); }
.cc-close { position: absolute; top: .6rem; right: .6rem; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--muted); }
.cc-close:hover { color: var(--ink); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc-actions .btn { padding: .75rem 1.1rem; font-size: .97rem; }
@media (max-width: 560px) { .cc-actions .btn { flex: 1 1 100%; } .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1.3rem 1.1rem 1.1rem; } }

.cc-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(31,30,29,.65); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cc-dialog { background: var(--white); width: min(100%, 640px); max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: var(--radius-m); padding: 1.6rem; border-top: 6px solid var(--signal); }
.cc-dialog h2 { font-size: 1.4rem; }
.cc-cat { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cc-cat-head strong { font-size: 1.05rem; }
.cc-cat p { margin: .4rem 0 0; font-size: .93rem; color: var(--muted); }
.cc-always { font-size: .85rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #BDB9B3; border-radius: 28px; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.cc-dialog .cc-actions { margin-top: 1.3rem; }

/* WhatsApp flottante su mobile */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #178a45; color: var(--white); }
body.cc-open .wa-float { display: none; }
