/* CoffeeWriting — foglio di stile del tema (design "D") */

@font-face { font-family: "Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(../fonts/bebas-neue.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #131312;
  --pink: #FF197A;
  --violet: #8A1CC9;
  --grad: linear-gradient(135deg, #FF197A 0%, #C41AA6 55%, #8A1CC9 100%);
  --paper: #ffffff;
  --soft: #f3f3f4;
  --text: #1f1d1b;
  --muted: #6b6762;
  --line: #e8e6e3;
  --hl: #FF197A;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--sans); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: var(--r-sm); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text, .kicker { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: block; width: fit-content; font: 400 1.25rem var(--display); letter-spacing: .08em; margin: 0 0 6px; text-decoration: none; }

/* evidenziatore: fascia magenta che si stende quando la parola entra nello schermo */
.hl, .prose mark { background-color: transparent; color: inherit; background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat;
  background-size: 0% .42em; background-position: 0 90%; padding: 0 .08em; margin: 0 -.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s cubic-bezier(.22,.8,.24,1); }
.hl.is-on, .prose mark.is-on, .no-js .hl, .no-js .prose mark { background-size: 100% .42em; }
@media (prefers-reduced-motion: reduce) { .hl, .prose mark { transition: none; background-size: 100% .42em; } }

/* pulsanti ed etichette */
.button, .btn, button[type=submit], input[type=submit] { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px;
  font: 700 .98rem var(--sans); text-decoration: none; cursor: pointer; background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255,25,122,.25);
  transition: transform .15s, box-shadow .15s; }
.button:hover, .btn:hover, button[type=submit]:hover, input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,25,122,.32); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.24); box-shadow: none; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.btn-line:hover { border-color: var(--pink); color: var(--pink); }
.btn-dark { background: var(--ink); box-shadow: none; }
.chip { display: inline-block; border-radius: 999px; padding: 6px 15px 5px; font: 400 1.02rem var(--display); letter-spacing: .06em; text-decoration: none; }
.sticker { display: inline-block; border-radius: 999px; padding: 5px 13px 3px; font: 400 1rem var(--display); letter-spacing: .06em; background: var(--grad); color: #fff; text-decoration: none; }

/* ===== header scuro (+ hero in home) ===== */
.site-top { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 88% 115%, rgba(138,28,201,.5), transparent 55%), radial-gradient(ellipse at 8% -20%, rgba(255,25,122,.22), transparent 50%), var(--ink); }
.site-top > *:not(.particles) { position: relative; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; transition: min-height .45s cubic-bezier(.22,1,.36,1); }
/* barra del menu: entra con un'animazione e, scorrendo, resta in alto e si riduce */
.site-bar { height: 76px; z-index: 50; }
.bar { position: relative; }
.is-stuck .bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(19,19,18,.84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: bar-in .55s cubic-bezier(.22,1,.36,1); }
.is-stuck .header-inner { min-height: 60px; }
.is-stuck .bar .logo img { height: 27px; }
.is-stuck .bar .pills a { padding: 6px 14px; font-size: .86rem; }
.is-stuck .bar .menu-button { width: 40px; height: 40px; }
@keyframes bar-in { from { transform: translateY(-100%); } to { transform: none; } }
.logo, .pills li, .menu-button { animation: nav-in .8s cubic-bezier(.22,1,.36,1) both; }
.pills li:nth-child(1) { animation-delay: .08s; } .pills li:nth-child(2) { animation-delay: .14s; } .pills li:nth-child(3) { animation-delay: .2s; }
.pills li:nth-child(4) { animation-delay: .26s; } .menu-button { animation-delay: .32s; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.menu-full .logo, .site-footer .logo { animation: none; }
@media (prefers-reduced-motion: reduce) { .logo, .pills li, .menu-button, .is-stuck .bar { animation: none; } }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: #fff; font: 800 1.35rem var(--sans); letter-spacing: -.03em; }
.logo img { height: 34px; width: auto; transition: height .45s cubic-bezier(.22,1,.36,1); }
.logo span { color: var(--pink); }
.main-nav { display: flex; align-items: center; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills a { display: inline-block; padding: 8px 17px; transition: padding .45s cubic-bezier(.22,1,.36,1), font-size .45s, border-color .25s, color .25s, background .25s; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); color: #e8e5e1; text-decoration: none; font-size: .92rem; font-weight: 500; }
.pills a:hover { border-color: var(--pink); color: #fff; background: rgba(255,25,122,.08); }
.pills .pill-cta a { border-color: transparent; background: var(--grad); color: #fff; font-weight: 600; }
.menu-button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); transition: border-color .25s, background .25s, width .45s, height .45s; }
.menu-button:hover { border-color: var(--pink); background: rgba(255,25,122,.08); }
.menu-button .bars, .menu-button .bars::before, .menu-button .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; content: ""; transition: transform .3s; }
.menu-button .bars { position: relative; }
.menu-button .bars::before { position: absolute; top: -6px; } .menu-button .bars::after { position: absolute; top: 6px; width: 12px; }
.menu-button:hover .bars::after { width: 18px; }
@media (max-width: 900px) { .pills li:not(.pill-cta) { display: none; } }
@media (max-width: 420px) { .pills { display: none; } }

/* menu a tutto schermo */
.menu-full { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; color: #fff; visibility: hidden; opacity: 0;
  background: radial-gradient(ellipse at 100% 100%, rgba(138,28,201,.45), transparent 50%), radial-gradient(ellipse at 0% 0%, rgba(255,25,122,.2), transparent 45%), #161615;
  transition: opacity .5s cubic-bezier(.22,1,.36,1), visibility 0s linear .5s; }
.menu-full:target, .menu-open .menu-full { visibility: visible; opacity: 1; transition: opacity .5s cubic-bezier(.22,1,.36,1), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-full-top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; width: 100%; }
.menu-close { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; line-height: 1; text-decoration: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1); }
.menu-close:hover { transform: rotate(90deg); }
.menu-close .x { position: relative; width: 18px; height: 18px; }
.menu-close .x::before, .menu-close .x::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2.5px; margin-top: -1.25px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.menu-close .x::after { transform: rotate(-45deg); }
.menu-full-main { flex: 1; display: flex; align-items: center; width: 100%; padding-block: 30px; }
.menu-full-main ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.menu-full-main li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s cubic-bezier(.22,1,.36,1); }
.menu-full:target li, .menu-open .menu-full li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .06s); }
.menu-full-main a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0; color: #fff; text-decoration: none;
  font: 600 clamp(2rem, 3.9vw, 3.3rem)/1.3 var(--sans); letter-spacing: -.02em; }
