@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --dark: #1E2A33;
  --dark-2: #172029;
  --light: #F3F1E9;
  --text-on-dark: #F3F1E9;
  --text-muted-on-dark: #A3ADB2;
  --text-dark: #1E2A33;
  --text-muted: #6B6862;
  --accent: #C97A3D;
  --accent-dark: #A5602C;
  --line: #34424C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Work Sans', sans-serif; background: var(--light); color: var(--text-dark); }

h1, h2, h3, h4, nav, .wordmark, .btn-outline, .eyebrow { font-family: 'Poppins', sans-serif; }

a { color: inherit; }

.mockup-label {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.5rem 0;
  font-size: 0.75rem; letter-spacing: 0.04em; color: #8A867A;
}

.site { max-width: 1100px; margin: 0 auto 3rem; background: var(--light); overflow: hidden; }
.inner { padding: 0 2.5rem; }

.ph {
  background: repeating-linear-gradient(135deg, #DEDBD2, #DEDBD2 10px, #D3CFC3 10px, #D3CFC3 20px);
  display: flex; align-items: center; justify-content: center;
  color: #9B9788; font-size: 0.75rem; border-radius: 6px; text-align: center;
}
.ph.dark { background: repeating-linear-gradient(135deg, #2A2A2A, #2A2A2A 10px, #333 10px, #333 20px); color: #7A7770; }

/* Header + nav con dropdown */
header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem; padding: 2rem 2.5rem 1.25rem; max-width: 1100px; margin: 0 auto;
}
.wordmark { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; text-decoration: none; display: block; color: var(--text-dark); }
.wordmark span { display: block; font-family: 'Work Sans', sans-serif; font-weight: 400; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; padding-bottom: 0.3rem; }
nav a { color: var(--text-dark); text-decoration: none; }
nav a:hover { color: var(--accent); }
nav .has-dropdown { position: relative; }
nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 0.6rem;
  background: #fff; border: 1px solid #ddd8c8; min-width: 190px; padding: 0.4rem 0; z-index: 20;
}
nav .has-dropdown:hover .dropdown { display: block; }
nav .dropdown a { display: block; padding: 0.55rem 1rem; font-weight: 500; white-space: nowrap; }
nav .dropdown a:hover { background: var(--light); }
nav .current { color: var(--accent); }

/* Hero pagina interna */
.page-hero {
  position: relative; aspect-ratio: 21/6; border-radius: 6px; overflow: hidden;
  display: flex; align-items: flex-end; margin-top: 0.5rem;
}
.page-hero .ph { position: absolute; inset: 0; border-radius: 0; }
.page-hero-content { position: relative; z-index: 1; padding: 1.5rem 2rem; }
.page-hero h1 { color: #fff; font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin: 1rem 0 0.4rem; }
.breadcrumb a { text-decoration: none; }

.eyebrow { font-size: 0.85rem; color: var(--accent); font-weight: 700; line-height: 1.3; margin: 1.5rem 0 0.5rem; }
.intro { max-width: 720px; margin: 0.5rem 0 2rem; color: var(--text-muted); line-height: 1.75; }
.intro p { margin-bottom: 1rem; }

.btn-outline {
  display: inline-block; border: 1px solid var(--text-dark); color: var(--text-dark);
  padding: 0.7rem 1.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
}
.btn-outline:hover { background: var(--text-dark); color: #fff; }
.btn-outline.on-dark { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.btn-outline.on-dark:hover { background: var(--text-on-dark); color: var(--dark); }

section.pagina { padding: 0 0 3.5rem; }

/* Libri */
.libro-riga { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.libro-riga .ph { aspect-ratio: 2/3; }
.libro-riga h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.libro-riga .anno { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.libro-riga p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-top: 0.5rem; }

/* Testimonianze */
.testimonianza { display: flex; gap: 1.25rem; margin-bottom: 2.25rem; align-items: flex-start; }
.avatar-round { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.testimonianza h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.testimonianza .ruolo { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.testimonianza p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Galleria / videostory */
.galleria-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.galleria-grid .ph { aspect-ratio: 1/1; }
.galleria-grid .ph.video { position: relative; }
.play-badge {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.paginazione { display: flex; gap: 0.6rem; justify-content: center; margin-top: 2rem; font-size: 0.85rem; }
.paginazione span, .paginazione a { padding: 0.4rem 0.8rem; border: 1px solid #ccc7b8; color: var(--text-dark); text-decoration: none; }
.paginazione .attivo { background: var(--dark); color: #fff; border-color: var(--dark); }

/* Podcast */
.podcast-cta { display: inline-block; margin: 1rem 0 2rem; background: var(--dark); color: #fff; padding: 0.75rem 1.5rem; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.video-embed .ph { aspect-ratio: 16/9; }

/* News archivio */
.news-archivio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.news-archivio .ph { aspect-ratio: 4/3; margin-bottom: 0.9rem; }
.news-archivio h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.5rem; }
.news-archivio p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

/* Home: hero */
.hero { padding: 0.5rem 0 0; position: relative; }
.hero-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding-bottom: 2rem; }
.hero-top h1 { font-size: 2.1rem; line-height: 1.2; font-weight: 700; margin-bottom: 1.25rem; }
.hero-top p { color: var(--text-muted); line-height: 1.6; max-width: 480px; }
.hero-top .ph { aspect-ratio: 3/4; }
.arrows { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.arrows button { width: 40px; height: 40px; border: 1px solid var(--text-dark); background: none; font-size: 1rem; cursor: pointer; }
.hero-bottom { position: relative; }
.hero-bottom .ph { aspect-ratio: 21/8; }
.social-col { position: absolute; left: -2.5rem; bottom: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.social-col .circ { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; background: var(--light); }
.scrivimi { position: absolute; right: 2.5rem; bottom: -1rem; width: 220px; background: var(--dark); color: var(--text-on-dark); padding: 1.5rem; font-size: 0.85rem; line-height: 1.5; }
.scrivimi strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.2rem; margin-bottom: 0.6rem; }
.scrivimi .btn { display: inline-block; margin-top: 1rem; background: var(--accent); color: #fff; padding: 0.6rem 1.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; }

/* Sezione scura generica con testo verticale (home) */
.dark-section { background: var(--dark); color: var(--text-on-dark); padding: 4.5rem 0; margin-top: 3rem; }
.dark-grid { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 2.5rem; align-items: center; }
.vertical-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted-on-dark); white-space: nowrap; }
.dark-grid h2 { font-size: 1.9rem; line-height: 1.25; font-weight: 700; margin-bottom: 1.1rem; }
.dark-grid p { color: var(--text-muted-on-dark); line-height: 1.6; margin-bottom: 1.5rem; }
.dark-grid .ph { aspect-ratio: 4/3; }

/* News home preview */
.news-section { padding: 4.5rem 0; text-align: center; }
.news-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; text-align: left; }
.news-grid .ph { aspect-ratio: 4/3; margin-bottom: 1rem; }
.news-grid h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem; }
.news-grid p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Galleria mosaico (home) */
.gallery-section { padding: 1rem 0 4.5rem; text-align: center; }
.gallery-section h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 2.5rem; }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 90px; gap: 0.9rem; }
.mosaic .ph:nth-child(1) { grid-row: span 3; }
.mosaic .ph:nth-child(2) { grid-row: span 4; margin-top: 2rem; }
.mosaic .ph:nth-child(3) { grid-row: span 5; }
.mosaic .ph:nth-child(4) { grid-row: span 4; margin-top: 1rem; }
.mosaic .ph:nth-child(5) { grid-row: span 3; }

/* Striscia numeri credibilità */
.numeri-strip {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem;
  padding: 2.25rem 0; border-top: 1px solid #ddd8c8; border-bottom: 1px solid #ddd8c8; margin-top: 2.5rem;
}
.numero-item { text-align: center; min-width: 110px; }
.numero-item .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--accent); line-height: 1; }
.numero-item .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }

/* Voce e parole (podcast + video + news consolidati) */
.voce-section { padding: 4rem 0; }
.voce-section h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.sottotitolo { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 0.92rem; }
.voce-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.voce-card .tipo { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.6rem; }
.voce-card .ph { aspect-ratio: 4/3; margin-bottom: 0.8rem; }
.voce-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.voce-card a.link { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* Hero v2 (singola CTA) */
.hero-v2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: 1rem 0 2.5rem; }
.hero-v2 h1 { font-size: 2.3rem; line-height: 1.2; font-weight: 700; margin-bottom: 1.25rem; }
.hero-v2 p { color: var(--text-muted); line-height: 1.65; max-width: 460px; margin-bottom: 1.75rem; }
.hero-v2 .ph { aspect-ratio: 4/5; }
.btn-primario {
  display: inline-block; background: var(--dark); color: #fff; padding: 0.85rem 1.75rem;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.btn-primario:hover { background: var(--accent); }

/* Podcast in evidenza (home, sezione propria) */
.podcast-home { padding: 4rem 0; }
.podcast-home-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.podcast-home .eyebrow { margin-top: 0; }
.podcast-home h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
.podcast-home p { color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; max-width: 480px; }
.podcast-home .ph { aspect-ratio: 1/1; }

/* Carosello fullscreen sotto il menu */
.carosello-full { position: relative; width: 100%; aspect-ratio: 21/9; overflow: hidden; margin-top: 0.5rem; }
.carosello-full .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.carosello-full .slide.attivo { opacity: 1; }
.carosello-full .slide .ph { width: 100%; height: 100%; border-radius: 0; font-size: 0.85rem; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: none; cursor: pointer; font-size: 1.1rem; z-index: 5; color: var(--text-dark);
}
.car-arrow:hover { background: var(--accent); color: #fff; }
.car-arrow.left { left: 1.5rem; }
.car-arrow.right { right: 1.5rem; }
.car-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.car-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; display: block; }
.car-dots span.attivo { background: var(--accent); }
@media (max-width: 760px) { .carosello-full { aspect-ratio: 4/5; } }

.video-vero { aspect-ratio: 16/9; margin-bottom: 1.5rem; }
.video-vero iframe { width: 100%; height: 100%; border: 0; display: block; }

.foto-fluttuante { margin-bottom: 1rem; overflow: hidden; }
.foto-fluttuante .ph { aspect-ratio: 4/5; }
.foto-fluttuante.destra { float: right; width: 38%; max-width: 300px; margin-left: 2rem; }
.foto-fluttuante.sinistra { float: left; width: 38%; max-width: 300px; margin-right: 2rem; }
@media (max-width: 640px) {
  .foto-fluttuante.destra, .foto-fluttuante.sinistra { float: none; width: 100%; max-width: none; margin: 0 0 1.5rem; }
}

.home-video-riga { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.home-video-riga .ph { aspect-ratio: 16/9; position: relative; }
.home-foto-riga { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.home-foto-riga .ph { aspect-ratio: 1/1; }

.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  z-index: 1000; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox-overlay.aperto { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-chiudi {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; z-index: 1001;
}
.lightbox-item { cursor: zoom-in; }

.progetto-riga { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 640px) { .progetto-riga { grid-template-columns: 1fr; } }

/* Timeline (il viaggio) */
.timeline-section { background: var(--dark); color: var(--text-on-dark); padding: 3.5rem 0 4.5rem; }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; position: relative; }
.tl-item.reverse .tl-img { order: 2; }
.tl-item.reverse .tl-text { order: 1; text-align: right; }
.tl-item .ph { aspect-ratio: 4/3; }
.tl-date { position: absolute; left: 50%; top: -1.6rem; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 3px; white-space: nowrap; }
.tl-text h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.tl-text p { font-size: 0.9rem; color: var(--text-muted-on-dark); line-height: 1.6; }
.continua { text-align: center; padding-top: 1rem; font-size: 0.85rem; color: var(--text-muted-on-dark); font-style: italic; }

/* Contatti / footer condiviso */
.contatti-section { background: var(--dark-2); color: var(--text-on-dark); padding: 3rem 0 0; margin-top: 1rem; }
.contatti-top { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 2.5rem; padding: 0 2.5rem; max-width: 1100px; margin: 0 auto; }
.contatti-top h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; }
.contatti-top p { color: var(--text-muted-on-dark); line-height: 1.6; }
.contatti-top .ph { aspect-ratio: 4/3; }
footer { text-align: center; padding: 1.75rem 0; font-size: 0.8rem; color: var(--text-muted-on-dark); border-top: 1px solid #333; margin-top: 2.5rem; }

@media (max-width: 760px) {
  header, .inner, .contatti-top { padding-left: 1.25rem; padding-right: 1.25rem; }
  nav { flex-wrap: wrap; gap: 0.8rem; }
  .libro-riga, .hero-top, .dark-grid, .tl-item, .tl-item.reverse, .contatti-top { grid-template-columns: 1fr; }
  .tl-item.reverse .tl-text { text-align: left; }
  .dark-grid .vertical-label { display: none; }
  .galleria-grid, .news-archivio, .news-grid, .mosaic, .home-foto-riga { grid-template-columns: repeat(2, 1fr); }
  .social-col { position: static; flex-direction: row; margin: 1rem 0; }
  .scrivimi { position: static; width: auto; margin-top: 1rem; }
}

@media (max-width: 540px) {
  .galleria-grid, .news-archivio, .news-grid, .mosaic, .voce-grid, .articoli-riga, .video-riga {
    grid-template-columns: 1fr;
  }
  .home-video-riga { grid-template-columns: 1fr; }
  .hero-v2 h1 { font-size: 1.7rem; }
  .wordmark { font-size: 1.5rem; }
  nav { gap: 0.7rem; font-size: 0.75rem; }
}
