/*
Theme Name: Dermacademy
Author: Istituto Dermacademy
Description: Tema su misura per dermacademy.it. Nessuno script, nessuna risorsa esterna. I contenuti si importano da Strumenti > Importa contenuti Dermacademy.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: dermacademy
*/
/* caratteri ospitati sul sito */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/montserrat-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/montserrat-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/montserrat-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Istituto Dermacademy — anteprima. Solo CSS, nessuno script. */
:root {
  --ink: #20201e; --ink-2: #55524a; --paper: #fbfaf7; --panel: #ffffff; --line: #e4dfd2;
  --gold: #a49158; --gold-ink: #74653a; --gold-wash: #f3efe3; --dark: #1a1a18;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: Montserrat, "Segoe UI", system-ui, sans-serif;
  --w: 1180px; --gap: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gap); }
.eyebrow { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); margin: 0 0 .8em; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 50; }

/* Testata */
.top { background: var(--dark); color: #e9e5d8; font-size: .82rem; }
.top .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding-block: 7px; }
.top a { color: inherit; text-decoration: none; } .top a:hover { color: #fff; text-decoration: underline; }
.head { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo img { width: 190px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 11px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--gold-ink); }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); min-width: 250px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 400; padding: 8px 10px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; font-size: .9rem; font-weight: 600; letter-spacing: .03em; border: 1px solid var(--ink); }
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 9px 16px; }
.menu-m { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .head .btn { margin-left: auto; }
  .menu-m { display: block; }
  .menu-m summary { list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
  .menu-m summary::-webkit-details-marker { display: none; }
  .menu-m[open] .panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px var(--gap) 22px; max-height: 80vh; overflow: auto; }
  .menu-m .panel a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .menu-m .panel a.l2 { padding-left: 16px; font-size: .92rem; color: var(--ink-2); }
  .logo img { width: 150px; }
}

/* Briciole */
.crumbs { font-size: .82rem; color: var(--ink-2); padding-block: 16px 0; }
.crumbs a { color: inherit; }

/* Apertura pagina */
.hero { padding-block: clamp(28px, 6vw, 72px); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--gap); align-items: center; }
.hero figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gold-wash); }
.hero figure.wide { aspect-ratio: 4 / 3; }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 820px) { .hero .grid { grid-template-columns: 1fr; } .hero figure { aspect-ratio: 4 / 3; } }

/* Scheda rapida: i fatti in cima alla pagina */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 26px 0; }
.facts div { background: var(--panel); padding: 14px 16px; }
.facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.facts dd small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
dl { margin: 0; }

