@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,300;1,6..96,400&display=swap');

html {
  scroll-behavior: smooth;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --panel: rgba(18, 18, 18, 0.90);
  --nav-bg: #111111;
  --text: #f0f0f0;
  --muted: #888;
  --accent: #c8a96e;
  --border: #272727;
  --radius: 10px;
  --font-body: 'Karla', sans-serif;
  --font-heading: 'Bodoni Moda', Georgia, serif;
}

body {
  background-image: url('img/Disegno 1981 - Sfondo.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  font-optical-sizing: auto;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
  margin-left: auto;
}

.navbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 7px 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
  line-height: 1;
}

/* === Main content === */
.main {
  margin-top: 62px;
  padding: 32px 28px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

/* === Panel (card contenuto) === */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.panel p {
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: justify;
  font-size: 1rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: normal;
  margin-bottom: 14px;
}

/* === Immagini === */
.profile-img {
  display: block;
  max-width: 260px;
  width: 100%;
  border-radius: 8px;
  margin: 0 auto 24px;
}

.doc-img {
  display: block;
  max-width: 400px;
  width: 100%;
  border-radius: 6px;
  margin: 0 auto 16px;
}

.inline-img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0 16px;
  display: block;
}

.signature {
  max-height: 70px;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 12px;
}

/* === Sistema Tab === */
.tab-wrapper {
  margin-bottom: 20px;
}

.tab {
  display: flex;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: none;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
}

.tab button {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  flex: 1;
  min-width: max-content;
}

.tab button:last-child {
  border-right: none;
}

.tab button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tab button.active {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.tabcontent {
  display: none;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.tabcontent.active {
  display: block;
}

.tabcontent p {
  line-height: 1.8;
  margin-bottom: 14px;
  text-align: justify;
  font-size: 1rem;
}

.tabcontent p:last-child {
  margin-bottom: 0;
}

.tabcontent h3 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 1.25rem;
}

/* === Elenco articoli (lista testo centrata) === */
.article-list {
  text-align: center;
  line-height: 2.2;
  font-size: 0.95rem;
  color: var(--text);
}

/* === Gallery Opere === */
.gallery-wrapper {
  background: rgba(5, 5, 5, 0.92);
  padding: 36px 24px 64px;
  min-height: calc(100vh - 62px - 160px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (min-width: 1400px) {
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.28);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 1024px) {
  .lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.lightbox-hint {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.lightbox-hint.fade {
  opacity: 0;
}

@media (max-width: 720px) {
  .lightbox-hint { display: none; }
}

/* === Contatti === */
.contacts-wrapper {
  background: rgba(5, 5, 5, 0.92);
  min-height: calc(100vh - 62px - 160px);
  padding: 56px 32px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

@media (min-width: 860px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.contact-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 20px;
}

.contact-logo {
  max-width: 140px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.contact-card-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.4rem;
  color: #f8f3ec;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-detail-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.contact-detail-key {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 64px;
  flex-shrink: 0;
}

.contact-detail-val {
  font-size: 0.92rem;
  color: rgba(240, 240, 240, 0.78);
}

.contact-detail-link {
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.contact-detail-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #0d0d0d;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-action:hover {
  opacity: 0.82;
}

.btn-action--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.45);
  font-weight: 400;
}

.btn-action--ghost:hover {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.08);
}

@media (max-width: 720px) {
  .contacts-wrapper {
    padding: 32px 20px 56px;
  }

  .contact-card {
    padding: 28px 24px;
  }
}

/* === Responsive === */
@media (max-width: 720px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #171717;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 8px 0 16px;
    gap: 0;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    border-bottom: 1px solid rgba(255,255,255,0.045);
  }

  .navbar-links li:last-child {
    border-bottom: none;
  }

  .navbar-links a {
    display: flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 0;
    font-size: 1.05rem;
    color: rgba(240, 240, 240, 0.72);
    border-left: 3px solid transparent;
  }

  .navbar-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-left-color: rgba(200, 169, 110, 0.4);
  }

  .navbar-links a.active {
    color: var(--accent);
    background: rgba(200, 169, 110, 0.07);
    border-left-color: var(--accent);
    font-weight: 700;
  }

  .navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 1.1rem;
    transition: background 0.2s;
  }

  .navbar-toggle:hover {
    background: rgba(255,255,255,0.12);
  }

  .main {
    padding: 22px 16px;
  }

  .panel,
  .tabcontent {
    padding: 18px 18px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-wrapper {
    padding: 20px 12px 48px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .tab button {
    font-size: 0.82rem;
    padding: 10px 10px;
  }
}

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

  .navbar-brand {
    font-size: 1rem;
  }
}

