/* ==========================================================================
   Psicologia Scomoda — style.css
   Direzione: editoriale, minimale, autorevole. I contenuti sono i protagonisti;
   le immagini accompagnano la lettura. Uso generoso dello spazio vuoto.
   Palette ufficiale: bordeaux freddo, ocra, panna, grigio lavagna, neutri desaturati.
   ========================================================================== */

:root {
  /* bordeaux freddo */
  --brand: #3f5a4c;
  --brand-dark: #2c4237;
  --brand-soft: #5d7a68;

  /* ocra / giallo caldo */
  --accent: #c26a4a;
  --accent-soft: #d8845f;

  /* grigio lavagna */
  --slate: #3e463f;
  --slate-soft: #5f6a60;

  /* neutri desaturati + panna */
  --ink: #232823;
  --text: #4c544c;
  --muted: #7c847b;
  --bg: #faf8f3;
  --bg-alt: #f1ede1;
  --line: #e1dccb;
  --cream: #f2ecdd;

  /* tipografia */
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* sistema */
  --shadow-sm: 0 1px 2px rgba(36, 26, 22, .05), 0 2px 8px rgba(36, 26, 22, .04);
  --shadow-md: 0 4px 12px rgba(36, 26, 22, .07), 0 12px 32px rgba(36, 26, 22, .06);
  --shadow-lg: 0 12px 28px rgba(36, 26, 22, .10), 0 28px 64px rgba(36, 26, 22, .10);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: var(--brand); text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.05rem; }

p + p { margin-top: 1.1em; }

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow-center { justify-content: center; }

/* ------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--brand-dark);
  color: rgba(242, 236, 221, .82);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--cream); }

.section-dark .lead { color: rgba(242, 236, 221, .74); }

.section-dark .eyebrow,
.section-dark .eyebrow::before { color: var(--accent-soft); }

.section-dark .eyebrow::before { background: var(--accent-soft); }

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .lead { margin-inline: auto; }

.section-head h2 { margin-block: .75rem .9rem; }

/* -------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(63, 90, 76, .04);
}

.btn-gold {
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.btn-gold:hover { background: #e0906a; }

.btn-ghost-light {
  border-color: rgba(242, 236, 221, .3);
  color: var(--cream);
}

.btn-ghost-light:hover {
  border-color: var(--cream);
  background: rgba(242, 236, 221, .08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap .3s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform .3s var(--ease);
}

.link-arrow:hover { gap: .7rem; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* marchio ricostruito in SVG + wordmark */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

.brand-mark {
  width: 23px;
  height: 42px;
  flex: none;
  color: var(--brand);
}

.footer-brand .brand-mark { color: var(--cream); }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

.brand-word span { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links > li > a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color .25s;
}

.nav-links > li > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .35s var(--ease);
}

.nav-links > li > a:not(.nav-cta):hover { color: var(--brand); }

.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li > a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }

.nav-links > li > a[aria-current="page"]:not(.nav-cta) {
  color: var(--brand);
  font-weight: 600;
}

.nav-links > li > a.nav-cta {
  padding: .7rem 1.5rem;
  color: var(--cream);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ------------------------------------------------------- hero editoriale */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.hero h1 {
  margin-block: 1.5rem 1.75rem;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.5rem;
}

/* indice dell'ecosistema: la Home come porta d'ingresso */
.index-card {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.index-title {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.index-list { display: block; }

.index-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}

.index-item:hover { padding-left: .4rem; }

.index-num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.index-item h2,
.index-item h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}

.index-item h2 a,
.index-item h3 a {
  color: var(--ink);
  transition: color .25s;
}

.index-item:hover h2 a,
.index-item:hover h3 a { color: var(--brand); }

.index-item p {
  grid-column: 2 / -1;
  margin-top: .3rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}

.index-arrow {
  color: var(--muted);
  font-size: .9rem;
  transition: transform .35s var(--ease), color .25s;
}

.index-item:hover .index-arrow {
  transform: translateX(4px);
  color: var(--brand);
}

/* hero ridotto pagine interne */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--brand-dark);
  isolation: isolate;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 460px at 15% -10%, rgba(184, 132, 42, .16), transparent 65%),
    radial-gradient(760px 400px at 92% 110%, rgba(122, 44, 69, .5), transparent 70%);
}

.page-hero h1 {
  color: var(--cream);
  margin-block: 1rem .9rem;
}

