/* ==========================================================================
   Centro Oculistico Dott. Vezzola — foglio di stile principale
   Basato su Bootstrap 5.3. I colori del marchio sono variabili qui sotto:
   per allinearli al logo basta cambiare i valori di --brand / --accent.
   ========================================================================== */
:root {
  --brand: #0f3a57;          /* blu profondo: titoli, header, footer */
  --brand-rgb: 15, 58, 87;
  --brand-2: #1d7891;        /* blu-verde: link, icone */
  --accent: #ff8f1c ;         /* beige caldo (richiama la reception) */
  --accent-soft: #f5efe6;
  --ink: #1f2a33;
  --muted: #5d6b76;
  --surface: #f5f8fa;
  --radius: 1rem;

  /*--bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;*/
  --bs-body-font-family: "Montserrat",  sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-font-size: 1.0625rem;      /* 17px: più leggibile per pazienti adulti/anziani */
  --bs-body-line-height: 1.65;
  --bs-link-color: var(--brand-2);
  --bs-link-color-rgb: 29, 120, 145;
  --bs-link-hover-color: var(--brand);
  --bs-link-hover-color-rgb: 15, 58, 87;
  --bs-border-radius: .6rem;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--brand); font-weight: 700; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand-2); }
.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.section-alt { background: var(--surface); }
.section-warm { background: var(--accent-soft); }
.section-title { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-title p { color: var(--muted); }

/* Bottoni ---------------------------------------------------------------- */
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2);
  --bs-btn-active-bg: var(--brand-2); --bs-btn-active-color: #fff; font-weight: 600; }
.btn-accent { --bs-btn-color: var(--brand); --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--brand); --bs-btn-hover-bg: #d8bb93; --bs-btn-hover-border-color: #d8bb93; font-weight: 600; }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); font-weight: 600; }

/* Top bar + header ------------------------------------------------------- */
.topbar { background: var(--brand); color: rgba(255,255,255,.85); font-size: .85rem; padding: .4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .list-inline-item:not(:last-child) { margin-right: 1.25rem; }

.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(var(--brand-rgb), .08); }
.navbar { padding: .65rem 0; }
.navbar-brand img { height: 52px; width: auto; max-width: 190px; object-fit: contain; }
.navbar .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; white-space: nowrap; padding: .5rem .55rem !important; border-radius: .5rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--brand-2); }
.navbar .nav-link.active { color: var(--brand); font-weight: 700; }
.navbar .nav-link.active:not(.dropdown-toggle)::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 2px; }
.navbar .btn { white-space: nowrap; }
.dropdown-item { padding: .55rem 1rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--brand); }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: .75rem 0 1rem; }
  .navbar .nav-link { padding: .7rem .25rem !important; border-bottom: 1px solid #eef2f5; }
  .navbar .nav-link.active::after { display: none !important; }
}