/* ============================================================
   HOME PAGE — HERO + BIO
   ============================================================ */

/* Navbar transizione generale */
.navbar {
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Transparent solo su desktop (≥721px) — su mobile la navbar è sempre solida */
@media (min-width: 721px) {
  .navbar--transparent {
    background: rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
  }

  .navbar--transparent .navbar-brand {
    color: rgba(255, 255, 255, 0.92);
  }

  .navbar--transparent .navbar-links a {
    color: rgba(255, 255, 255, 0.62);
  }

  .navbar--transparent .navbar-links a.active,
  .navbar--transparent .navbar-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 96px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.30) 40%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: 0;
}

/* Hero content — mobile: colonna centrata / desktop: 2 colonne */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-text {
  text-align: center;
  position: relative;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 2px solid rgba(200, 169, 110, 0.55);
  margin-bottom: 28px;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow:
    0 0 0 7px rgba(200, 169, 110, 0.07),
    0 20px 70px rgba(0, 0, 0, 0.65);
}

.hero-photo:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 10px rgba(200, 169, 110, 0.14),
    0 24px 80px rgba(0, 0, 0, 0.7);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  font-optical-sizing: auto;
  white-space: nowrap;
  color: #f8f3ec;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

/* Su mobile stretta consenti il wrap */
@media (max-width: 480px) {
  .hero-name {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}

.hero-dates {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 0.78rem;
  color: rgba(240, 240, 240, 0.95);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Citazione visibile solo su desktop */
.hero-quote {
  display: none;
}

/* Desktop: 2 colonne nel hero */
@media (min-width: 768px) {
  .hero {
    padding: 80px 60px 96px;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    max-width: 900px;
    width: 100%;
  }

  .hero-text {
    text-align: left;
    padding: 32px 40px;
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hero-photo {
    width: 210px;
    height: 210px;
    margin-bottom: 0;
  }

  .hero-name {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin-bottom: 18px;
  }

  .hero-quote {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    font-size: 0.92rem;
    font-style: italic;
    color: rgba(240, 240, 240, 0.95);
    line-height: 1.65;
    max-width: 420px;
  }

  .hero-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--accent);
  }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  opacity: 0;
  animation: hintAppear 0.5s 1.2s ease forwards;
}

.scroll-hint::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollDot 1.9s 1.2s ease infinite;
}

/* Bio wrapper — zona editoriale a tutta larghezza */
.bio-wrapper {
  width: 100%;
  /* Fade morbido dal hero + zona scura continua */
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.65) 0%,
    rgba(5, 5, 5, 0.92) 90px,
    rgba(5, 5, 5, 0.92) 100%
  );
  padding: 0;
}

/* Contenuto centrato dentro il wrapper */
.bio-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 48px 88px;
}

/* Le sezioni a colonna singola restano leggibili (max ~70 caratteri per riga) */
.bio-inner > .bio-section,
.bio-inner > .milestone {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Sezioni testo — niente card, testo diretto sul fondo scuro */
.bio-section {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.bio-section p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #c6c6c6;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 22px;
}

.bio-section p:last-child {
  margin-bottom: 0;
}

/* Separatore sottile tra sezioni di testo consecutive */
.bio-section + .bio-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Bio split — testo + immagine affiancati su desktop */
.bio-split {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 721px) {
  .bio-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
  }

  .bio-split .figure-bio {
    margin-top: 0;
  }

  .bio-split .figure-bio img {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .bio-split .figure-bio {
    margin-top: 40px;
  }
}

/* Milestone divider (es: Albo Giornalisti) */
.milestone {
  margin: 52px 0;
  text-align: center;
}

.milestone-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.milestone-divider::before,
.milestone-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 169, 110, 0.28);
}