/* Sezioni */
.sec { padding-block: clamp(36px, 6vw, 80px); border-top: 1px solid var(--line); }
.sec.tint { background: var(--gold-wash); }
.sec.dark { background: var(--dark); color: #f1eee4; border-top: none; }
.sec.dark .eyebrow, .sec.dark a { color: #cdbb85; }
.sec.dark .lede { color: #cfcabb; }
.sec-h { display: grid; gap: 10px; margin-bottom: 30px; max-width: 760px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.prose h2 { margin: 1.6em 0 .5em; } .prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; max-width: 66ch; } .prose li { margin-bottom: .35em; }
.answer { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; font-size: 1.12rem; margin-bottom: 1.6em; }
.answer p:last-child { margin-bottom: 0; }

/* Schede */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card a.all { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card a.all:hover h3 { color: var(--gold-ink); }
.card figure { margin: 0; aspect-ratio: 3 / 2; background: var(--gold-wash); overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card .in { padding: 18px 18px 20px; display: grid; gap: 8px; }
.card p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.card .more { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-ink); margin-top: 4px; }
.card .price { font-size: .86rem; font-weight: 600; }
.areas { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.areas .card .in { padding: 22px; }
.areas h3 { font-size: 1.55rem; }
.areas ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.areas ul a { color: var(--ink-2); }

/* Riquadro laterale */
.side { background: var(--panel); border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; position: sticky; top: 92px; }
.side h2 { font-size: 1.35rem; }
.side .who { display: flex; gap: 12px; align-items: center; }
.side .who img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: var(--gold-wash); }
.side .who span { font-size: .86rem; color: var(--ink-2); display: block; }
.side .rows { font-size: .92rem; }
.side .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.side .rows dt { color: var(--ink-2); } .side .rows dd { margin: 0; font-weight: 600; text-align: right; }
.side .btn { text-align: center; }
.legal-line { font-size: .78rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .side { position: static; } }

/* Prezzi */
.tbox { overflow-x: auto; }
table.prices { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--panel); border: 1px solid var(--line); }
.prices th, .prices td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* Domande */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* Medici */
.docs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.docs figure { aspect-ratio: 1 / 1; }
.sign { display: flex; gap: 14px; align-items: center; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }
.sign img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--gold-wash); }

/* Numeri */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.nums b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; display: block; line-height: 1.1; color: #cdbb85; }
.nums span { font-size: .9rem; color: #cfcabb; }

/* Piede */
.foot { background: var(--dark); color: #cfcabb; font-size: .88rem; padding-block: 48px 90px; }
.foot a { color: #e9e5d8; }
.foot .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.foot h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #cdbb85; font-weight: 600; margin-bottom: 10px; }
.foot p { margin: 0 0 .4em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Barra fissa su telefono */
.bar { display: none; }
@media (max-width: 820px) {
  .bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); }
  .bar a { text-align: center; padding: 13px 6px; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
  .bar a.go { background: var(--ink); color: #fff; border-right: none; }
}
.note-prev { background: #fff7d6; border: 1px dashed #c9a400; padding: 10px 14px; font-size: .84rem; margin-block: 14px; max-width: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .head, .top, .bar, .cta, .side .btn { display: none; } body { background: #fff; } }

/* Tabelle nei testi importati */
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--panel); border: 1px solid var(--line); margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose table td, .prose table th { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table p { margin: 0; }

/* Medici nel riquadro laterale */
.team p { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin: 0 0 8px; }
.team ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.team a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.team a:hover { color: var(--gold-ink); }
.team img, .team .ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--gold-wash); flex: none; }
.team .ini { display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
/* Recensioni */
.rev-top { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; margin-bottom: 8px; }
.score b { font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1; margin-right: 10px; }
.score span { color: var(--ink-2); font-size: .95rem; }
.revs .card p { font-size: 1rem; color: var(--ink); }

/* Voto Google */
.rating { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.rating b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.rating .stars { color: var(--gold); letter-spacing: 1px; }
.rating span:last-child { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.rating.hero-r { margin-top: 16px; }

blockquote.in { margin: 0; }
.revs .card footer { font-size: .82rem; }

.foot .notrack { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; opacity: .8; }
.foot .notrack a { color: inherit; }

/* home: seconda fotografia sovrapposta (18-11-2026) */
.hero figure.duo { position: relative; overflow: visible; margin-bottom: 30px; }
.hero figure.duo img.inset { position: absolute; left: -30px; bottom: -30px; width: 42%; height: auto; aspect-ratio: 4 / 5; border: 6px solid var(--paper); }
@media (max-width: 820px) { .hero figure.duo img.inset { left: auto; right: 12px; bottom: -24px; width: 32%; } }
/* le colonne di testo non si allargano oltre lo schermo quando contengono una tabella (18-11-2026) */
.cols > * { min-width: 0; }

/* Moduli: contatti e candidatura (18-11-2026). Nessuno script. */
.modulo { background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); margin: 0 0 1.4em; max-width: 680px; }
.modulo p { margin: 0 0 16px; max-width: none; }
.modulo .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .modulo .f2 { grid-template-columns: 1fr; } }
.modulo label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.modulo .opt { font-weight: 400; color: var(--ink-2); }
.modulo input[type=text], .modulo input[type=email], .modulo input[type=tel], .modulo select, .modulo textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #8a8577; border-radius: 0; padding: 11px 12px; min-height: 46px; }
.modulo input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; }
.modulo textarea { resize: vertical; }
.modulo input:focus-visible, .modulo select:focus-visible, .modulo textarea:focus-visible, .modulo button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.modulo .hint { display: block; font-size: .84rem; color: var(--ink-2); margin-top: 5px; }
.modulo .chk { display: flex; gap: 10px; align-items: flex-start; }
.modulo .chk input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--gold-ink); }
.modulo .chk label { font-weight: 400; font-size: .92rem; margin: 0; }
.modulo button.btn { font-family: inherit; cursor: pointer; border-radius: 0; }
.modulo .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modulo-esito { border: 1px solid var(--line); border-left: 4px solid #a33a2a; background: var(--panel); padding: 12px 16px; font-size: .95rem; max-width: 680px; }