.page-hero .lead {
  color: rgba(242, 236, 221, .76);
  max-width: 60ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(242, 236, 221, .55);
  margin-top: 1.6rem;
}

.breadcrumb a {
  color: rgba(242, 236, 221, .72);
  transition: color .25s;
}

.breadcrumb a:hover { color: var(--accent-soft); }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: rgba(242, 236, 221, .3);
}

.breadcrumb ol,
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

/* ---------------------------------------------------------------- card */
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 1.9rem);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 90, 76, .22);
}

.card h3 { margin-bottom: .7rem; }

.card p { font-size: .975rem; }

.card .link-arrow { margin-top: auto; padding-top: 1.4rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(63, 90, 76, .07);
  color: var(--brand);
  margin-bottom: 1.4rem;
}

.card-icon svg { width: 24px; height: 24px; }

/* ------------------------------------------- scheda percorso (tipografica) */
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  transition: border-color .35s, box-shadow .45s var(--ease), transform .45s var(--ease);
}

.course-card:hover {
  border-color: rgba(44, 66, 55, .28);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.course-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.course-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.course-card h3 { margin-bottom: .7rem; }

.course-card p { font-size: .95rem; }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.4rem;
}

.tag {
  padding: .3rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--slate-soft);
  background: var(--bg);
}

.course-card .link-arrow { margin-top: auto; padding-top: 1.5rem; }

/* ----------------------------------- indice articoli in stile rivista */
.entries { border-top: 1px solid var(--line); }

.entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.entry-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.entry:hover .entry-media img { transform: scale(1.04); }

.entry-body h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-block: .55rem .6rem;
}

.entry-body h3 a {
  color: var(--ink);
  transition: color .25s;
}

.entry-body h3 a:hover { color: var(--brand); }

.entry-body p {
  font-size: .95rem;
  max-width: 66ch;
}

.entry-body .link-arrow { margin-top: 1.1rem; }

/* --------------------------------------------------------------- libri */
.book {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
}

.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(0, 0, 0, .22);
}

.book-cover span {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}

.book-body h3 { margin-bottom: .5rem; }

.book-body p { font-size: .92rem; }

.book-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.book-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------- newsletter */
.newsletter {
  background: var(--slate);
  color: rgba(242, 236, 221, .78);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.newsletter h2 {
  color: var(--cream);
  margin-block: .9rem 1rem;
}

.newsletter .lead { color: rgba(242, 236, 221, .7); }

.newsletter .eyebrow,
.newsletter .eyebrow::before { color: var(--accent-soft); }

.newsletter .eyebrow::before { background: var(--accent-soft); }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.newsletter-form input {
  flex: 1 1 240px;
  padding: .95rem 1.15rem;
  border: 1px solid rgba(242, 236, 221, .24);
  border-radius: 999px;
  background: rgba(242, 236, 221, .06);
  color: var(--cream);
  font-size: .95rem;
  transition: border-color .25s, background-color .25s;
}

.newsletter-form input::placeholder { color: rgba(242, 236, 221, .45); }

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(242, 236, 221, .1);
}

.newsletter .check {
  color: rgba(242, 236, 221, .6);
  margin-top: 1rem;
}

.newsletter .check a { color: var(--accent-soft); }

.newsletter .form-status { color: rgba(242, 236, 221, .8); margin-top: .75rem; }

/* ------------------------------------------------------------- split */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.split-media { position: relative; }

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-media::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 62%;
  height: 62%;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: .4;
  z-index: -1;
}

.split-body h2 { margin-block: .8rem 1.2rem; }

.split-list {
  display: grid;
  gap: .9rem;
  margin-top: 1.9rem;
}

.split-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: .975rem;
  font-weight: 500;
  color: var(--ink);
}

.split-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.split-body .btn { margin-top: 2.1rem; }

/* ---------------------------------------------------------- citazione */
.quote {
  max-width: 54ch;
  margin-inline: auto;
  text-align: center;
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-style: italic;
  line-height: 1.32;
  color: var(--ink);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: .5;
  margin-bottom: .5rem;
}

.quote figcaption {
  margin-top: 1.6rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- rivista */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}

.post-meta .dot { color: var(--line); }

/* articolo */
.article {
  max-width: 74ch;
  margin-inline: auto;
}

.article > * + * { margin-top: 1.25rem; }

