/*
 * Villa Pojana — stile della home page
 * ------------------------------------------------------------------
 * Stili specifici di front-page.php (caricati solo in home): hero a
 * schermo intero con video e serliana, griglia "Visita" e griglia
 * eventi "Calendario".
 *
 * Variabili, reset, header/topbar, navigazione, .section base,
 * pair-block, fascia di stato (.status-*), sezioni editoriali
 * (.editorial*) e newsletter/footer sono in main.css: la fascia di
 * stato è condivisa con la pagina "Visita" (vp/status-strip).
 *
 * .section e .section-title qui sotto SOVRASCRIVONO i valori comuni
 * di main.css: nelle pagine interne .section ha padding 100px e
 * .section-title max-width 680px; in home sono 120px e 760px, con un
 * clamp leggermente più ampio.
 */

/* HERO — schermo intero, video + serliana */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  margin: 0;
  padding: 0;
  max-width: none;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  min-height: 100dvh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(24,22,19,0.55) 0%, rgba(24,22,19,0.28) 28%, rgba(24,22,19,0.32) 65%, rgba(24,22,19,0.85) 100%),
    radial-gradient(ellipse at center, transparent 25%, rgba(24,22,19,0.45) 95%);
  pointer-events: none;
}
.hero-serliana {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(880px, 94vw);
  pointer-events: none;
  opacity: 0;
  animation: fade-in-arch 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
}
.hero-serliana svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(0,0,0,0.25));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 100px;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9.5vw, 142px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  opacity: 0;
  animation: fade-up 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s forwards;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta-soft);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: rgba(250, 246, 236, 0.88);
  max-width: 540px;
  margin-top: 38px;
  font-weight: 400;
  font-variation-settings: 'opsz' 24, 'SOFT' 50;
  opacity: 0;
  animation: fade-up 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s forwards;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s forwards;
}
.hero-actions .cta-primary {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 26px;
  font-size: 13px;
}
.hero-actions .cta-primary:hover {
  background: var(--terracotta);
  color: var(--paper);
}
.hero-actions .btn-secondary {
  border: 1.5px solid rgba(250, 246, 236, 0.55);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 26px;
}
.hero-actions .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-meta-bottom {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 48px;
  display: flex;
  justify-content: center;
  align-items: end;
  pointer-events: none;
  color: rgba(250, 246, 236, 0.65);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.7s forwards;
}
.hero-meta-bottom > * { pointer-events: auto; }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(250, 246, 236, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -38px;
  left: 0;
  width: 1px;
  height: 38px;
  background: var(--terracotta-soft);
  animation: scroll-down 2.4s cubic-bezier(0.6, 0, 0.4, 1) 2s infinite;
}

.hero-credits {
  text-align: right;
  line-height: 1.7;
}
.hero-credits-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(250, 246, 236, 0.5);
}
.hero-credits-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: rgba(250, 246, 236, 0.85);
  letter-spacing: 0;
  text-transform: none;
  font-variation-settings: 'opsz' 14, 'SOFT' 100;
}

@keyframes fade-in-arch {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-down {
  0% { top: -38px; }
  60%, 100% { top: 38px; }
}

/* SEZIONE BASE — sovrascrive i valori comuni di main.css per la home */
.section {
  padding: 120px 48px;
}
.section-title {
  font-size: clamp(40px, 4.5vw, 64px);
  max-width: 760px;
}
/* GRIGLIA "VISITA" */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plan-card {
  background: var(--paper);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background 0.3s;
  position: relative;
  cursor: pointer;
}
.plan-card:hover {
  background: var(--bone-soft);
}
.plan-card:hover .plan-arrow {
  transform: translate(4px, -4px);
}
.plan-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--stone);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 100;
}
.plan-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: auto;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.plan-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.plan-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 18px;
  transition: transform 0.3s;
}

/* GRIGLIA "CALENDARIO" — variante home (titolo 26px). Il resto
   (.events-grid, .event-card, .event-image, .event-content,
   .event-date-row, .event-date, .event-tag, .event-meta, .event-price)
   è condiviso con la pagina "Calendario" (vp/eventi-grid) ed è in
   main.css. */
.event-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}

/* RESPONSIVE — solo regole specifiche della home */
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta-bottom { padding: 0 32px; }
  .hero-content { padding: 130px 24px 90px; }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 120px 20px 110px; }
  .hero-serliana { width: 110vw; opacity: 0.55; }
  .hero-meta-bottom { padding: 0 20px; bottom: 24px; font-size: 10px; }
  .hero-credits-value { display: none; }
}
