/* ============================================================
   elenainversetti.it — stile: editoriale, carta, teal
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── VARIABILI ── */
:root {
  --bg:     #EDEAE4;
  --paper:  #F2F4F3;
  --white:  #FFFFFF;
  --ink:    #04292F;
  --muted:  #6d7a7d;
  --border: #d9d3c9;
  --teal:   #008497;
  --sky:    #57B9CD;
  --amber:  #FFBD59;
  --pink:   #F9048B;
  --font-d: 'Bodoni Moda', serif;
  --font-b: 'Spectral', serif;
  --font-l: 'IBM Plex Serif', serif;
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 .4em;
  color: var(--ink);
}

em { font-style: italic; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(237,234,228,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--font-d); font-weight: 400; font-size: 20px;
  color: var(--ink);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.site-header.scrolled .brand { opacity: 1; transform: none; pointer-events: auto; }
.brand .dot { color: var(--teal); }
.brand .brand-b { font-weight: 700; }

/* Logotipo grande dentro l'hero */
.hero-brand {
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(54px, 7.5vw, 104px);
  line-height: 1; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 28px;
}
.hero-brand .dot { color: var(--teal); }
.hero-brand .brand-b { font-weight: 700; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-family: var(--font-l); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal); }

@media (max-width: 700px) {
  .main-nav { display: none; }
  .site-header { padding: 0 18px; }
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  font-family: var(--font-l); font-weight: 500; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

/* ── HERO ── */
.hero { border-bottom: 1px solid var(--border); }
.hero-content {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 88px 32px 72px;
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: stretch;
}
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.badge {
  font-family: var(--font-l); font-weight: 500; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px;
}
.badge-fill { background: var(--teal); color: var(--paper); }
.badge-outline { background: transparent; color: var(--ink); border: 1px solid #a8ccd4; font-weight: 400; }

.hero-title {
  font-size: clamp(44px, 6.2vw, 82px);
  color: var(--ink); margin-bottom: 26px;
}
.hero-sub {
  font-size: 1.05rem; color: #3d464b; max-width: 520px;
  line-height: 1.75; margin-bottom: 32px; font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-l); font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 26px; transition: all .18s;
}
.btn-primary { background: var(--teal); color: var(--paper); border: 1px solid var(--teal); }
.btn-primary:hover { background: transparent; color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-photo {
  display: flex; align-items: flex-end; justify-content: center;
  align-self: end; margin-bottom: -72px;
}
.hero-photo img { max-height: clamp(480px, 44vw, 660px); width: auto; }

@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; padding: 56px 20px 48px; }
  .hero-photo { display: none; }
}

/* ── SEZIONI ── */
.section {
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
  max-width: 1180px; margin: 0 auto;
}
.section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.nl-wordmark {
  font-weight: 700; color: var(--pink);
  font-size: clamp(52px, 8.4vw, 104px);
}
.nl-wordmark .dot-teal { color: var(--teal); }

/* Newsletter: titolo/sottotitolo più vicini al box sotto */
#newsletter .section-head { margin-bottom: 20px; }
.section-sub { margin-top: 12px; font-size: .95rem; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-more { margin-top: 28px; font-size: .85rem; }
.section-more a { color: var(--teal); transition: opacity .15s; }
.section-more a:hover { opacity: .7; }

@media (max-width: 680px) { .section { padding: 56px 18px; } }

/* ── SEZIONI FULL-BLEED (Chi Sono, Podcast) ── */
.section-full { border-bottom: 1px solid var(--border); }
.section-full .section-inner {
  max-width: 1180px; margin: 0 auto; padding: 80px 32px;
}
@media (max-width: 680px) { .section-full .section-inner { padding: 56px 18px; } }

/* Variante "teal pieno": bg teal scuro, testo bianco, accenti gialli */
.teal-solid { background: var(--teal); color: var(--paper); }
.teal-solid .section-label { color: var(--amber); }
.teal-solid h2 { color: var(--paper); }
.teal-solid .section-sub { color: rgba(242,244,243,.8); }
.teal-solid .bio-text em { color: var(--amber); font-style: normal; font-weight: 600; }
.teal-solid .bio-text p, .teal-solid .podcast-text p { color: rgba(242,244,243,.92); }
.teal-solid .podcast-info li { border-bottom-color: rgba(242,244,243,.25); }
.teal-solid .pi-k { color: var(--amber); }
.teal-solid .pi-v { color: rgba(242,244,243,.85); }
.teal-solid .pi-v a { color: var(--amber); }
.teal-solid .btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.teal-solid .btn-primary:hover { background: transparent; color: var(--amber); }

/* Variante "teal chiaro": bg sky, testo scuro, accenti teal */
.teal-light { background: var(--sky); color: var(--ink); }
.teal-light .section-label { color: var(--ink); }
.teal-light h2 { color: var(--ink); }
.teal-light .section-sub { color: rgba(4,41,47,.75); }
.teal-light .bio-text em { color: var(--ink); font-style: normal; font-weight: 700; }
.teal-light .bio-text p, .teal-light .podcast-text p { color: rgba(4,41,47,.85); }
.teal-light .podcast-info li { border-bottom-color: rgba(4,41,47,.18); }
.teal-light .pi-k { color: var(--teal); }
.teal-light .pi-v { color: rgba(4,41,47,.85); }
.teal-light .pi-v a { color: var(--teal); }
.teal-light .btn-primary { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.teal-light .btn-primary:hover { background: transparent; color: var(--teal); }

/* ── CHI SONO ── */
.bio-text { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.bio-text p { font-size: 1rem; line-height: 1.8; font-weight: 300; }

/* ── PODCAST ── */
.podcast-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start;
}
.podcast-head-row { display: flex; align-items: center; gap: 28px; }
.podcast-logo {
  width: clamp(96px, 11vw, 152px); height: clamp(96px, 11vw, 152px);
  border-radius: 0; flex-shrink: 0;
}
.podcast-head-row h2, .podcast-head-row .section-sub { margin: 0; }
.podcast-head-row h2 { margin-bottom: .3em; }
.podcast-text { margin-top: 28px; }
.podcast-text p { font-size: .98rem; line-height: 1.8; margin-bottom: 26px; font-weight: 300; }
.podcast-info ul { display: flex; flex-direction: column; }
.podcast-info li {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: .85rem;
}
.pi-k {
  font-family: var(--font-l); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}
.pi-v { color: var(--ink); }
.pi-v a { color: var(--teal); }
.pi-v a:hover { opacity: .75; }

@media (max-width: 860px) {
  .podcast-layout { grid-template-columns: 1fr; gap: 32px; }
  .podcast-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── CARD PROGETTI ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--border));
  padding: 32px 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent, var(--teal)); transform: translateY(-2px); }