.menu-full-main a span { transition: color .3s; }
.menu-full-main a:hover span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-full-main svg { width: clamp(22px, 1.8vw, 28px); height: auto; flex: none; color: rgba(255,255,255,.6); transition: transform .4s cubic-bezier(.22,1,.36,1), color .3s; }
.menu-full-main a:hover svg { transform: translateX(8px); color: var(--pink); }
.menu-full-foot { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; padding-block: 20px 34px; }
.menu-full-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; list-style: none; margin: 0; padding: 0; }
.menu-full-foot ul a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.15rem; }
.menu-full-foot ul a:hover { color: var(--pink); }
.menu-full .search-form { margin: 0; min-width: min(100%, 340px); }
.menu-full .search-form input[type=search] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
@media (prefers-reduced-motion: reduce) { .menu-full, .menu-full li { transition: none !important; } }
.hero { padding: 64px 0 60px; }
.hero h1 { font: 500 clamp(2.5rem, 7.4vw, 6.2rem)/.96 var(--sans); letter-spacing: -.05em; margin: 14px 0 24px; max-width: 14ch; }
.hero p { max-width: 46ch; color: #cfccc7; font-size: 1.13rem; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 auto; padding-bottom: 40px; }
.cats a { border: 1px solid rgba(255,255,255,.18); color: #e8e5e1; background: rgba(255,255,255,.04); }
.cats a:hover { border-color: var(--pink); color: #fff; }
.top-head { padding-block: clamp(40px, 6vw, 80px) 40px; }
.top-head + .cats { padding-bottom: 50px; }
.cats a.is-current { background: var(--grad); border-color: transparent; color: #fff; }
.top-head h1 { font: 700 clamp(2.6rem, 6.4vw, 5rem)/1 var(--sans); letter-spacing: -.045em; margin: 6px 0 12px; max-width: 22ch; }
.top-head .desc { color: #cfccc7; max-width: 62ch; }
.top-head .desc p { margin: 0 0 .6em; }
.top-head .desc p:first-child { color: #fff; font-size: 1.22rem; font-weight: 600; }

/* ===== sezioni della home ===== */
.section { padding: 60px 0; }
.section + .section { padding-top: 0; }
.training { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 200px) 0; }
.training .particles { z-index: 0; }
.training-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: end; }
.training h2 { font: 500 clamp(3.2rem, 7vw, 5.6rem)/.95 var(--sans); letter-spacing: -.05em; margin: 0; }
.training .slashes { display: block; font: 400 1.1em/1 var(--display); letter-spacing: 0; font-style: italic; }
.training p { font: 700 clamp(1.5rem, 2.8vw, 2.4rem)/1.3 var(--sans); letter-spacing: -.035em; margin: 0 0 30px; max-width: 26ch; }
.piuma { position: absolute; right: -30px; bottom: -10px; width: clamp(180px, 22vw, 320px); height: auto; z-index: 0; pointer-events: none; }
@media (max-width: 900px) { .training-inner { grid-template-columns: 1fr; gap: 20px; } .piuma { opacity: .5; } }
.section-soft { background: var(--soft); border-radius: var(--r-lg); margin-inline: clamp(0px, 2vw, 24px); }
/* le sezioni su fondo grigio hanno sempre aria sopra e sotto (anche dopo un'altra sezione) */
.section.section-soft { padding-block: clamp(80px, 9vw, 120px); margin-block: clamp(20px, 4vw, 50px); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--r-lg); background: #fff; text-decoration: none; isolation: isolate; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, color .3s; }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(138,28,201,.2); color: #fff; }
.cat-tile:hover::before { opacity: 1; }
.cat-count { font: 400 3rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-count small { font-size: 1.1rem; letter-spacing: .06em; }
.cat-tile:hover .cat-count { background: none; color: #fff; }
.cat-tile h3 { font: 800 1.45rem/1.15 var(--sans); letter-spacing: -.03em; margin: 6px 0 0; }
.cat-tile p { color: var(--muted); margin: 0; line-height: 1.55; transition: color .3s; }
.cat-tile p em { display: block; color: var(--ink); margin-bottom: 6px; transition: color .3s; }
.cat-tile:hover p em { color: #fff; }
.cat-tile:hover p { color: rgba(255,255,255,.88); }
.cat-go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--pink); transition: color .3s; }
.cat-tile:hover .cat-go { color: #fff; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title h2 { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.08 var(--sans); letter-spacing: -.035em; margin: 0; }
.section-title > a { font-weight: 600; font-size: .95rem; color: var(--pink); text-decoration: none; white-space: nowrap; }
.front { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.lead { display: block; text-decoration: none; }
.lead .img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.lead .img:empty { background: var(--grad); }
.lead .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lead:hover .img img { transform: scale(1.04); }
.lead .sticker { margin-top: 20px; }
.lead h3 { font: 800 clamp(1.8rem, 3.6vw, 2.9rem)/1.04 var(--sans); letter-spacing: -.045em; margin: 12px 0; }
.lead p { color: var(--muted); font-size: 1.06rem; max-width: 56ch; margin: 0 0 12px; }
.meta { font-size: .88rem; color: var(--muted); }
.rank { background: var(--soft); border-radius: var(--r-lg); padding: 22px 24px 10px; }
.rank > h3 { font: 400 1.5rem var(--display); letter-spacing: .06em; margin: 0 0 6px; }
.rank ol { list-style: none; margin: 0; padding: 0; }
.rank li a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.rank li:first-child a { border-top: 0; }
.rank .n { font: 400 2.7rem/1 var(--display); }
.rank h4 { font: 700 1.04rem/1.3 var(--sans); letter-spacing: -.015em; margin: 2px 0 4px; }
.rank li a:hover h4 { color: var(--pink); }
.rank small { color: var(--muted); font-size: .8rem; }

/* card con sfumatura o foto */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 330px; padding: 26px; color: #fff; display: flex; flex-direction: column;
  justify-content: flex-end; text-decoration: none; background: var(--grad); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(138,28,201,.22); }
.card.photo { background: var(--ink); }
.card.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 32%, rgba(10,10,10,.35) 62%, rgba(10,10,10,.15) 80%, rgba(10,10,10,.45) 100%); }
.card > *:not(img) { position: relative; z-index: 2; }
.card .num { position: absolute; top: 14px; right: 20px; font: 400 5.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.card .chip { align-self: flex-start; margin-bottom: auto; background: rgba(19,19,18,.85); color: #fff; }
.card.photo .chip { background: #fff; color: var(--ink); }
.card h3 { font: 700 1.36rem/1.22 var(--sans); letter-spacing: -.025em; margin: 18px 0 8px; }
.card small { opacity: .88; font-size: .85rem; }
.band { color: #fff; border-radius: var(--r-lg); padding: 34px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 34px 0;
  grid-column: 1 / -1; background: radial-gradient(ellipse at 100% 0%, rgba(255,25,122,.35), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(138,28,201,.4), transparent 50%), var(--ink); }
.band h3 { font: 700 1.7rem/1.15 var(--sans); letter-spacing: -.03em; margin: 0 0 6px; }
.band p { margin: 0; color: #cfccc7; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 0; justify-content: center; }
.pagination .page-numbers { display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--grad); color: #fff; }
.pagination .page-numbers.dots { background: none; }
.pagination ul.page-numbers { display: flex; min-width: 0; padding: 0; background: none; border-radius: 0; }
[hidden] { display: none !important; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.load-more .btn[disabled] { opacity: .75; cursor: progress; }
.load-status { margin: 0; color: var(--muted); font-size: .92rem; min-height: 1.4em; }

/* ===== articolo ===== */
.post-wrap { padding-top: 22px; }
.wrap-cover { max-width: 1480px; padding-inline: clamp(12px, 2vw, 24px); }
.cover { position: relative; min-height: min(82vh, 760px); border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; color: #fff;
  background: var(--ink); isolation: isolate; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.25) 38%, rgba(10,10,10,.55) 62%, rgba(10,10,10,.96) 100%); }
.cover.no-img { min-height: 0; padding-top: 60px; background: radial-gradient(ellipse at 90% 120%, rgba(138,28,201,.55), transparent 55%), var(--ink); }
.cover .post-head { padding: 0 clamp(22px, 6vw, 96px) clamp(30px, 5vw, 70px); width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .88rem; color: rgba(255,255,255,.78); }
.crumbs a { text-decoration: none; }
.crumbs .breadcrumb a, .crumbs .breadcrumb { color: inherit; }
.cover h1 .hl { text-shadow: none; }
.cover h1 { max-width: 24ch; font: 800 clamp(2.3rem, 5.6vw, 5.2rem)/1.02 var(--sans); letter-spacing: -.05em; margin: 16px 0 20px; text-shadow: 0 2px 28px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.35); }
.byline { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: rgba(255,255,255,.8); }
.byline b, .byline a { color: #fff; text-decoration: none; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; text-transform: uppercase; }
.avatar.plain { background: #d9d6d2; color: var(--text); }

.prose { max-width: 880px; margin: 38px auto 0; padding: 0 24px; font-size: 1.12rem; line-height: 1.78; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.18 var(--sans); letter-spacing: -.03em; margin: 1.7em 0 .5em; scroll-margin-top: 90px; }
.prose h3 { font: 700 1.38rem/1.25 var(--sans); letter-spacing: -.02em; margin: 1.5em 0 .4em; }
.prose h4, .prose h5, .prose h6 { font: 700 1.14rem/1.3 var(--sans); margin: 1.4em 0 .3em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
/* link nel testo: inchiostro con una sottile linea a gradiente che, al passaggio del mouse, si riempie come un evidenziatore */
.prose a { color: var(--pink); }
.prose a:not([class]):not(:has(img)) { color: var(--ink); font-weight: 600; text-decoration: none; border-radius: .2em; padding: 0 .1em; margin: 0 -.1em;
  background: linear-gradient(90deg, #FF197A, #C41AA6 55%, #8A1CC9) no-repeat 0 100% / 100% 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .45s cubic-bezier(.22,1,.36,1), color .3s; }
.prose a:not([class]):not(:has(img)):hover, .prose a:not([class]):not(:has(img)):focus-visible { background-size: 100% 100%; color: #fff; }
.prose img { border-radius: var(--r); }
.prose figure, .prose .wp-caption, .prose .wp-block-image { margin: 1.8em 0; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose .alignleft { float: left; margin: .3em 1.4em .8em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .3em 0 .8em 1.4em; max-width: 45%; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose blockquote { margin: 1.8em 0; padding: 18px 22px; border-radius: var(--r); background: var(--soft); border-left: 5px solid var(--pink); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .wp-block-pullquote, .prose .pull { border: 0; border-radius: var(--r); background: var(--grad); color: #fff; padding: 26px 28px; margin: 30px 0; font: 700 1.45rem/1.35 var(--sans); letter-spacing: -.02em; text-align: left; }
.prose .wp-block-pullquote blockquote { margin: 0; padding: 0; background: none; border: 0; font-style: normal; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose details { border-radius: var(--r); background: var(--soft); padding: 12px 16px; margin: 0 0 12px; }
.prose summary { cursor: pointer; font-weight: 700; }
.prose hr, .prose .wp-block-separator { border: 0; height: 4px; width: 80px; border-radius: 4px; background: var(--grad); margin: 2.4em 0; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.6em 0; }
.prose .gallery-item, .prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; height: auto; }
.prose video { display: block; margin: 1.6em auto; border-radius: var(--r); }
.prose .wp-block-button__link { background: var(--grad); color: #fff; border-radius: 999px; padding: 13px 24px; text-decoration: none; font-weight: 700; }
.prose .alignwide { max-width: 1000px; margin-inline: auto; }
.prose a.affiliate { font-weight: 700; }
.prose a.affiliate::after { content: " ↗"; }
.brief { position: relative; border-radius: var(--r); padding: 20px 22px; margin: 0 0 26px; background: var(--soft); }
.brief::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.brief .kicker { font-size: 1.2rem; margin-bottom: 4px; }
.brief p { margin: 0; font-size: 1.02rem; }
/* indice dell'articolo */
.prose .toc { margin: 0 0 40px; border-radius: var(--r-lg); color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 100% 0%, rgba(255,25,122,.3), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(138,28,201,.35), transparent 55%), var(--ink); }
.prose .toc details { background: none; padding: 0; margin: 0; border-radius: 0; }
.toc summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 24px 28px; }
.toc summary::-webkit-details-marker { display: none; }
.toc-k { font: 400 1.35rem/1 var(--display); letter-spacing: .07em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; filter: brightness(1.25); }
.toc-meta { grid-column: 1; font-size: .84rem; color: #a9a6a1; }
.toc-x { grid-column: 2; grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); position: relative; transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s; }
.toc-x::before, .toc-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; border-radius: 2px; }
.toc-x::after { transform: rotate(90deg); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.toc details[open] .toc-x::after { transform: rotate(0); }
.toc summary:hover .toc-x { background: rgba(255,255,255,.08); }
.prose .toc ol { list-style: none; margin: 0; padding: 0 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; counter-reset: none; }
.prose .toc li { margin: 0; padding: 0; }
.prose .toc li::marker { content: none; }
.prose .toc a { display: flex; align-items: baseline; gap: 14px; padding: 12px 14px; border-radius: 14px; color: #e8e5e1; text-decoration: none; font-size: .98rem; line-height: 1.4;
  background: rgba(255,255,255,.04); transition: background .3s, color .3s, transform .3s; }
.prose .toc a:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateX(3px); }
.prose .toc li.is-active a { background: var(--grad); color: #fff; }
.toc-n { font: 400 1.35rem/1 var(--display); letter-spacing: .04em; color: var(--pink); flex: none; min-width: 1.6em; }
.prose .toc li.is-active .toc-n { color: #fff; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.video-embed a { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; }
.video-embed a::before { content: "▶"; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--grad); font-size: 1.6rem; padding-left: 5px; margin-bottom: 46px; }
.video-embed span { position: absolute; top: calc(50% + 34px); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-links { margin: 1.5em 0; }
.post-foot { max-width: 880px; margin: 34px auto 0; padding: 0 24px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.share > span { color: var(--muted); margin-right: 4px; }
.share a, .share button { border-radius: 999px; border: 1px solid var(--line); padding: 7px 14px; text-decoration: none; font: 600 .9rem var(--sans); background: #fff; color: var(--text); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--pink); color: var(--pink); }
.author-box { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--r); background: var(--soft); padding: 20px 22px; margin-top: 24px; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.author-box p { margin: 2px 0 0; font-size: .95rem; color: var(--muted); }
.author-box a { text-decoration: none; }

/* ===== commenti ===== */
.comments { max-width: 880px; margin: 56px auto 0; padding: 0 24px; scroll-margin-top: 20px; }
.comments-head h2 { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--sans); letter-spacing: -.035em; margin: 0 0 6px; }
.comments-head p { margin: 0 0 24px; color: var(--muted); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { position: relative; margin-left: 26px; padding-left: 22px; }
.comment-list .children::before { content: ""; position: absolute; left: 0; top: 0; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--pink), rgba(138,28,201,.15)); }
.comment-body { display: grid; grid-template-columns: 44px 1fr; gap: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; padding: 16px 18px; margin-bottom: 12px; }
.comment-body .avatar { width: 44px; height: 44px; }
.comment.staff > .comment-body { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.comment-meta strong { color: var(--text); font-size: .95rem; }
.comment-meta a { color: inherit; text-decoration: none; }
.staff-badge { display: inline-block; border-radius: 999px; padding: 2px 9px 1px; background: var(--grad); color: #fff; font: 400 .85rem var(--display); letter-spacing: .06em; }
.comment-pending { font-size: .88rem; color: var(--pink); margin: 0 0 6px; }
.comment-content p { margin: 0 0 .6em; font-size: 1rem; line-height: 1.65; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin: 8px 0 0; }
.comment-reply-link { display: inline-block; border-radius: 999px; background: var(--soft); padding: 5px 13px; font-size: .84rem; font-weight: 700; color: var(--text); text-decoration: none; }
.comment-reply-link:hover { background: var(--grad); color: #fff; }
.comment-respond { margin-top: 30px; border-radius: var(--r-lg); background: var(--soft); padding: 26px 26px 18px; }
.comment-respond .comment-reply-title { font: 800 1.5rem/1.15 var(--sans); letter-spacing: -.03em; margin: 0 0 4px; }
.comment-respond .comment-reply-title small { margin-left: 10px; font-size: .85rem; }
.comment-respond .comment-reply-title small a { color: var(--pink); }
.comment-form label, .contact-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea,
.contact-form input:not([type=checkbox]):not([type=hidden]), .contact-form textarea, .search-form input[type=search] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.comment-form input:focus, .comment-form textarea:focus, .contact-form input:focus, .contact-form textarea:focus, .search-form input:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,25,122,.12); }
.comment-form ::placeholder, .contact-form ::placeholder { color: #a19c96; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.comment-form .form-submit { margin: 6px 0 0; }
.small { font-size: .85rem; color: var(--muted); }
.comments-closed { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* pulsante "Aggiungi il tuo aroma": icona in basso a destra, si apre al passaggio del mouse */
.aroma { position: fixed; right: 24px; bottom: 24px; z-index: 40; transform: translateY(140%); opacity: 0; display: inline-flex; align-items: center;
  height: 60px; min-width: 60px; padding: 0 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(255,25,122,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.aroma.show { transform: translateY(0); opacity: 1; }
.aroma svg { width: 24px; height: 24px; flex: none; }
.aroma .label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .9s cubic-bezier(.22,1,.36,1), opacity .5s ease, margin .9s cubic-bezier(.22,1,.36,1); }
.aroma:hover .label, .aroma:focus-visible .label { transition: max-width .9s cubic-bezier(.22,1,.36,1), opacity .6s ease .15s, margin .9s cubic-bezier(.22,1,.36,1); }
.aroma:hover .label, .aroma:focus-visible .label { max-width: 380px; opacity: 1; margin-left: 10px; }
.aroma .count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px;
  background: #fff; color: var(--pink); border-radius: 999px; font-size: .75rem; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* correlati */
.related { padding: 60px 0 0; }

/* ===== pagine, archivi, contatti ===== */
.page-body { padding-bottom: 20px; }
.contact-form { margin: 2em 0; padding: 24px 26px; border-radius: var(--r-lg); background: var(--soft); font-size: 1rem; }
.contact-form h2 { margin-top: 0; }
.contact-form p { margin: 0 0 14px; }
.form-status:empty { display: none; }
.form-status { padding: 10px 14px; border-radius: var(--r-sm); background: #fff; border-left: 4px solid var(--pink); }
.form-note { color: var(--muted); margin-bottom: 0 !important; }
.lead-text, .prose .lead { font-size: 1.3rem; line-height: 1.45; color: var(--muted); font-style: italic; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 1em 0 1.6em; }
.mini-card { border-radius: var(--r); background: var(--soft); padding: 18px 18px 16px; border-top: 0; position: relative; overflow: hidden; }
.mini-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad); }
.prose .mini-card h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.mini-card p { margin: 0 !important; font-size: .96rem; line-height: 1.55; }
.signoff { font-size: 1.2rem; }
.az-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.6em; }
.az-index a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 700; color: var(--text); }
.az-index a:hover { background: var(--grad); color: #fff; }
.prose h3[id] { scroll-margin-top: 16px; }
.author-about { max-width: 70ch; color: #e4e1dd; }
.author-about .job { color: var(--pink); }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 16px 0 0; }
.search-form input[type=search] { border-radius: 999px; padding-inline: 18px; }
.notfound { padding: 50px 24px; }

/* ===== footer ===== */
.site-footer { position: relative; margin-top: 90px; color: #bdbab5; font-size: .95rem; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(255,25,122,.28), transparent 45%), radial-gradient(ellipse at 0% 100%, rgba(138,28,201,.35), transparent 50%), var(--ink); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.site-footer a { color: #f1eeea; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--pink); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; padding: 64px 0 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-claim { font: 700 clamp(2rem, 4.6vw, 3.6rem)/1.02 var(--sans); letter-spacing: -.045em; color: #fff; margin: 6px 0 0; max-width: 16ch; }
.footer-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .footer-cta .btn { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 46px 0; }
.footer-grid h2 { font: 400 1.2rem var(--display); letter-spacing: .08em; margin: 0 0 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 10px; }
.footer-brand .logo img { height: 38px; }
.footer-brand p { max-width: 34ch; margin: 18px 0 0; line-height: 1.6; }
.footer-latest a { display: block; font-weight: 600; line-height: 1.35; }
.footer-latest small { color: #8f8c88; font-size: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8f8c88; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #bdbab5; }
.to-top { font-weight: 600; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-news { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { gap: 30px 20px; } .footer-cta { padding-top: 48px; } }
.legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2a2826; font-size: .82rem; color: #9d9893; }
.legal a { color: inherit; }

@media (max-width: 900px) {
  .front, .grid { grid-template-columns: 1fr; }
  .card { min-height: 260px; }
  .band { padding: 26px 22px; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow, .prose, .comments, .post-foot { padding-inline: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .comment-list .children { margin-left: 8px; padding-left: 14px; }
  .comment-body { grid-template-columns: 36px 1fr; gap: 10px; padding: 14px; }
  .comment-body .avatar { width: 36px; height: 36px; font-size: .9rem; }
  .aroma { right: 14px; bottom: 14px; height: 54px; min-width: 54px; padding: 0 15px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em auto; max-width: 100%; }
}

/* animazioni di entrata: la classe .reveal la mette site.js (senza JavaScript è tutto visibile) e la toglie a fine animazione */
.reveal.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,1,.36,1) var(--d, 0ms), transform 1s cubic-bezier(.22,1,.36,1) var(--d, 0ms); }
.reveal.reveal.is-in { opacity: 1; transform: none; }
.home .site-footer { margin-top: 0; }

/* ===== pagina Training ===== */
.tr-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tr-steps a { border-radius: 999px; padding: 10px 18px; background: var(--grad); color: #fff; text-decoration: none; font-size: .94rem; font-weight: 600;
  box-shadow: 0 10px 26px rgba(255,25,122,.3); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.tr-steps a:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255,25,122,.4); }
.is-training .top-head { padding-block: clamp(80px, 11vw, 150px) clamp(70px, 9vw, 130px); }
.training-page .section { padding-block: clamp(80px, 9vw, 120px); }
.training-page .section-title h2, .tr-h2 { font-weight: 600; }
.tr-h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.04em; margin: 4px 0 14px; }
.tr-lead { color: var(--muted); max-width: 60ch; margin: -8px 0 26px; }
.tr-lead p { margin: 0 0 .5em; }
.tr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tr-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px 5px; font: 400 1.02rem var(--display); letter-spacing: .06em; transition: background .25s, color .25s, border-color .25s; }
.tr-filter button:hover { border-color: var(--ink); }
.tr-filter button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tr-quiz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tr-q { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 24px; border-radius: var(--r-lg); background: var(--soft); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), color .3s, box-shadow .3s; }
.tr-q[hidden] { display: none; }
.tr-q::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.tr-q:hover { transform: translateY(-4px); color: #fff; box-shadow: 0 22px 40px rgba(138,28,201,.2); }
.tr-q:hover::before { opacity: 1; }
.tr-q .tag { align-self: flex-start; font: 400 .95rem var(--display); letter-spacing: .06em; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px 2px; }
.tr-q .n { position: absolute; top: 14px; right: 20px; font: 400 4.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.4px rgba(19,19,18,.22); transition: -webkit-text-stroke-color .3s; }
.tr-q:hover .n { -webkit-text-stroke-color: rgba(255,255,255,.6); }
.tr-q h3 { font: 600 1.25rem/1.25 var(--sans); letter-spacing: -.02em; margin: auto 0 0; }
.tr-q .go { font-weight: 600; color: var(--pink); transition: color .3s; }
.tr-q:hover .go { color: #fff; }

.tr-deck-sec { overflow: hidden; }
.training-page .tr-deck-sec { padding-block: clamp(100px, 12vw, 160px); }
.tr-deck-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-deck { position: relative; height: 440px; perspective: 1400px; }
.tr-card { position: absolute; inset: 0; margin: auto; width: min(320px, 84%); height: 410px; border-radius: 28px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.tr-main { cursor: pointer; }
.tr-main:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; }
.tr-back1 { transform: rotate(-7deg) translate(-18px, 8px); }
.tr-back2 { transform: rotate(6deg) translate(16px, 6px); }
.tr-face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 30px; display: flex; flex-direction: column; overflow: hidden; }
.tr-face.front { background: var(--grad); color: #fff; box-shadow: 0 30px 60px rgba(138,28,201,.28); justify-content: space-between; }
.tr-face.front::after { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 20px; pointer-events: none; }
.tr-face .big { font: 400 7rem/.8 var(--display); }
.tr-face .lbl { font: 400 1.5rem/1 var(--display); letter-spacing: .08em; }
.tr-face.rear { background: #fff; color: var(--ink); transform: rotateY(180deg); box-shadow: 0 30px 60px rgba(0,0,0,.12); gap: 12px; }
.tr-face.rear .n { font: 400 1.15rem var(--display); letter-spacing: .08em; color: var(--pink); }
.tr-face.rear h3 { font: 600 1.5rem/1.15 var(--sans); letter-spacing: -.03em; margin: 0; }
.tr-face.rear p { margin: 0; color: #3b3936; font-size: .96rem; overflow: auto; }
.is-training .top-head h1 { font-weight: 500; }
.tr-main.is-flipped { transform: rotateY(180deg); }
.tr-main.is-shuffling { animation: tr-shuffle .7s cubic-bezier(.22,1,.36,1); }
@keyframes tr-shuffle { 0% { transform: none; } 40% { transform: translateX(130px) rotate(12deg); } 100% { transform: none; } }

.tr-ex { display: grid; gap: 16px; }
.tr-sheet { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; scroll-margin-top: 90px; transition: box-shadow .3s, border-color .3s; }
.tr-sheet[open] { border-color: transparent; box-shadow: 0 20px 50px rgba(19,19,18,.08); }
.tr-sheet.is-picked { animation: tr-pick 1.4s ease; }
@keyframes tr-pick { 0%, 100% { box-shadow: 0 20px 50px rgba(19,19,18,.08); } 30% { box-shadow: 0 0 0 4px rgba(255,25,122,.45); } }
.tr-sheet summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px; padding: 22px 26px; }
.tr-sheet summary::-webkit-details-marker { display: none; }
.tr-sheet .num { font: 400 3rem/1 var(--display); }
.tr-sheet h3 { margin: 0; font: 600 1.3rem/1.2 var(--sans); letter-spacing: -.02em; }
.tr-sheet summary small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.tr-sheet .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 1.4rem; transition: transform .35s, background .3s, color .3s; }
.tr-sheet[open] .plus { transform: rotate(45deg); background: var(--pink); color: #fff; }
.tr-body { padding: 0 26px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tr-text { line-height: 1.7; }
.tr-text p { margin: 0 0 .8em; }
.tr-text blockquote { margin: 14px 0 0; padding: 18px 20px; border-radius: var(--r); background: var(--ink); color: #e8e5e1; font-style: italic; font-size: .96rem; }
.tr-text blockquote p:last-child { margin: 0; }
.tr-desk { background: var(--soft); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 80px; }
.tr-desk textarea { width: 100%; min-height: 220px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font: inherit; line-height: 1.6; background: #fff; }
.tr-desk textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.tr-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); }
.tr-tools button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: .86rem; }
.tr-tools .tr-copy { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-right: 6px; }
.tr-timer.is-running { background: var(--grad); }
.tr-privacy { margin: 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .tr-quiz { grid-template-columns: 1fr 1fr; } .tr-body, .tr-deck-wrap { grid-template-columns: 1fr; } .tr-desk { position: static; } }
@media (max-width: 600px) { .tr-quiz { grid-template-columns: 1fr; } .tr-sheet summary { grid-template-columns: 48px 1fr auto; padding: 18px; } .tr-body { padding: 0 18px 18px; } .tr-deck { height: 420px; } }

/* Training: allenamento su fondo scuro, con avanzamento */
.training-page .tr-gym { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg); margin: clamp(30px, 5vw, 60px) clamp(0px, 2vw, 24px) 0;
  padding-block: clamp(100px, 11vw, 150px);
  background: radial-gradient(ellipse at 100% 0%, rgba(255,25,122,.25), transparent 45%), radial-gradient(ellipse at 0% 100%, rgba(138,28,201,.4), transparent 50%), var(--ink); }
.tr-gym > .wrap { position: relative; z-index: 1; }
.tr-gym .tr-lead { color: #bdbab5; }
.tr-gym-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.tr-progress { min-width: 240px; display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tr-progress-n { font: 400 2.8rem/1 var(--display); letter-spacing: .02em; }
.tr-progress-n b { font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.2); }
.tr-progress-l { color: #bdbab5; font-size: .88rem; }
.tr-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.tr-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.22,1,.36,1); }
.tr-gym .tr-sheet { border: 0; color: var(--ink); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.tr-gym .tr-sheet:not([open]):hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.tr-gym .tr-sheet[open] { box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.tr-sheet.is-done .num { -webkit-text-fill-color: transparent; }
.tr-sheet.is-done summary h3::after { content: "✓ fatto"; margin-left: 10px; vertical-align: middle; font: 400 .95rem var(--display); letter-spacing: .06em; color: #fff; background: var(--grad); border-radius: 999px; padding: 3px 10px 1px; }
.tr-tools .tr-done { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-right: 6px; }
.tr-tools .tr-done[aria-pressed=true] { background: var(--grad); color: #fff; border-color: transparent; }
