/* dualform.it — tema chiaro con la palette Gorbenko Nail Academy:
   sabbia #E3DED4, oro #C9A84C, tortora #8A8378, crema #EFE288, quasi nero #1E1B18.
   L'oro puro si usa solo per decorazioni: per i testi c'è la variante scura, leggibile. */
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #FBF9F5;          /* bianco caldo */
  --paper: #FFFFFF;
  --ink: #1E1B18;         /* testo */
  --muted: #6B645B;       /* tortora scuro, leggibile */
  --taupe: #8A8378;       /* tortora */
  --sand: #E3DED4;        /* sabbia */
  --sand-soft: #F1EDE6;
  --gold: #C9A84C;        /* oro: bordi, filetti, decorazioni */
  --gold-ink: #7A5C18;    /* oro scuro: link e testo */
  --cream: #EFE288;       /* crema: evidenziazioni come nei reel */
  --line: #E6E0D6;
  --max: 720px; --wide: 1080px;
  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.7 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 1.5em 0 .5em; color: var(--ink); }
h1, h2, .brand, .card-title, .hero-title { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-top: .5em; text-transform: none; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
code { background: var(--sand-soft); padding: .1em .3em; border-radius: 3px; font-size: .88em; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px; z-index: 10; }
/* evidenziazione "stile reel": il marcatore crema sotto le parole chiave */
mark, .hl { background: linear-gradient(transparent 55%, var(--cream) 55%); color: inherit; padding: 0 .1em; }

/* ---------- header / footer ---------- */
.site-header { background: var(--ink); color: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--bg); text-decoration: none; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.brand:hover { color: var(--cream); }
@media (max-width: 480px) { .brand { font-size: .92rem; letter-spacing: .03em; } }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
.site-header nav a { color: var(--sand); text-decoration: none; }
.site-header nav a:hover { color: var(--cream); }
.site-footer { background: var(--sand); margin-top: 64px; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: var(--ink); }

/* ---------- home ---------- */
.hero { padding: 40px 0 16px; border-bottom: 3px solid var(--gold); margin-bottom: 8px; }
.hero-title { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 .3em; }
.lead { font-size: 1.15rem; color: var(--muted); }
/* riquadro "Inizia da qui": tra la linea dorata dell'hero e una seconda linea uguale */
.start { margin: 24px 0 8px; padding-bottom: 24px; border-bottom: 3px solid var(--gold); }
.start-box { background: var(--sand); border-radius: 8px; padding: 16px 20px 20px; }
/* tre misure sole: grande il titolo, medio il bottone, piccolo tutto il resto */
.start-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.start-text p, .start-photo figcaption { font-size: .85rem; line-height: 1.4; color: #77716A; }
.start-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
/* foto a sinistra, a destra il testo in alto e il bottone subito sotto */
.start-body { display: grid; grid-template-columns: min(45%, 260px) 1fr; gap: 24px; align-items: start; }
.start-photo { margin: 0; }
.start-photo img { width: 100%; height: auto; display: block; border-radius: 6px; }
.start-photo figcaption { margin-top: 6px; }
.start-text h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 3.2vw, 1.75rem); line-height: 1.2; }
.start-text p { margin: 0; }
.start-text mark { color: var(--ink); font-weight: 700; }
.start-button { display: block; width: fit-content; margin: 20px auto 0; text-align: center; padding: 10px 20px; border-radius: 999px; font-size: .85rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: var(--cream); color: var(--ink); }
.start-hint { display: block; margin-top: 2px; font-size: .85em; font-weight: 400; text-transform: none; letter-spacing: .02em; color: #77716A; }
.start-button:hover { background: var(--ink); color: var(--cream); }
.start-button:hover .start-hint { color: var(--sand); }
@media (max-width: 640px) {
  .start-body { gap: 14px; }
  .start-text h2 { font-size: 1.15rem; }
  .start-button { margin-top: 16px; font-size: .7rem; letter-spacing: .04em; padding: 9px 14px; }
}
@media (max-width: 480px) { .start-box { padding: 14px; } }
.pillars { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pillars a { display: grid; gap: 4px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; text-decoration: none; color: var(--ink); }
.pillars a:hover { border-color: var(--gold); }
.pillars strong { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { position: relative; cursor: pointer; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30, 27, 24, .08); }
.card-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 6px; }
.card-title { font-size: 1.15rem; line-height: 1.25; margin: .35em 0 .5em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* tutta la scheda è il link dell'articolo */
.card .kicker { position: relative; z-index: 1; } /* il tema resta un link a parte, sopra la scheda */
.card:hover .card-title a { background: linear-gradient(transparent 60%, var(--cream) 60%); }
.card:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.card-title a:focus { outline: none; }
.card p { font-size: .98rem; }
.kicker { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: var(--cream); color: var(--ink); padding: 2px 8px; border-radius: 3px; }
.more { font-weight: 700; }

/* ---------- articolo ---------- */
.post, .pillar, .about, .toc { max-width: var(--max); margin-left: auto; margin-right: auto; }
.related, .follow { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: .95rem; }
.cover { margin: 22px 0; }
.cover img { border-radius: 8px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.summary { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 16px 20px; border-radius: 6px; margin: 24px 0; }
.summary h2 { margin: 0 0 .4em; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.summary p { margin: 0; font-size: 1.05rem; }
.toc { background: var(--sand-soft); border-radius: 6px; padding: 12px 20px; margin: 24px auto; font-size: .95rem; }
.toc h2 { font-size: .95rem; margin: .2em 0; text-transform: uppercase; letter-spacing: .06em; }
.toc ul { margin: 0; padding-left: 1.2em; }
.post-body h2 { margin-top: 2em; padding-top: .2em; }
.post-body h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--gold); margin-bottom: 12px; }
.post-body img { border-radius: 6px; margin: 1.2em auto; }
.post-body ol li::marker { font-weight: 700; color: var(--gold-ink); }
.post-body strong { background: linear-gradient(transparent 62%, var(--cream) 62%); }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; background: var(--paper); }
.post-body th { background: var(--ink); color: var(--bg); text-align: left; padding: 8px 10px; }
.post-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.post-body blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: 4px 0 4px 18px; font-size: 1.1rem; color: var(--ink); font-style: italic; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; color: var(--gold-ink); }
.faq details[open] summary::before { content: "–"; }
.faq summary h3 { display: inline; margin: 0; }
.faq details p { margin: .6em 0 0 1.2em; }
.tags { font-size: .92rem; color: var(--muted); }
.author-box { display: grid; gap: 4px; background: var(--sand-soft); border-radius: 8px; padding: 16px 20px; margin: 28px 0; font-size: .97rem; }
.author-box h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.author-box p { margin: 0; }
.waitlist-note { font-size: .9rem; color: var(--muted); margin-top: 6px !important; }