.card-num {
  font-family: var(--font-d); font-size: 42px; font-weight: 400;
  line-height: 1; color: var(--border); margin-bottom: 16px; transition: color .2s;
}
.card:hover .card-num { color: var(--accent, var(--teal)); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: .88rem; color: var(--muted); line-height: 1.65; font-weight: 300; }

/* ── NEWSLETTER: box full-bleed, largo quanto la pagina ── */
.nl-grid { display: block; }
.nl-box {
  background: var(--ink);
  position: relative; border-top: 4px solid;
  /* breakout full-bleed: largo quanto il viewport, indipendente dal contenitore max-width */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.nl-pink { border-top-color: var(--pink); }
.nl-teal { border-top-color: var(--teal); }

/* colonne interne testo/CTA + lista articoli, riallineate al gutter del sito */
.nl-single .nl-cols {
  max-width: 1180px; margin: 0 auto; padding: 48px 32px;
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start;
}
.nl-col-main { display: flex; flex-direction: column; gap: 18px; }
.nl-icon {
  display: block; width: 88px; height: 88px; margin-bottom: 6px;
  background-color: var(--pink);
  -webkit-mask: url('../images/writing.png') no-repeat center / contain;
  mask: url('../images/writing.png') no-repeat center / contain;
}
@media (max-width: 760px) { .nl-single .nl-cols { grid-template-columns: 1fr; padding: 40px 18px; } }

.nl-desc { font-size: .9rem; color: #c3d0d2; line-height: 1.7; font-weight: 300; }

.nl-post-list { display: flex; flex-direction: column; }
.nl-post-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.nl-post-list li:last-child { border-bottom: none; }
.nl-post-list a { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; }
.nl-date { font-family: var(--font-l); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #7fa3a8; }
.nl-title-post { font-size: .88rem; color: var(--paper); line-height: 1.4; }
.nl-pink .nl-post-list a:hover .nl-title-post { color: var(--pink); }
.nl-teal .nl-post-list a:hover .nl-title-post { color: var(--sky); }

.nl-cta {
  align-self: flex-start;
  font-family: var(--font-l); font-weight: 500; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 22px; margin-top: 4px;
  border: 1px solid rgba(255,255,255,.4); color: var(--paper);
  transition: all .18s;
}
.nl-pink .nl-cta:hover { background: var(--pink); border-color: var(--pink); }
.nl-teal .nl-cta:hover { background: var(--teal); border-color: var(--teal); }

/* ── CONTATTI ── */
#contatti { padding-bottom: 0; border-bottom: 6px solid var(--teal); }
.contact-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 0; align-items: end; }
.contact-photo { display: flex; align-items: flex-end; justify-content: center; }
.contact-photo img { max-height: 480px; width: auto; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } .contact-photo { display: none; } }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  padding: 22px 24px; transition: border-color .2s;
}
.contact-card:hover { border-color: var(--teal); }
.ck {
  font-family: var(--font-l); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}
.cv { font-family: var(--font-b); font-size: .95rem; color: var(--ink); }

/* ── FOOTER ── */
.site-footer {
  padding: 64px 32px 48px; text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer .quote {
  font-family: var(--font-d); font-weight: 400; font-size: 1.4rem;
  color: var(--ink); max-width: 620px; margin: 0 auto 20px; line-height: 1.4;
}
.footer-meta {
  font-family: var(--font-l); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
