/* ============================================================
   STIANI DE STIANI — Stylesheet principale
   Palette: terra, grano, vino, pietra, foglia
   Font: Playfair Display (display) + Source Serif 4 (body)
   ============================================================ */

/* Font caricati via <link> nel <head> dell'HTML — @import rimosso per evitare doppio download bloccante */

/* ---- Variabili ---- */
:root {
  --bg:          #f7f2eb;
  --bg-warm:     #f0e8dc;
  --bg-dark:     #2a1a0e;
  --terra:       #5c2d0a;
  --terra-mid:   #7d3f15;
  --terra-light: #a65c28;
  --oro:         #c9912a;
  --oro-light:   #e8c26a;
  --grano:       #e9d8b0;
  --pietra:      #8a7060;
  --pietra-light:#c8b8a8;
  --foglia:      #4a6741;
  --vino:        #6b2136;
  --line:        rgba(92,45,10,0.14);
  --line-strong: rgba(92,45,10,0.28);
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(42,26,14,0.10);
  --shadow-hero: 0 8px 40px rgba(42,26,14,0.25);
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* evita il salto di layout quando la scrollbar appare/scompare */
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--terra);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- Utilità layout ---- */
.container     { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container--xs { max-width: 680px;  margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TOPBAR / HEADER
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247,242,235,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.topbar.scrolled { box-shadow: 0 2px 20px rgba(42,26,14,0.10); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand__logo { height: 52px; width: auto; }
.brand__text  { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name  {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.01em;
}
.brand__tagline {
  font-size: 0.78rem;
  color: var(--pietra);
  font-style: italic;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--terra-mid);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover  { background: var(--grano); color: var(--terra); }
.nav-links a.active { background: var(--terra); color: white; }

.nav-cta {
  background: var(--oro) !important;
  color: var(--terra) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--oro-light) !important; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(30,18,8,0.88) 0%, rgba(70,35,10,0.80) 55%, rgba(30,18,8,0.92) 100%),
    url('../img/hero-home.png') center 60% / cover no-repeat;
  background-color: var(--bg-dark);
}

/* Texture grana */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 0 52px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--oro);
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  color: white;
  margin-bottom: 20px;
  max-width: 680px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s ease forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--oro-light);
}

.hero__lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s ease forwards;
}

/* Decorazione laterale */
.hero__deco {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: min(480px, 40vw);
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.4s ease infinite 1.5s;
}
.hero__scroll svg { width: 20px; height: 20px; }

/* ============================================================
   PULSANTI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--oro);
  color: var(--terra);
  border-color: var(--oro);
}
.btn--primary:hover {
  background: var(--oro-light);
  border-color: var(--oro-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,145,42,0.35);
}
.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}
.btn--outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra-light);
}
.btn--outline:hover {
  background: var(--terra);
  color: white;
}
.btn--sm { padding: 10px 22px; font-size: 0.88rem; }

/* ============================================================
   SUBNAV (ancora)
   ============================================================ */
.subnav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 76px;
  z-index: 100;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  white-space: nowrap;
}
.subnav-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pietra);
  margin-right: 8px;
  flex-shrink: 0;
}
.subnav-inner a {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--terra-mid);
  background: var(--bg-warm);
  transition: all var(--transition);
}
.subnav-inner a:hover  { background: var(--grano); color: var(--terra); }
.subnav-inner a.active { background: var(--terra); color: white; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   SEZIONI GENERALI
   ============================================================ */
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--soft { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: white; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head--center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .section-kicker {
  justify-content: center;
}
.section-head--center .section-kicker::before { display: none; }
.section-head--center .section-kicker::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--terra);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: white; }

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   HERO ASSOCIAZIONE (sezione interna)
   ============================================================ */
.assoc-block {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
.assoc-block__text p { color: var(--terra-mid); font-size: 1.05rem; }
.assoc-block__neruda {
  font-family: 'Playfair Display', serif;
  font-size: 0.97rem;
  font-style: italic;
  color: var(--terra-mid);
  border-left: 2px solid var(--oro-light);
  padding: 16px 20px;
  margin: 0 0 24px;
  line-height: 1.7;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.assoc-block__neruda cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--oro);
  font-style: normal;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
}
.assoc-block__motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--oro);
  border-left: 3px solid var(--oro);
  padding-left: 20px;
  margin: 28px 0 20px;
  line-height: 1.4;
}
.assoc-block__visual {
  position: relative;
}
.assoc-block__img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  aspect-ratio: 1/1;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.assoc-block__img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