.article h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-top: 2.75rem;
}

.article h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-top: 2rem;
}

.article ul {
  display: grid;
  gap: .7rem;
  padding-left: 0;
}

.article ul li {
  position: relative;
  padding-left: 1.5rem;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-block: 2.25rem;
}

.article strong { color: var(--ink); font-weight: 600; }

.article-note {
  margin-top: 2.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}

/* ---------------------------------------------------------------- form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.field { display: flex; flex-direction: column; gap: .45rem; }

.field-full { grid-column: 1 / -1; }

.field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}

.field label .req { color: var(--brand-soft); }

.field input,
.field select,
.field textarea {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(63, 90, 76, .1);
}

.field input::placeholder,
.field textarea::placeholder { color: #b3a99f; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
}

.check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--brand);
}

.check a { text-decoration: underline; text-underline-offset: 2px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.form-status {
  font-size: .875rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.is-ok { color: #2f6b45; }
.form-status.is-error { color: #a8322f; }

.form-hint {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: var(--muted);
}

/* contatti — colonna info */
.info-list { display: grid; gap: 1rem; }

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(63, 90, 76, .07);
  color: var(--brand);
  flex: none;
}

.info-icon svg { width: 19px; height: 19px; }

.info-item h3 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.info-item p,
.info-item a {
  font-size: .975rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.info-item a:hover { color: var(--brand); }

.socials {
  display: flex;
  gap: .6rem;
  margin-top: .35rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--brand);
  background: #fff;
  transition: background-color .3s, color .3s, transform .35s var(--ease), border-color .3s;
}

.social-btn svg { width: 17px; height: 17px; }

.social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------- CTA banner */
.cta-banner {
  position: relative;
  background: var(--brand);
  color: rgba(242, 236, 221, .8);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 340px at 50% -20%, rgba(217, 162, 43, .22), transparent 70%),
    radial-gradient(600px 320px at 12% 120%, rgba(63, 15, 32, .7), transparent 70%);
}

.cta-banner h2 {
  color: var(--cream);
  margin-block: .9rem 1.1rem;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-banner .lead {
  color: rgba(242, 236, 221, .74);
  margin-inline: auto;
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 2.25rem;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(242, 236, 221, .62);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.footer-col ul { display: grid; gap: .7rem; }

.footer-col a {
  color: rgba(242, 236, 221, .62);
  transition: color .25s;
}

.footer-col a:hover { color: var(--accent-soft); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}

.footer-brand .brand-word { color: var(--cream); }

.footer-col p { max-width: 40ch; line-height: 1.7; }

.footer-note {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: rgba(242, 236, 221, .42);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(242, 236, 221, .12);
  font-size: .8rem;
  color: rgba(242, 236, 221, .45);
}

.footer-bottom a { color: rgba(242, 236, 221, .6); }
.footer-bottom a:hover { color: var(--accent-soft); }

.footer-bottom .sep { color: rgba(242, 236, 221, .25); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  color: rgba(242, 236, 221, .6);
  text-decoration: none;
}

.link-btn:hover { color: var(--accent-soft); }

/* -------------------------------------------------------- disclaimer */
.disclaimer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
}

.disclaimer p {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  max-width: 90ch;
  margin-inline: auto;
}

/* ------------------------------------------------------- cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 130%);
  z-index: 200;
  width: min(680px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  transition: transform .55s var(--ease);
}

.cookie-banner.is-open { transform: translate(-50%, 0); }

.cookie-banner p {
  flex: 1 1 300px;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted);
}

.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.cookie-actions .btn { padding: .7rem 1.4rem; font-size: .82rem; }

/* ----------------------------------------------------------------- 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + 4rem) 4rem;
  background: var(--brand-dark);
  position: relative;
  isolation: isolate;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(184, 132, 42, .16), transparent 70%),
    radial-gradient(700px 380px at 80% 110%, rgba(122, 44, 69, .5), transparent 70%);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 600;
  line-height: .9;
  color: var(--accent-soft);
  opacity: .85;
}

.error-page h1 {
  color: var(--cream);
  margin-block: 1rem;
}

.error-page .lead {
  color: rgba(242, 236, 221, .72);
  margin-inline: auto;
}

/* ------------------------------------------------------------- legale */
.legal {
  max-width: 78ch;
  margin-inline: auto;
}

.legal > * + * { margin-top: 1.1rem; }

.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-top: 2.75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.85rem;
}