/* ---------- invito a seguire (la conversione principale) ---------- */
.follow { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 28px 22px; margin: 40px auto; text-align: center; }
.follow h2 { color: var(--bg); margin: 0 0 .3em; }
.follow h2 span { color: var(--cream); }
.follow p { color: var(--sand); max-width: 560px; margin: 0 auto 18px; }
.follow-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.follow-buttons a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--cream); color: var(--ink); }
.follow-buttons a:hover { background: var(--paper); }
.follow-buttons a.ghost { background: transparent; color: var(--bg); border: 1px solid var(--taupe); }
/* targhette vicino al nome dell'autrice */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .82rem; line-height: 1.5;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold-ink); text-decoration: none; white-space: nowrap; }
.badge-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
a.badge-pill:hover { background: var(--cream); color: var(--ink); }
.author-box .badges { margin-top: 6px; }
.follow-handle { display: block; margin-top: 14px; font-size: .9rem; color: var(--taupe); }

.button { display: inline-block; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; }
.button:hover { background: #000; color: var(--cream); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.small { padding: 6px 12px; font-size: .9rem; }
.button.danger { background: #9b2c2c; color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; }
.portrait { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; margin: 12px 0; border: 4px solid var(--gold); }
.notice { background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 6px; }

/* ---------- contenuti social (facade) ---------- */
.social { margin: 1.8em auto; max-width: 400px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(30, 27, 24, .06); }
.social.ratio-video { max-width: 640px; }
.social-thumb { position: relative; display: block; background: var(--sand); }
.social-thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.social.ratio-video .social-thumb img { aspect-ratio: 16/9; }
.social-thumb:not(:has(img)) { min-height: 140px; }
.social-play { position: absolute; inset: 0; display: grid; place-items: center; }
.social-play::before { content: "▶"; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(30, 27, 24, .75); color: var(--cream); font-size: 1.6rem; padding-left: 4px; }
.social figcaption { padding: 12px 14px 14px; font-size: .92rem; }
.social-caption { display: block; margin-bottom: 10px; }
.social-badge { font-weight: 700; }
.social-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.social-actions a { flex: 1 1 auto; text-align: center; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; background: var(--cream); color: var(--ink); }
.social-actions a:hover { background: var(--gold); color: var(--ink); }
.social iframe { width: 100%; border: 0; aspect-ratio: 4/5; display: block; }
.social.ratio-video iframe { aspect-ratio: 16/9; }
.social.tiktok iframe { aspect-ratio: 9/16; }
.social-extra h2 { margin-top: 2em; }
/* browser di TikTok: le pagine del blog si aprono in un riquadro a tutto schermo (vedi site.js) */
.riquadro { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); z-index: 1000; }
html.df-riquadro, html.df-riquadro body { overflow: hidden; }
/* browser di TikTok: finestrella al tocco di un pulsante Instagram (vedi site.js) */
.ig-avviso { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 27, 24, .55); }
.ig-box { width: 100%; max-width: 360px; background: var(--paper); border-top: 3px solid var(--gold); border-radius: 8px; padding: 22px 20px 18px; text-align: center; line-height: 1.45; }
.ig-box p { margin: 0 0 12px; font-size: 1rem; }
.ig-box .ig-titolo { font-family: var(--display); font-size: 1.25rem; }
.ig-box .ig-oppure { margin: 18px 0 2px; font-size: .85rem; color: var(--muted); }
.ig-box .ig-nome { font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.ig-box button { display: block; width: 100%; margin-top: 10px; padding: 11px; font: inherit; font-size: .95rem; border-radius: 6px; cursor: pointer; }
.ig-copia { background: var(--ink); color: var(--paper); border: 0; }
.ig-chiudi { background: none; color: var(--ink); border: 1px solid var(--line); }