/* Logo placeholder */
.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grano) 0%, var(--bg-warm) 100%);
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--terra-light);
  opacity: 0.5;
}

/* Badge valori */
.badge-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.badge-trio__item {
  background: var(--grano);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}
.badge-trio__icon { font-size: 1.4rem; margin-bottom: 6px; }
.badge-trio__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; color: var(--terra); }

/* ============================================================
   CARD GRUPPI
   ============================================================ */
.gruppi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gruppo-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.gruppo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(42,26,14,0.16);
}

.gruppo-card__thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  position: relative;
  overflow: hidden;
}
.gruppo-card--storie .gruppo-card__thumb  { background: linear-gradient(135deg, #4a3018 0%, #7d3f15 100%); }
.gruppo-card--sapori .gruppo-card__thumb  { background: linear-gradient(135deg, #2d4a18 0%, #4a6741 100%); }
.gruppo-card--balli  .gruppo-card__thumb  { background: linear-gradient(135deg, #4a1828 0%, #6b2136 100%); }

.gruppo-card__thumb-deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.15;
}

.gruppo-card__icon {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.gruppo-card__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.gruppo-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pietra);
  margin-bottom: 10px;
}
.gruppo-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 14px;
  line-height: 1.2;
}
.gruppo-card__desc {
  font-size: 0.95rem;
  color: var(--terra-mid);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.gruppo-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  background: var(--bg-warm);
  color: var(--terra-mid);
  border: 1px solid var(--line);
}
.gruppo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terra);
  transition: gap var(--transition), color var(--transition);
}
.gruppo-card--storie .gruppo-card__link { color: var(--terra-light); }
.gruppo-card--sapori .gruppo-card__link { color: var(--foglia); }
.gruppo-card--balli  .gruppo-card__link { color: var(--vino); }
.gruppo-card__link:hover { gap: 10px; }
.gruppo-card__link svg { width: 16px; height: 16px; }

/* ============================================================
   ANTEPRIMA / FEATURE BAND
   ============================================================ */
.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}
.feature-band__item {
  background: white;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-band__item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--terra);
}
.feature-band__item span {
  font-size: 0.85rem;
  color: var(--pietra);
}

/* ============================================================
   PREVIEW GRID (anteprime contenuti)
   ============================================================ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.preview-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--oro);
  transition: transform var(--transition);
}
.preview-card:hover { transform: translateY(-4px); }
.preview-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  display: block;
  margin-bottom: 10px;
}
.preview-card h3 { font-size: 1.15rem; }
.preview-card p { font-size: 0.92rem; color: var(--terra-mid); margin-top: 8px; }

/* ============================================================
   SEZIONE VALORI / INFO STRIP
   ============================================================ */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-strip__item {
  background: var(--bg);
  padding: 36px 28px;
  text-align: center;
}
.info-strip__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--oro);
  line-height: 1;
  margin-bottom: 8px;
}
.info-strip__label { font-size: 0.88rem; color: var(--terra-mid); }

/* ============================================================
   SEZIONE GALLERIA PLACEHOLDER
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--grano);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pietra-light);
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  min-height: 280px;
  font-size: 3.5rem;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SEZIONE PARTECIPAZIONI
   ============================================================ */
.partecipazioni-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.partecipazione-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.partecipazione-item:hover { transform: translateX(4px); }
.partecipazione-item__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.partecipazione-item__date {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 6px;
}
.partecipazione-item h4 { margin-bottom: 6px; }
.partecipazione-item p { font-size: 0.9rem; color: var(--terra-mid); }

/* Sezione prossimi eventi (prima del Chi siamo) */
.section--eventi-top {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--crema);
  border-bottom: 1px solid rgba(139,90,43,0.1);
}
.section-head--inline {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head--inline .section-kicker {
  margin-bottom: 0;
  white-space: nowrap;
}
.section-head--inline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--terra-mid);
}
.partecipazioni-list--eventi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .partecipazioni-list--eventi {
    grid-template-columns: 1fr;
  }
  .section-head--inline {
    flex-direction: column;
    gap: 6px;
  }
}

/* Card evento con immagine */
.partecipazione-item--evento {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  flex-direction: row;
}
.partecipazione-item--evento:hover { transform: translateX(4px); }
.partecipazione-item__img-wrap {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  background: var(--crema);
  overflow: hidden;
}
.partecipazione-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.partecipazione-item__img-fallback {
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: 2.5rem;
  align-items: center;
  justify-content: center;
  background: var(--crema);
}
.partecipazione-item__body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.partecipazione-item__body h4 { margin-bottom: 4px; }
.partecipazione-item__body p { font-size: 0.9rem; color: var(--terra-mid); margin-bottom: 10px; }