.legal ul {
  display: grid;
  gap: .6rem;
}

.legal ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .975rem;
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal strong { color: var(--ink); font-weight: 600; }

.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal-updated {
  display: inline-block;
  margin-top: 2.5rem;
  padding: .5rem 1rem;
  background: var(--bg-alt);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}

th, td {
  padding: .9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-alt);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

/* --------------------------------------------------------- breakpoint */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { max-width: 18ch; }
  .newsletter-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* NB: l'header ha backdrop-filter, quindi e' lui il containing block
     dei discendenti "fixed": servono top/height espliciti, non inset+bottom. */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
    padding: 2.5rem 2rem;
  }

  /* centratura "sicura": centra quando c'e' spazio, scorre senza tagli quando manca */
  .nav-links > li:first-child { margin-top: auto; }
  .nav-links > li:last-child { margin-bottom: auto; }

  .nav-links.is-open { transform: none; }

  .nav-links > li > a { font-size: 1.3rem; font-family: var(--font-display); }

  .nav-cta { font-family: var(--font-body) !important; font-size: .95rem !important; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr; }

  .split-media { order: -1; max-width: 560px; }
  .split-media::before { display: none; }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-bottom { justify-content: center; text-align: center; }

  .entry { grid-template-columns: 1fr; gap: 1.25rem; }
  .entry-media { max-width: 320px; aspect-ratio: 16 / 10; }

  .book { grid-template-columns: 110px 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }

  .cookie-banner { padding: 1.25rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }

  .hero-cta .btn,
  .cta-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }

  .brand-word { font-size: .95rem; }

  .info-item { padding: 1.1rem 1.2rem; }

  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 130px; }

  .newsletter-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cta-banner { display: none; }
}

/* ==========================================================================
   AREA RISERVATA — login, dashboard e contenuti per gli iscritti
   ========================================================================== */

/* ------------------------------------------------------------ login */
.login-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.login-benefits {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.login-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.login-benefits svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: .2rem;
  color: var(--accent);
}

.login-benefits strong { color: var(--ink); }

.login-note {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
}

.login-note a { text-decoration: underline; text-underline-offset: 2px; }

.login-card { max-width: 460px; }

.login-lock {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  margin-bottom: 1.1rem;
}

.login-lock svg { width: 26px; height: 26px; }

.login-title { margin-bottom: .3rem; }

.login-sub {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.login-card .field + .field { margin-top: 1.1rem; }

.login-btn { width: 100%; justify-content: center; text-align: center; }

/* -------------------------------------------------- dashboard hero */
.member-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}

.member-chip {
  display: inline-block;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease);
}

.member-chip:hover {
  border-color: var(--brand-soft);
  background: var(--brand);
  color: var(--cream);
  transform: translateY(-2px);
}

.member-note {
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------ video card */
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(194, 106, 74, .28), transparent 55%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 65%, var(--brand-soft));
  display: grid;
  place-items: center;
}

.play-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 249, 245, .16);
  border: 1px solid rgba(251, 249, 245, .45);
  color: var(--cream);
  backdrop-filter: blur(4px);
  transition: transform .35s var(--ease), background-color .3s;
}

.video-card:hover .play-badge {
  transform: scale(1.08);
  background: rgba(251, 249, 245, .28);
}

.play-badge svg { width: 26px; height: 26px; }

.video-duration {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(35, 40, 35, .6);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.video-body { padding: 1.4rem 1.5rem 1.6rem; }

.video-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .45rem;
}

.video-body h3 { margin-bottom: .55rem; }

.video-body p { font-size: .93rem; line-height: 1.65; }

/* --------------------------------------------------- numeri rivista */
.issue-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}

.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.issue-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .9rem;
}

.issue-card h3 { margin-bottom: .55rem; }

.issue-card p { font-size: .93rem; line-height: 1.65; }

.issue-card .link-arrow { margin-top: .9rem; display: inline-flex; }

.issue-soon {
  display: inline-block;
  margin-top: .9rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.issue-card.is-soon,
.course-card.is-soon { opacity: .75; }

.issue-card.is-soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }

/* ------------------------------------------------------- dispense */
.resource-list {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.resource-item.is-soon { opacity: .7; }

.resource-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cream);
  color: var(--brand);
}

