/* ===== Design system - Centro Odontoiatrico La Cittadella ===== */
:root {
  --c-primary: #0e7c86;
  --c-primary-d: #0a5b62;
  --c-accent: #f2994a;
  --c-accent-d: #e07f2c;
  --c-ink: #16292b;
  --c-muted: #5b6b6d;
  --c-line: #e2eaea;
  --c-bg: #ffffff;
  --c-soft: #f2f8f8;
  --maxw: 1120px;
  --r: 14px;
  --r-sm: 9px;
  --sp: clamp(1rem, 2.5vw, 2rem);
  --shadow: 0 6px 24px rgba(14, 124, 134, 0.10);
  --shadow-sm: 0 2px 10px rgba(16, 41, 43, 0.06);
}

@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--c-ink);
  line-height: 1.65;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Accessibilità ===== */
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, a.card:hover { transform: none; }
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp); }
.section { padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.section-soft { background: var(--c-soft); }

h1, h2, h3 { line-height: 1.2; color: var(--c-ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--c-muted); }

/* ===== Bottoni ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--r-sm);
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: var(--c-accent); color: var(--c-ink); }
.btn-cta:hover { background: var(--c-accent-d); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

/* ===== Griglia e card ===== */
.grid { display: grid; gap: var(--sp); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: var(--sp); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card { color: var(--c-ink); font-weight: 600; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.logo img { height: 44px; width: auto; }
.site-nav { display: flex; flex-wrap: nowrap; gap: 1.1rem; margin-left: auto; }
.site-nav a { color: var(--c-ink); font-weight: 600; font-size: .96rem; white-space: nowrap; }
.site-nav a:hover { color: var(--c-primary); text-decoration: none; }
.header-cta { display: flex; gap: .5rem; }
.header-cta .btn { padding: .55rem .9rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--c-primary); margin-left: auto; }

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--c-line);
    padding: .5rem var(--sp);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid var(--c-line); }
  .header-cta { margin-left: auto; }
  .header-cta .btn-primary { display: none; }
}

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, var(--c-soft), #fff 70%); }
.hero-inner { display: grid; gap: var(--sp); align-items: center; }
.hero-copy h1 { max-width: 18ch; }
.hero .lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-media img { width: 100%; height: auto; }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media { order: 2; }
}
.hero-stats {
  list-style: none; margin: clamp(1.5rem, 4vw, 2.75rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.hero-stats li {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
}
.hero-stats strong { display: block; font-size: 1.7rem; color: var(--c-primary); line-height: 1; }
.hero-stats span { color: var(--c-muted); font-size: .92rem; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }

.section-intro { color: var(--c-muted); max-width: 60ch; margin-top: -.3rem; }
.service { display: flex; flex-direction: column; }
.service p { flex: 1; }
.card-link { font-weight: 600; margin-top: .3rem; }
.sede-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ===== Trust ===== */
.trust .card { text-align: center; }
.trust .card strong { display: block; font-size: 1.6rem; color: var(--c-primary); }

/* ===== Articolo ===== */
.breadcrumb { color: var(--c-muted); font-size: .9rem; margin-bottom: 1rem; }
.article-body { max-width: 72ch; }
.article-body img { border-radius: var(--r); margin-block: 1.25rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body figure { margin: 2rem 0; padding: 1rem; background: var(--c-soft);
  border: 1px solid var(--c-line); border-radius: var(--r-sm); text-align: center; }
.article-body figure img { max-width: 100%; height: auto; margin-block: 0; }
.article-body figcaption { margin-top: .6rem; font-size: .92rem; color: var(--c-muted); }
.hero-img { display: block; max-width: 100%; width: auto; height: auto; border-radius: var(--r);
  margin: 0 0 1.5rem; box-shadow: var(--shadow-sm); }
.correlati { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.correlati ul { padding-left: 1.1rem; }
.correlati li { margin-bottom: .4rem; }

/* ===== Hub trattamenti ===== */
.toc { margin: 2.5rem 0 1rem; padding: 1rem 1.2rem; background: var(--c-soft);
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: baseline; }
.toc-label { font-weight: 700; color: var(--c-ink); margin-right: .2rem; }
.toc a { font-size: .95rem; font-weight: 600; }
.cat-section { margin-top: 2.5rem; scroll-margin-top: 90px; }
.cat-section h2 { padding-bottom: .4rem; border-bottom: 2px solid var(--c-primary); }
.cat-intro { color: var(--c-muted); max-width: 70ch; margin-top: .5rem; }
.cat-list { margin-top: 1rem; padding: 0; list-style: none;
  display: grid; gap: .55rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cat-list li { padding-left: 1.1rem; position: relative; line-height: 1.35; }
.cat-list li::before { content: "›"; position: absolute; left: 0; color: var(--c-primary); font-weight: 700; }
.cat-list a { font-weight: 500; }
.treatments-cta { margin-top: 3rem; }

/* ===== Form ===== */
.form-contatto { max-width: 560px; display: grid; gap: 1rem; }
.form-contatto label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form-contatto input, .form-contatto select, .form-contatto textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--c-line);
  border-radius: var(--r-sm); background: #fff;
}
.form-contatto input:focus, .form-contatto select:focus, .form-contatto textarea:focus {
  outline: 2px solid var(--c-primary); border-color: var(--c-primary);
}
.form-contatto .consenso { flex-direction: row; font-weight: 400; font-size: .9rem; color: var(--c-muted); grid-template-columns: auto 1fr; align-items: start; }
.form-contatto .hp { position: absolute; left: -9999px; }

/* ===== Mappa on-click ===== */
.map-box {
  margin-top: 1rem; min-height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--c-soft); border: 1px dashed var(--c-primary); border-radius: var(--r);
  color: var(--c-primary); font-weight: 600; cursor: pointer; text-align: center; padding: 1rem;
}
.map-box:hover { background: #e8f4f4; }
.map-box iframe { border-radius: var(--r); }

/* ===== Footer ===== */
.site-footer { background: var(--c-ink); color: #cfe0e0; margin-top: 3rem; padding-block: 2.5rem; }
.site-footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.site-footer a { color: #9fd6da; }
.site-footer small { color: #8ea0a0; display: block; margin-top: 1.5rem; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
  max-width: 620px; margin-inline: auto;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 1.1rem 1.25rem;
}
.cookie-banner p { font-size: .92rem; margin-bottom: .8rem; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .5rem 1rem; font-size: .9rem; }

/* ===== Utility ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