/* Bottone piccolo */
.btn--sm {
  font-size: 0.82rem;
  padding: 7px 16px;
  gap: 6px;
  align-self: flex-start;
}

@media (max-width: 600px) {
  .partecipazione-item--evento { flex-direction: column; }
  .partecipazione-item__img-wrap { width: 100%; height: 160px; }
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-section {
  background: var(--terra);
  color: white;
  padding: 96px 0;
}
.contact-section h2 { color: white; }
.contact-section .section-kicker { color: var(--oro-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}
.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.contact-info-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item a { color: var(--oro-light); }
.contact-info-item a:hover { color: white; }

.contact-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 36px;
}
.contact-form-wrap h3 { color: white; margin-bottom: 24px; }
.form-row {
  display: flex;
  gap: 16px;
}
.form-group {
  flex: 1;
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--oro);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
  text-align: right;
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}
.form-success__icon { font-size: 2.5rem; }
.form-success h4 { color: white; font-size: 1.3rem; margin: 0; }
.form-success p { color: rgba(255,255,255,0.7); margin: 0; }

/* Layout grid hero home: testo sx + panel slogan dx */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: end;
}
.hero__panel {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  opacity: 0;
  animation: fadeUp 0.8s 0.75s ease forwards;
}
.hero__panel-icon { font-size: 2rem; margin-bottom: 12px; }
.hero__panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}
.hero__panel p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}
.hero__panel-motto {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--oro-light);
  letter-spacing: 0.02em;
}

/* ============================================================
   HERO PAGINE GRUPPO
   ============================================================ */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: 48px;
  padding-bottom: 52px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero--storie .page-hero__bg {
  /* stalla con canfin — toni caldi e scuri, overlay leggero */
  background:
    linear-gradient(160deg, rgba(30,16,6,0.78) 0%, rgba(80,40,10,0.60) 55%, rgba(30,16,6,0.82) 100%),
    url('../img/hero-storie.png') center 40% / cover no-repeat;
  background-color: #4a3018;
}
.page-hero--sapori .page-hero__bg {
  /* tagliere con polenta e pane — toni medi, overlay medio */
  background:
    linear-gradient(160deg, rgba(16,30,10,0.82) 0%, rgba(50,80,40,0.65) 55%, rgba(16,30,10,0.86) 100%),
    url('../img/hero-sapori.png') center 50% / cover no-repeat;
  background-color: #2d4a18;
}
.page-hero--balli .page-hero__bg {
  /* ballo in piazza — toni chiari, overlay più denso */
  background:
    linear-gradient(160deg, rgba(30,8,14,0.82) 0%, rgba(90,25,40,0.68) 55%, rgba(30,8,14,0.88) 100%),
    url('../img/hero-balli.png') center 45% / cover no-repeat;
  background-color: #4a1828;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
  white-space: nowrap;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 28px;
  max-width: 560px;
}
.highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.highlight-strip span,
.highlight-strip a {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.highlight-strip a:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  color: white;
  cursor: pointer;
}
.hero-panel {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.hero-panel h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}
.hero-panel p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ============================================================
   CARD IDENTITÀ / TESTO
   ============================================================ */
.card {
  border-radius: var(--radius-md);
  padding: 36px 40px;
}
.card--text {
  background: white;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--oro);
}
.card--text p { color: var(--terra-mid); font-size: 1.02rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 12px;
}
.footer-brand__tagline {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--oro-light);
}
.footer-brand__desc { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--oro-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--oro-light); }

/* ============================================================
   DECORAZIONI / ORNAMENTI
   ============================================================ */
.ornament {
  text-align: center;
  color: var(--oro);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  margin: 48px auto;
  opacity: 0.5;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--oro);
  margin: 24px 0;
}
.divider--center { margin: 24px auto; }