.resource-icon svg { width: 24px; height: 24px; }

.resource-body {
  display: grid;
  gap: .15rem;
  flex: 1;
}

.resource-body strong { color: var(--ink); font-size: .98rem; }

.resource-body span { font-size: .85rem; color: var(--muted); }

.resource-btn { flex: none; padding: .6rem 1.3rem; font-size: .85rem; }

.resource-soon {
  flex: none;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------- articolo riservato */
.article-container { max-width: 760px; }

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.member-badge svg { width: 15px; height: 15px; }

.article-container h2 { margin-top: 2.4rem; margin-bottom: .9rem; }

.article-list {
  display: grid;
  gap: .9rem;
  margin: 1.2rem 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.article-list li { padding-left: .3rem; }

.article-list strong { color: var(--ink); }

.article-callout {
  margin: 2.2rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-footer-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------- responsive */
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-card { max-width: 560px; }
}

@media (max-width: 640px) {
  .resource-item { flex-wrap: wrap; }
  .resource-body { flex-basis: calc(100% - 60px); }
  .resource-btn,
  .resource-soon { margin-left: 60px; }
}

/* ==========================================================================
   AREA RISERVATA 2.0 — grafica moderna, bottoni marketing, animazioni
   ========================================================================== */

@keyframes ps-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(16px, -22px) scale(1.07); }
}

@keyframes ps-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-20px, 16px) scale(1.1); }
}

@keyframes ps-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ps-breathe {
  0%, 100% { transform: scale(.85); opacity: .45; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@keyframes ps-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(242, 236, 221, .38); }
  70%  { box-shadow: 0 0 0 18px rgba(242, 236, 221, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 236, 221, 0); }
}

@keyframes ps-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ps-shine {
  from { transform: translateX(-140%) skewX(-18deg); }
  to   { transform: translateX(240%) skewX(-18deg); }
}

/* ------------------------------------------------- hero animato */
.area-hero { position: relative; overflow: hidden; }

.area-hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.blob-gold {
  width: 400px;
  height: 400px;
  right: -100px;
  top: -130px;
  background: rgba(194, 106, 74, .38);
  animation: ps-float 9s ease-in-out infinite;
}

.blob-wine {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -150px;
  background: rgba(216, 132, 95, .16);
  animation: ps-float-b 11s ease-in-out infinite;
}

.area-hero .container { position: relative; z-index: 1; }

.area-hero .container > * { animation: ps-fade-up .85s var(--ease) both; }
.area-hero .container > *:nth-child(2) { animation-delay: .1s; }
.area-hero .container > *:nth-child(3) { animation-delay: .2s; }
.area-hero .container > *:nth-child(4) { animation-delay: .32s; }
.area-hero .container > *:nth-child(5) { animation-delay: .44s; }

.text-gradient {
  background: linear-gradient(90deg, var(--accent-soft), #eba980 40%, #c96f45 70%, var(--accent-soft));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ps-gradient 5s linear infinite;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  margin-top: 1.9rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(242, 236, 221, .88);
  font-size: .87rem;
  font-weight: 500;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent-soft);
}

/* ------------------------------------------- bottoni marketing */
.btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.05rem 2.3rem;
  font-size: .95rem;
  letter-spacing: .03em;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 45%, var(--brand-soft));
  background-size: 190% auto;
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(44, 66, 55, .32);
  animation: ps-gradient 7s ease infinite;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-140%) skewX(-18deg);
  z-index: -1;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px rgba(44, 66, 55, .42);
  color: var(--cream);
}

.btn-cta:hover::after { animation: ps-shine .85s var(--ease); }

.btn-cta .btn-arrow {
  display: inline-block;
  transition: transform .35s var(--ease);
}

.btn-cta:hover .btn-arrow { transform: translateX(5px); }

.btn-cta--gold {
  background: linear-gradient(120deg, var(--accent), #d57f52 45%, var(--accent-soft));
  background-size: 190% auto;
  color: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(194, 106, 74, .38);
}

.btn-cta--gold:hover {
  color: var(--brand-dark);
  box-shadow: 0 16px 38px rgba(194, 106, 74, .5);
}

/* ------------------------------------------------ login moderno */
.login-card {
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
  background-size: 200% auto;
  animation: ps-gradient 6s linear infinite;
}

.login-lock { position: relative; }

.login-lock::before,
.login-lock::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(44, 66, 55, .35);
}

