/* odontoiatry.it — one stylesheet, no framework.
   Brand from the WordPress/Divi site: plum #660058 headings, Poppins for headings and UI, a serif
   for reading (Divi used Arvo, falling back to Georgia; here Georgia, nothing to download). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --plum: #660058;
  --plum-dark: #4a0040;
  --plum-soft: #f6edf4;
  --plum-line: #e7d3e2;
  --gold: #e09900;              /* the footer link colour of the old site: accents on dark only */
  --ink: #241c26;
  --text: #3b3340;
  --muted: #6a6170;
  --line: #e9e4e8;
  --bg: #fff;
  --bg-soft: #faf7f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 28, 38, .06), 0 8px 24px rgba(36, 28, 38, .06);
  --ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --read: Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--read); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .15em; }
a:hover { color: var(--plum-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ui); color: var(--plum); line-height: 1.25; font-weight: 700; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--plum); color: #fff; padding: .6rem 1rem; font-family: var(--ui); }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--text { max-width: 820px; }
.wrap--wide { max-width: var(--wrap); }
.section { padding-top: 2rem; padding-bottom: 3.5rem; }
.section__title { margin-top: 0; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border: 2px solid var(--plum);
  border-radius: 999px; background: var(--plum); color: #fff; font: 600 .95rem/1.2 var(--ui); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum-soft); color: var(--plum-dark); }
.btn--sm { padding: .5rem .95rem; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 1px solid var(--plum-line); border-radius: 999px;
  background: #fff; color: var(--plum); font: 500 .85rem/1.3 var(--ui); text-decoration: none; white-space: nowrap; }
.chip:hover, .chip.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip--sm { padding: .15rem .6rem; font-size: .75rem; }
.chip__n { font-size: .75em; opacity: .7; }

/* ---------- header ---------- */
.topbar { background: var(--plum); color: #f3e6f0; font: 400 .85rem/1.4 var(--ui); }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; }
.topbar p { margin: 0; }
.topbar a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { width: 230px; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.nav a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--ink); font: 500 .95rem/1.2 var(--ui); text-decoration: none; }
.nav a:hover { background: var(--plum-soft); color: var(--plum); }
.nav a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--plum); border-radius: 0; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.search input { border: 0; background: transparent; padding: .5rem .2rem .5rem .9rem; font: 400 .9rem var(--ui); width: 11rem; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.search button { border: 0; background: transparent; color: var(--plum); padding: .45rem .8rem; cursor: pointer; }
.search--big { max-width: 520px; margin: 1.5rem 0; padding: .2rem; }
.search--big input { width: 100%; flex: 1; font-size: 1rem; }
.search--big .btn { padding: .55rem 1.1rem; }
.burger { display: none; }
.nav .search { display: none; }

@media (max-width: 1100px) {
  .header__in { flex-wrap: wrap; min-height: 64px; }
  .brand img { width: 190px; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 10px; }
  .burger span { display: block; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav { display: none; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; margin: 0; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--plum); padding-left: .9rem; }
  .nav .search { display: flex; margin-top: .75rem; }
  .nav .search input { width: 100%; flex: 1; font-size: 1rem; }
}
@media (max-width: 560px) { .topbar__tag { display: none; } .topbar__in { justify-content: center; } }

/* ---------- home hero, bands ---------- */
.hero { background: linear-gradient(180deg, var(--plum-soft), #fff); border-bottom: 1px solid var(--line); }
.hero__in { padding-top: 2.5rem; padding-bottom: 2rem; }
.hero__title { margin: 0 0 1rem; }
.hero__note { max-width: 860px; color: var(--text); font-size: 1rem; border-left: 4px solid var(--plum); padding: .2rem 0 .2rem 1rem; }
.hero__note p { margin: 0; }
.band { background: var(--plum-soft); border-bottom: 1px solid var(--plum-line); }
.band .wrap { padding-top: 2.2rem; padding-bottom: 1.8rem; }
.band__eyebrow { margin: 0 0 .3rem; font: 600 .78rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.band__title { margin: 0; }
.band__pg { font-weight: 400; color: var(--muted); font-size: .7em; }
.band__intro { margin: .6rem 0 0; color: var(--muted); font-family: var(--ui); font-size: .95rem; }
.band--ok { background: #eef7f0; border-color: #cfe6d5; }

/* ---------- topics + cards ---------- */
.listing-bar { display: flex; align-items: flex-start; gap: 1rem 2rem; padding: .2rem 0 1.6rem; }
.listing-bar .topics { flex: 1; }
.listing-bar .search { flex: 0 0 auto; }
.topics { display: flex; flex-wrap: wrap; gap: .45rem; }
@media (max-width: 760px) {
  .listing-bar { flex-direction: column-reverse; align-items: stretch; }
  .listing-bar .search input { width: 100%; flex: 1; }
  .topics { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(36,28,38,.06), 0 14px 32px rgba(102,0,88,.10); }
.card__img { display: block; aspect-ratio: 16 / 9; background: var(--plum-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { display: block; width: 100%; height: 100%; background: url(/favicon-192x192.png) center / 64px no-repeat, var(--plum-soft); opacity: .6; }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.15rem 1.25rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font: 400 .8rem/1.3 var(--ui); color: var(--muted); }
.card__title { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }    /* whole card clickable */
.card { position: relative; }
.card__meta a, .card__img { position: relative; z-index: 1; }
.card__title a:hover { color: var(--plum); }
.card__text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.grid--feature .card--big { grid-column: 1 / -1; flex-direction: row; }
.grid--feature .card--big .card__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
.grid--feature .card--big .card__body { justify-content: center; padding: 2rem; }
.grid--feature .card--big .card__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 700; }
.grid--feature .card--big .card__text { font-size: 1.02rem; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid--feature .card--big { flex-direction: column; }
  .grid--feature .card--big .card__img { aspect-ratio: 16 / 9; min-height: 0; }
  .grid--feature .card--big .card__body { padding: 1rem 1.15rem 1.25rem; }
}
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager__now { font: 400 .9rem var(--ui); color: var(--muted); }

/* ---------- post ---------- */
.wrap--post { max-width: 1120px; }
.post__head { background: linear-gradient(180deg, var(--plum-soft), #fff); }
.post__head .wrap { padding-top: 1.5rem; padding-bottom: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font: 400 .85rem var(--ui); color: var(--muted); }
.crumbs a { color: var(--muted); }
.post__title { margin: .6rem 0 .6rem; max-width: 900px; }
.post__meta { margin: 0; font: 400 .9rem var(--ui); color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding-bottom: 3rem; align-items: start; }
.post__cover { margin: 1rem 0 1.75rem; border-radius: var(--radius); overflow: hidden; background: var(--plum-soft); }
.post__cover img { width: 100%; }
.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font: 400 .85rem var(--ui); color: var(--muted); }
.post__side { position: sticky; top: 96px; }
.side-box { background: var(--bg-soft); border: 1px solid var(--plum-line); border-radius: var(--radius); padding: 1.25rem; }
.side-box__title { margin: 0 0 .5rem; font: 700 1.1rem/1.3 var(--ui); color: var(--plum); }
.related { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0; }
@media (max-width: 980px) {
  .post__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .post__side { position: static; }
}

/* ---------- reading text ---------- */
.prose { font-size: 1.125rem; line-height: 1.75; max-width: 46rem; overflow-wrap: break-word; }
.prose--page { max-width: none; }
.wrap--text .prose--page { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; }
.prose h3, .prose h4 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--plum); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; background: var(--plum-soft); border-left: 4px solid var(--plum); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.75em 0; }
.prose figure img, .prose > p img { border-radius: 10px; }
.prose figcaption { font: 400 .85rem var(--ui); color: var(--muted); margin-top: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--plum-soft); font-family: var(--ui); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose details { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin: .75rem 0; }
.prose summary { cursor: pointer; font: 600 1rem var(--ui); color: var(--plum); }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose .btn-row { margin: 1.5em 0; }
.prose a.btn { color: #fff; text-decoration: none; }
.prose a.btn:hover { color: #fff; }
.cols { display: grid; gap: 1.75rem; margin: 1.5em 0; align-items: start; }
.cols-2 { grid-template-columns: 3fr 2fr; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols .col > :first-child { margin-top: 0; }
.cols .col > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.cform { display: grid; gap: .9rem; background: #fff; border: 1px solid var(--plum-line); border-radius: var(--radius); padding: 1.5rem;
  font-family: var(--ui); font-size: .95rem; line-height: 1.45; margin: 1.5em 0; max-width: 46rem; }
.cform--side { border: 0; padding: 0; margin: 0; background: transparent; gap: .7rem; }
.cform__lead { margin: 0; font-weight: 600; color: var(--ink); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cform--side .cform__row { grid-template-columns: 1fr; gap: .7rem; }
.field { display: grid; gap: .3rem; }
.field span { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #d6ccd3; border-radius: 10px; background: #fff;
  font: 400 1rem/1.4 var(--ui); color: var(--ink); }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text); }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--plum); flex: 0 0 auto; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { margin-top: .2rem; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } .cform { padding: 1.1rem; } }
.alert { border: 1px solid #f0c2c2; background: #fdf2f2; color: #7a1d1d; border-radius: 10px; padding: 1rem 1.25rem; font-family: var(--ui); margin-bottom: 1.5rem; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ---------- video gate ---------- */
.vgate { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--plum), #2a0024);
  color: #fff; font-family: var(--ui); margin: 1em 0; }
.vgate iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vgate__box { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.25rem; gap: .35rem; }
.vgate__lead { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 1rem; }
.vgate__text, .vgate__small { margin: 0; font-size: .82rem; line-height: 1.4; opacity: .9; }
.vgate .btn-row { margin: .4rem 0; gap: .4rem; }
.vgate .btn { background: #fff; color: var(--plum); border-color: #fff; }
.vgate .btn--ghost { background: transparent; color: #fff; }
.vgate a { color: #fff; }
.cols-3 .vgate__text, .cols-3 .vgate__small { display: none; }
@media (max-width: 860px) { .cols-3 .vgate__text, .cols-3 .vgate__small { display: block; } }

/* ---------- consent ---------- */
.choice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 3px solid var(--plum);
  box-shadow: 0 -8px 30px rgba(36,28,38,.15); font-family: var(--ui); font-size: .9rem; line-height: 1.5; }
.choice__in { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.choice__title { margin: 0 0 .3rem; font-size: 1rem; }
.choice__text p { margin: 0; }
.choice__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.choice__more { border: 0; background: none; color: var(--plum); text-decoration: underline; cursor: pointer; font: inherit; padding: .5rem; }
.choice .pick { grid-column: 1 / -1; }
.pick { display: grid; gap: .6rem; font-family: var(--ui); font-size: .9rem; }
.pick label { display: flex; gap: .6rem; align-items: flex-start; }
.pick input { margin-top: .25rem; accent-color: var(--plum); }
.pick .btn { justify-self: start; }
@media (max-width: 760px) { .choice__in { grid-template-columns: 1fr; } }
.prefs { border: 1px solid var(--plum-line); background: var(--bg-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5em 0; }
.prefs h3 { margin-top: 0; }
.prefs__state { font-family: var(--ui); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: #1f1820; color: #cfc6cd; font: 400 .92rem/1.6 var(--ui); margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer__logo { width: 40px; height: 40px; margin-bottom: .6rem; }
.footer__name { font-weight: 700; color: #fff; font-size: 1.1rem; margin: 0 0 .2rem; }
.footer__h { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: #e9e0e7; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom { border-top: 1px solid #3a2f3b; font-size: .82rem; }
.footer__bottom p { margin: 0; padding: 1rem 0; text-align: center; }
.footer__bottom a { color: var(--gold); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .post__side, .related, .site-footer, .choice { display: none !important; } }