/* ============================================================
   ANIMAZIONI
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Reveal on scroll — nascosto solo se JS è attivo */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.js-ready .reveal-delay-1 { transition-delay: 0.1s; }
.js-ready .reveal-delay-2 { transition-delay: 0.2s; }
.js-ready .reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gruppi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .assoc-block { grid-template-columns: 1fr; gap: 48px; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:first-child { grid-column: 1 / 2; grid-row: auto; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-hero h1 { white-space: normal; }
}

/* ---- Tablet portrait (fino a 900px) + mobile ---- */
/* Breakpoint esteso a 900px per coprire iPad in portrait (768–834px),
   iPad mini (768px), iPad Air (820px): tutti ricevono il menu hamburger */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: white; padding: 20px 24px; box-shadow: 0 8px 32px rgba(42,26,14,0.12); border-top: 1px solid var(--line); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .topbar { position: relative; }
  .subnav { top: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero__inner { padding: 36px 0 48px; }
  .page-hero h1 { white-space: normal; font-size: 1.7rem; }

  .gruppi-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .partecipazioni-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .badge-trio { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { flex-direction: column; gap: 0; }
  .hero__title { font-size: 2.4rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .badge-trio { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .hero { min-height: 75vh; }
}

/* ============================================================
   GALLERIA PER EVENTI
   ============================================================ */
.gallery-event {
  margin-bottom: 56px;
}
.gallery-event:last-child { margin-bottom: 0; }

.gallery-event__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gallery-event__date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro);
  font-family: 'Source Serif 4', serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-event__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--terra);
  margin: 0;
}

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

.gallery-fig {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--grano);
}
.gallery-fig--wide {
  grid-column: span 1;
}
.gallery-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-fig:hover img { transform: scale(1.06); }

.gallery-fig::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(42,26,14,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-fig:hover::after,
.gallery-fig:focus::after { opacity: 1; }
.gallery-fig:focus { outline: 2px solid var(--oro); outline-offset: 2px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,6,3,0.93);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
  max-width: 600px;
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  z-index: 1001;
}
.lightbox__close:hover { color: white; }

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: white;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1001;
  line-height: 1;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.25); }

/* Responsive galleria */
@media (max-width: 1024px) {
  .gallery-event__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-event__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-event__header { flex-direction: column; gap: 4px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
@media (max-width: 480px) {
  .gallery-event__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CONVIVI NARRANTI — Catalogo card
   ============================================================ */
.convivi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 8px;
}

.convivio-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.convivio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42,26,14,0.16);
}

.convivio-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--grano);
}
.convivio-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.convivio-card:hover .convivio-card__img-wrap img { transform: scale(1.04); }

.convivio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(42,26,14,0.7) 0%, transparent 100%);
}
.convivio-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro-light);
}

.convivio-card__body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.convivio-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 6px;
}
.convivio-card__subtitle {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--oro);
  margin-bottom: 18px;
  line-height: 1.4;
}
.convivio-card__desc {
  font-size: 0.98rem;
  color: var(--terra-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}
.btn--convivio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terra);
  border-bottom: 1px solid var(--oro);
  padding-bottom: 4px;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition);
}
.btn--convivio:hover { color: var(--oro); border-color: var(--oro-light); }

/* Hero convivi (pagina catalogo) */
.page-hero--convivi .page-hero__bg {
  background:
    linear-gradient(160deg, rgba(30,18,8,0.82) 0%, rgba(70,40,10,0.68) 55%, rgba(30,18,8,0.88) 100%),
    url('../img/convivi/anguana-de-pria_1.png') center 50% / cover no-repeat;
  background-color: #3a2010;
}

/* Hero scheda Anguana */
.page-hero--anguana .page-hero__bg {
  background:
    linear-gradient(160deg, rgba(20,12,4,0.80) 0%, rgba(60,35,8,0.65) 55%, rgba(20,12,4,0.86) 100%),
    url('../img/convivi/anguana-de-pria-2.png') center 40% / cover no-repeat;
  background-color: #3a2810;
}

/* Hero scheda Torototela */
.page-hero--torototela .page-hero__bg {
  background:
    linear-gradient(160deg, rgba(30,8,14,0.82) 0%, rgba(80,20,35,0.68) 55%, rgba(30,8,14,0.88) 100%),
    url('../img/convivi/torototel-1.png') center 40% / cover no-repeat;
  background-color: #3a1020;
}

/* Galleria nelle schede */
.scheda-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.scheda-fig {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--grano);
}
.scheda-fig img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.scheda-fig:hover img { transform: scale(1.03); }
.scheda-fig figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--pietra);
  border-top: 1px solid var(--line);
}

/* Responsive convivi */
@media (max-width: 768px) {
  .convivi-grid { grid-template-columns: 1fr; gap: 28px; }
  .scheda-gallery { grid-template-columns: 1fr; }
  .convivio-card__body { padding: 20px 24px 24px; }
}

/* ============================================================
   WORDPRESS READY
   ============================================================ */
.wp-block-custom { }
.entry-content p  { margin-bottom: 1.1em; }
.aligncenter { display: block; margin: 0 auto; }