.login-lock::before {
  inset: -9px;
  animation: ps-breathe 4.5s ease-in-out infinite;
}

.login-lock::after {
  inset: -18px;
  border-color: rgba(44, 66, 55, .16);
  animation: ps-breathe 4.5s ease-in-out infinite 1.1s;
}

.login-benefits svg { transition: transform .35s var(--ease); }

.login-benefits li:hover svg { transform: scale(1.2) rotate(-8deg); }

.login-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.6rem;
}

.login-social-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: .3rem;
}

.login-social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}

.login-social a:hover {
  border-color: var(--brand-soft);
  background: var(--brand);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-social svg { width: 16px; height: 16px; }

/* --------------------------------------------- statistiche hero */
.member-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  margin-top: 2.1rem;
}

.member-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-soft);
}

.member-stats .stat span {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, .72);
}

/* ------------------------------------------- micro-interazioni */
.play-badge { animation: ps-pulse-ring 2.8s ease-out infinite; }

.video-card:nth-child(2) .play-badge { animation-delay: .5s; }
.video-card:nth-child(3) .play-badge { animation-delay: 1s; }

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .09), transparent 70%);
  transform: translateX(-140%) skewX(-18deg);
}

.video-card:hover .video-thumb::after { animation: ps-shine 1s var(--ease); }

.issue-number {
  background: linear-gradient(90deg, var(--accent), #eba980, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.issue-card:hover .issue-number { animation: ps-gradient 2.5s linear infinite; }

.resource-item {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}

.resource-item:not(.is-soon):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.resource-icon { transition: transform .35s var(--ease), background-color .3s, color .3s; }

.resource-item:not(.is-soon):hover .resource-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--brand);
  color: var(--cream);
}

.member-chip { position: relative; }

.member-chip::after {
  content: '→';
  display: inline-block;
  margin-left: .4rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .35s var(--ease);
}

.member-chip:hover::after {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .blob-gold { width: 240px; height: 240px; }
  .blob-wine { width: 200px; height: 200px; }
  .member-stats { gap: 1.2rem 1.8rem; }
  .member-stats .stat b { font-size: 1.7rem; }
}

/* ==========================================================================
   PANNELLO ADMIN — statistiche iscritti
   ========================================================================== */

.admin-login {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
}

.admin-login-card { width: min(460px, 100%); margin-inline: auto; }

.admin-hero { padding-bottom: 1rem; }

.admin-section { padding-top: 2.5rem; }

.admin-demo-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px dashed var(--accent);
  color: var(--ink);
  font-size: .83rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.admin-demo-note svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ------------------------------------------------------ stat tiles */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-tile-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-tile-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand);
  margin-top: .2rem;
}

.stat-tile.is-accent .stat-tile-num { color: var(--accent); }

.stat-tile-sub { font-size: .8rem; color: var(--muted); }

/* -------------------------------------------------------- card admin */
.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}

.admin-card-title {
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
}

.admin-card-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.1rem;
}

/* -------------------------------------------------- grafico a barre */
.chart-mesi {
  display: flex;
  align-items: flex-end;
  gap: clamp(.5rem, 2vw, 1.1rem);
  height: 240px;
  padding-top: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: .45rem;
  min-width: 0;
}

.chart-bar {
  width: 100%;
  max-width: 52px;
  background: var(--brand-soft);
  border-radius: 4px 4px 0 0;
  transition: background-color .25s, transform .5s var(--ease);
  transform-origin: bottom;
  animation: ps-fade-up .7s var(--ease) both;
}

.chart-col.is-current .chart-bar { background: var(--accent); }

.chart-col:hover .chart-bar { background: var(--brand); }

.chart-col.is-current:hover .chart-bar { background: var(--accent-soft); }

.chart-value {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .3s var(--ease);
}

.chart-col:hover .chart-value,
.chart-col.is-current .chart-value { opacity: 1; transform: none; }

.chart-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .5rem;
}

/* ------------------------------------------------------ barre fonti */
.fonti-list { display: grid; gap: .9rem; }

.fonte-row {
  display: grid;
  grid-template-columns: 92px 1fr 30px;
  align-items: center;
  gap: .8rem;
}

.fonte-nome { font-size: .86rem; font-weight: 600; color: var(--ink); }