/* Splash (index) ---------------------------------------------------------- */
.splash { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(29,120,145,.55), transparent 60%), linear-gradient(160deg, #0b2c43 0%, #0f3a57 55%, #164e6c 100%); }
.splash::before { content: ""; position: absolute; inset: 0; background: url("../vezzola/img/splash-bg.jpg") center/cover no-repeat; opacity: .9; }
.splash > * { position: absolute;  bottom: 2rem;  left: 0;  text-align: left;}
.splash-logo { background: #fff; padding: .1rem .1rem; border-radius: .25rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: inline-block; margin-bottom: 2rem; }
.splash-logo img { width: min(240px, 70vw); height: auto; }
/*.splash h1 { color: #fff; font-weight: 300; letter-spacing: .25em; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); margin-bottom: 2.25rem; }*/
.splash h1 { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); margin-bottom: 2.25rem; }
.splash .btn { letter-spacing: .15em; padding: .9rem 2.6rem; font-size: 1rem; }
.splash .btn i { transition: transform .2s; }
.splash .btn:hover i { transform: translateX(4px); }
.splash-foot { position: absolute; bottom: 1.25rem; left: 0; right: 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.splash-foot a { color: #fff; }

/* Hero della home interna -------------------------------------------------- */
.home-hero { position: relative; color: #fff; padding: clamp(4rem, 3rem + 6vw, 8rem) 0;
  background: linear-gradient(100deg, rgba(11,44,67,.92) 0%, rgba(15,58,87,.78) 5%, rgba(15,58,87,.25) 60%), url("../vezzola/img/DR_VEZZOLA_centro-oculistico_prolungata.jpg") center/cover no-repeat, var(--brand); }
.home-hero h1 { color: #fff; max-width: 40rem; }
.home-hero .lead { max-width: 36rem; color: rgba(255,255,255,.88); }
.home-hero .eyebrow { color: var(--accent); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); }
.hero-badges i { color: var(--accent); font-size: 1.2rem; }

/* Hero pagine interne ------------------------------------------------------ */
.page-hero { background: linear-gradient(135deg, var(--surface) 0%, #e8f0f4 100%); padding: 2.25rem 0 2.5rem; border-bottom: 1px solid #e3eaef; }
.page-hero h1 { margin: .25rem 0 .5rem; }
.page-hero .lead { color: var(--muted); max-width: 48rem; font-size: 1.15rem; }
.breadcrumb { font-size: .875rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-2); text-decoration: underline; }

/* Card generiche ----------------------------------------------------------- */
.card { border: 1px solid #e6edf1; border-radius: var(--radius); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(var(--brand-rgb), .12); border-color: transparent; }
.card-img-top { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/10; object-fit: cover; background: #dfe8ee; }
.icon-circle { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(29,120,145,.1); color: var(--brand-2); font-size: 1.45rem; flex-shrink: 0; }
.stretched-link:focus-visible::after { outline: 3px solid var(--accent); border-radius: var(--radius); }

/* Card patologie (home + cosa trattiamo) */
.topic-card { overflow: hidden; }
.topic-card .ratio { background: linear-gradient(135deg, #dfe8ee, #c9d9e3); }
.topic-card .ratio img { object-fit: cover; }
.topic-card .ratio .ph { display: grid; place-items: center; color: rgba(var(--brand-rgb), .35); font-size: 2.5rem; }
.topic-card h3 { font-size: 1.15rem; margin: 0; }
.topic-card .arrow { color: var(--brand-2); transition: transform .2s; }
.topic-card:hover .arrow { transform: translateX(4px); }
.topic-card .badge { background: var(--accent-soft); color: var(--brand); font-weight: 600; }

/* Medico ------------------------------------------------------------------- */
.doctor-photo { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; background: linear-gradient(160deg, #dfe8ee, #c9d9e3); box-shadow: 18px 18px 0 var(--accent-soft); }
.timeline { list-style: none; padding-left: 0; border-left: 2px solid #dfe8ee; margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.timeline strong { color: var(--brand); display: inline-block; min-width: 3.5rem; }

/* Servizi (3 card) ---------------------------------------------------------- */
.service-card .card-body { padding: 2rem; }
.service-card h3 { font-size: 1.3rem; }

/* Sedi --------------------------------------------------------------------- */
.sede-card { border-top: 4px solid var(--accent); }
.contact-list li { display: flex; gap: .75rem; padding: .35rem 0; }
.contact-list i { color: var(--brand-2); font-size: 1.1rem; margin-top: .15rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--brand-2); text-decoration: underline; }
.hours th { font-weight: 600; color: var(--brand); width: 45%; }
.hours td, .hours th { background: transparent; padding: .45rem 0; }

/* Mappa a caricamento consensuale */
.map-consent { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg,#dfe8ee,#c9d9e3); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent p { max-width: 26rem; font-size: .92rem; color: var(--muted); }

/* Fondazione + convenzioni loghi ------------------------------------------- */
.foundation { border-radius: var(--radius); background: var(--brand); color: rgba(255,255,255,.88); overflow: hidden; }
.foundation h2 { color: #fff; }
.foundation .eyebrow { color: var(--accent); }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; align-items: center; }
.logo-strip .logo-box { background: #fff; border: 1px solid #e6edf1; border-radius: .75rem; padding: 1rem; height: 96px; display: grid; place-items: center; }
.logo-strip img { max-height: 60px; width: auto; /*filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s;*/ }
.logo-strip .logo-box:hover img { filter: none; opacity: 1; }

/* Contenuti testuali lunghi (visite, articoli) ------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; scroll-margin-top: 110px; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--brand-2); }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--brand-2); font-size: 1.15rem; }

.toc { position: sticky; top: 110px; }
.toc .nav-link { color: var(--muted); padding: .35rem .9rem; border-left: 2px solid #e3eaef; font-size: .94rem; border-radius: 0; }
.toc .nav-link:hover { color: var(--brand-2); }
.toc .nav-link.active { color: var(--brand); border-left-color: var(--accent); font-weight: 600; background: transparent; }

.exam-card { scroll-margin-top: 110px; }
.exam-card .meta { font-size: .85rem; color: var(--muted); }
.exam-card .meta i { color: var(--brand-2); }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: 0 .75rem .75rem 0; }

/* Tariffario --------------------------------------------------------------- */
.price-table { --bs-table-bg: transparent; margin-bottom: 0; }
.price-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom-width: 2px; }
.price-table td { padding: .85rem .75rem; vertical-align: middle; }
.price-table td.price { white-space: nowrap; text-align: right; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.price-table .note { display: block; font-size: .85rem; color: var(--muted); }
.price-table tr.group th { background: var(--surface); color: var(--brand); font-size: .9rem; padding: .6rem .75rem; }
.price-search { max-width: 26rem; }
mark { background: #fff3c4; padding: 0 .1em; }

/* Convenzioni --------------------------------------------------------------- */
.discount { font-size: 2.4rem; font-weight: 800; color: var(--brand); line-height: 1; }
.discount small { font-size: .9rem; font-weight: 600; color: var(--muted); display: block; margin-top: .25rem; }

/* CTA band ------------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border-radius: var(--radius); }
.cta-band h2 { color: #fff; }

/* Form ---------------------------------------------------------------------- */
.form-card { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(var(--brand-rgb), .08); }
.form-control, .form-select { padding: .7rem .9rem; border-color: #cfdbe3; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(29,120,145,.18); }
.form-label { font-weight: 600; font-size: .95rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: #0b2c43; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .93rem; }
.site-footer h2 { color: #fff; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { line-height: 1.9; }
.site-footer hr { border-color: rgba(255,255,255,.15); opacity: 1; margin: 2rem 0 1.25rem; }
.site-footer .social { width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1.1rem; }
.site-footer .social:hover { background: var(--accent); color: var(--brand); text-decoration: none; }
.footer-links li { margin-bottom: .45rem; }

/* Barra azioni mobile ------------------------------------------------------- */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem 0; font-size: .78rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.mobile-cta a i { font-size: 1.25rem; }
.mobile-cta a.primary { background: var(--brand); color: #fff; }
@media (max-width: 991.98px) { body:not(.splash-page) { padding-bottom: 64px; } }

/* Video placeholder --------------------------------------------------------- */
.video-band { border-radius: var(--radius); background: var(--surface); }

/* Animazione d'ingresso leggera (rispetta prefers-reduced-motion) ----------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Stampa (es. tariffario) --------------------------------------------------- */
@media print {
  .topbar, .site-header, .mobile-cta, .site-footer, .no-print, .page-hero .breadcrumb { display: none !important; }
  .page-hero { background: none; border: 0; padding: 0 0 1rem; }
  .card { border: 0; box-shadow: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { padding: 0 !important; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