/* Figure/immagine biografica */
.figure-bio {
  text-align: center;
  margin-top: 52px;
}

.figure-bio img {
  max-width: 360px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.figure-bio--wide {
  margin-top: 52px;
}

.figure-bio--wide img {
  max-width: 580px;
}

.figure-bio figcaption {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* Keyframes */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%   { transform: translateX(-50%) translateY(0);    opacity: 1; }
  75%  { transform: translateX(-50%) translateY(14px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

@keyframes hintAppear {
  to { opacity: 1; }
}

/* Home mobile */
@media (max-width: 720px) {
  .hero-photo {
    width: 136px;
    height: 136px;
    margin-bottom: 22px;
  }

  .bio-inner {
    padding: 44px 20px 64px;
  }

  .bio-section p {
    font-size: 0.97rem;
    line-height: 1.88;
  }

  .bio-section + .bio-section {
    margin-top: 36px;
    padding-top: 32px;
  }

  .milestone {
    margin: 40px 0;
  }

  .figure-bio,
  .figure-bio--wide {
    margin-top: 40px;
  }

  .milestone-divider {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-bottom: 80px;
  }
}

/* ============================================================
   PAGE HEADER — usato su tutte le sotto-pagine
   ============================================================ */

.page-header {
  margin-top: 62px;
  padding: 60px 40px 48px;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header-label {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.page-header-label::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  margin: 14px auto 18px;
}

.page-header-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #f8f3ec;
  line-height: 1.1;
}

/* ============================================================
   REVIEWS LAYOUT — recensioni.html
   ============================================================ */

.reviews-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  min-height: calc(100vh - 62px);
  background: rgba(5, 5, 5, 0.92);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Override .tab-wrapper margin */
.reviews-wrapper.tab-wrapper {
  margin-bottom: 0;
}

/* Sidebar */
.reviews-nav {
  position: sticky;
  top: 62px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  scrollbar-width: none;
  background: rgba(8, 8, 8, 0.7);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}

.reviews-nav::-webkit-scrollbar { display: none; }

/* Sidebar label header */
.reviews-nav-label {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.45);
  padding: 16px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Override generic .tab styles */
.reviews-wrapper .tab {
  flex-direction: column;
  flex-wrap: nowrap;
  background: transparent;
  border-radius: 0;
  border: none;
  gap: 0;
  padding: 0;
  counter-reset: critic;
}

.reviews-wrapper .tab button {
  border-right: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-left: 3px solid transparent;
  border-radius: 0;
  color: rgba(240, 240, 240, 0.55);
  font-size: 0.88rem;
  padding: 14px 22px;
  text-align: left;
  white-space: normal;
  min-width: unset;
  width: 100%;
  line-height: 1.4;
  transition: all 0.18s;
  counter-increment: critic;
}

.reviews-wrapper .tab button::before {
  content: "0" counter(critic);
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(200, 169, 110, 0.3);
  margin-bottom: 3px;
  font-family: var(--font-body);
}

.reviews-wrapper .tab button:last-child {
  border-bottom: none;
}

.reviews-wrapper .tab button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(200, 169, 110, 0.4);
}

.reviews-wrapper .tab button.active {
  color: var(--accent);
  background: rgba(200, 169, 110, 0.07);
  border-left-color: var(--accent);
  font-weight: 700;
}

.reviews-wrapper .tab button.active::before {
  color: var(--accent);
  opacity: 0.6;
}

/* Pubblicazione/data nel bottone della sidebar */
.nav-btn-meta {
  display: block;
  font-size: 0.68rem;
  font-style: italic;
  color: rgba(200, 169, 110, 0.4);
  letter-spacing: 0.04em;
  margin-top: 3px;
  font-weight: 400;
}

.reviews-wrapper .tab button.active .nav-btn-meta {
  color: rgba(200, 169, 110, 0.65);
}

/* Content area */
.reviews-body {
  padding: 44px 52px;
}

/* Override .tabcontent inside reviews */
.reviews-wrapper .tabcontent {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  max-width: 860px;
}

/* Review header inside each tab */
.review-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.review-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.9rem;
  color: #f8f3ec;
  line-height: 1.2;
  margin-bottom: 10px;
}

.review-author {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.review-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Drop cap sul primo paragrafo */
.reviews-wrapper .tabcontent > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  float: left;
  line-height: 0.72;
  margin: 6px 10px 0 0;
  color: var(--accent);
}

/* Clearfix dopo float */
.reviews-wrapper .tabcontent::after {
  content: '';
  display: table;
  clear: both;
}

/* Sidebar più larga su schermi grandi */
@media (min-width: 1200px) {
  .reviews-wrapper {
    grid-template-columns: 300px 1fr;
  }

  .reviews-body {
    padding: 52px 72px;
  }
}

/* Image inside a review */
.review-figure {
  margin: 0 0 28px;
}

.review-figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Float immagine a destra su desktop */
@media (min-width: 721px) {
  .review-figure {
    float: right;
    max-width: 260px;
    margin: 0 0 20px 36px;
  }
}

/* PDF download link */
.review-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 10px 20px;
  border: 1px solid rgba(200, 169, 110, 0.4);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s;
}

.review-download:hover {
  background: rgba(200, 169, 110, 0.08);
  border-color: var(--accent);
}

.review-download-ext {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}

/* ---- Mobile reviews ---- */
@media (max-width: 720px) {
  .page-header {
    padding: 36px 20px 26px;
  }

  .reviews-wrapper {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 40px 20px 32px;
  }

  .reviews-nav {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    background: rgba(5, 5, 5, 0.6);
  }

  /* Nascondi la label sidebar su mobile */
  .reviews-nav-label {
    display: none;
  }

  .reviews-wrapper .tab {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    scrollbar-width: none;
    /* fade a destra per hint scroll */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }

  .reviews-wrapper .tab::-webkit-scrollbar { display: none; }

  .reviews-wrapper .tab button {
    counter-increment: critic;
    border-left: none;
    border-bottom: none;
    border-radius: 20px;
    padding: 8px 18px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(240, 240, 240, 0.6);
    width: auto;
    line-height: 1;
  }

  /* Nascondi i numeri sulle pill mobile */
  .reviews-wrapper .tab button::before {
    display: none;
  }

  .reviews-wrapper .tab button.active {
    background: rgba(200, 169, 110, 0.18);
    border-left: none;
    color: var(--accent);
    font-weight: 700;
  }

  .reviews-body {
    padding: 28px 20px 56px;
  }

  .review-header {
    padding-left: 14px;
  }

  .review-title {
    font-size: 1.4rem;
  }

  /* Drop cap più piccolo su mobile */
  .reviews-wrapper .tabcontent > p:first-of-type::first-letter {
    font-size: 3rem;
    margin-top: 4px;
  }

  /* Nascondi meta sidebar su mobile */
  .nav-btn-meta {
    display: none;
  }
}

/* ============================================================
   ARTICOLI — elementi specifici
   ============================================================ */

/* Immagine documento (tab elenco articoli) */
.review-figure--doc {
  float: none;
  max-width: 640px;
  margin: 0 0 40px;
}

.review-figure--doc img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Lista cronologica rassegna stampa */
.article-refs {
  display: flex;
  flex-direction: column;
}

.article-ref-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.article-ref-item:last-child {
  border-bottom: none;
}

.article-ref-date {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.8;
  min-width: 90px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.article-ref-source {
  font-size: 0.92rem;
  color: rgba(240, 240, 240, 0.82);
  font-style: italic;
}

/* ============================================================
   DEDICHE — elementi specifici
   ============================================================ */

/* Firma autografa in calce al testo */
.review-signature-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.review-signature {
  display: block;
  max-height: 60px;
  width: auto;
  opacity: 0.82;
  filter: invert(1) brightness(0.75);
}

/* Griglia per due immagini affiancate */
.review-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Poesia — blocco centrato senza drop cap */
.poem-block {
  text-align: center;
}

.poem-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.poem-lines {
  font-family: var(--font-heading);
  font-style: italic;
  font-optical-sizing: auto;
  font-size: 1.05rem;
  line-height: 2.1;
  color: rgba(240, 240, 240, 0.88);
  display: inline-block;
  text-align: left;
}