.fonte-track {
  height: 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.fonte-bar {
  display: block;
  height: 100%;
  background: var(--brand-soft);
  border-radius: 999px;
  animation: ps-fonte-grow .8s var(--ease) both;
}

@keyframes ps-fonte-grow { from { width: 0 !important; } }

.fonte-num { font-size: .86rem; font-weight: 700; color: var(--text); text-align: right; }

/* ---------------------------------------------------------- tabella */
.admin-card-full { margin-bottom: 1rem; }

.admin-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .4rem;
}

.admin-table-head .admin-card-title { margin-bottom: 0; }

.admin-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.admin-table-tools input[type="search"] {
  padding: .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .88rem;
  min-width: 230px;
}

.admin-table-tools input[type="search"]:focus {
  outline: none;
  border-color: var(--brand-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(63, 90, 76, .12);
}

.btn-sm { padding: .6rem 1.3rem; font-size: .84rem; }

.admin-conta { font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.admin-table th {
  text-align: left;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .7rem .9rem;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table tbody tr:hover { background: var(--bg); }

.admin-table td a { text-decoration: underline; text-underline-offset: 2px; }

.badge-stato {
  display: inline-block;
  padding: .18rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-stato.is-attivo { background: rgba(63, 90, 76, .12); color: var(--brand); }

.badge-stato.is-scaduto { background: rgba(194, 106, 74, .14); color: #a34f31; }

.admin-errore { color: #a8322f; font-size: .9rem; margin-top: 1rem; }

.admin-footer { padding-top: 0; }

.admin-footer .footer-bottom { border-top: 0; }

@media (max-width: 1024px) {
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .stat-tile-num { font-size: 2.1rem; }
  .chart-mesi { height: 190px; }
  .admin-table-tools input[type="search"] { min-width: 0; flex: 1; }
}

/* ------------------------------------------- contenuti più visti */
.topvisti-list { display: grid; gap: .35rem; }

.topvisti-row {
  display: grid;
  grid-template-columns: 34px minmax(200px, 1.2fr) 1fr 64px;
  align-items: center;
  gap: 1rem;
  padding: .55rem .6rem;
  border-radius: 12px;
  transition: background-color .2s;
}

.topvisti-row:hover { background: var(--bg); }

.topvisti-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
}

.topvisti-row:nth-child(1) .topvisti-rank,
.topvisti-row:nth-child(2) .topvisti-rank,
.topvisti-row:nth-child(3) .topvisti-rank { color: var(--accent); }

.topvisti-body { display: grid; gap: .25rem; min-width: 0; }

.topvisti-titolo {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topvisti-meta { display: flex; gap: .4rem; }

.topvisti-num {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.tipo-badge {
  display: inline-block;
  padding: .12rem .6rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--line);
}

.tipo-badge.is-video           { background: rgba(63, 90, 76, .12);   color: var(--brand);  border-color: transparent; }
.tipo-badge.is-rivista         { background: rgba(194, 106, 74, .13); color: #a34f31;       border-color: transparent; }
.tipo-badge.is-pdf             { background: rgba(62, 70, 63, .1);    color: var(--slate);  border-color: transparent; }
.tipo-badge.is-approfondimento { background: rgba(216, 132, 95, .16); color: #8d4527;       border-color: transparent; }

/* ------------------------------------------- gestione contenuti */
.gestione-intro {
  font-size: .92rem;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.gestione-form {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 1.1rem;
  padding: 1.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gestione-form .form-actions { grid-column: 1 / -1; margin-top: .2rem; }

.gestione-pubblicati { margin-top: 1.6rem; }

.gestione-sub {
  font-size: .95rem;
  margin-bottom: .9rem;
}

.gestione-list { display: grid; gap: .7rem; }

.gestione-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gestione-item-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .7rem;
  min-width: 0;
}

.gestione-item-body strong { font-size: .93rem; color: var(--ink); }

.gestione-item-desc {
  flex-basis: 100%;
  font-size: .82rem;
  color: var(--muted);
}

.gestione-rimuovi {
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .35rem .95rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}

.gestione-rimuovi:hover {
  border-color: #a8322f;
  color: #a8322f;
  background: rgba(168, 50, 47, .06);
}

@media (max-width: 768px) {
  .gestione-form { grid-template-columns: 1fr; }
  .topvisti-row { grid-template-columns: 26px 1fr 60px; }
  .topvisti-track { display: none; }
}
