/* ============================================================
   STORIA E SAPORI 2026 — Main Stylesheet
   Colori: Bordeaux #5C1A2E · Crema #F5EDD8
   Font: Times New Roman (titoli), Georgia (corpo)
   ============================================================ */

:root {
  --bordeaux:     #5C1A2E;
  --bordeaux-dk:  #3D0E1C;
  --bordeaux-lt:  #7A2540;
  --crema:        #F5EDD8;
  --crema-dk:     #EAD9B8;
  --crema-lt:     #FAF5EC;
  --gold:         #C9A84C;
  --gold-lt:      #E8C87A;
  --text-dark:    #2A0A14;
  --text-mid:     #5C1A2E;
  --radius:       4px;
  --shadow:       0 4px 24px rgba(60,10,28,0.18);
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--crema-lt);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  letter-spacing: 0.04em;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: rgba(92,26,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo-img {
  height: 52px;
  width: auto;
  border-radius: 50%;
  /*border: 2px solid var(--gold);*/
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: 'Times New Roman', serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crema);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--crema);
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(92,26,46,0.3) 0%, transparent 60%),
    linear-gradient(160deg, var(--bordeaux-dk) 0%, var(--bordeaux) 45%, var(--bordeaux-dk) 100%);
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

/* Decorative texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 8px
    );
  pointer-events: none;
}

/* Ornamental corners */
.hero-ornament {
  position: absolute;
  width: 160px;
  height: 160px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-ornament.top-left {
  top: 100px; left: 20px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}

.hero-ornament.top-right {
  top: 100px; right: 20px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 250px;
  height: auto;
  border-radius: 12px;
  border: none;
  position: relative;
  /* Glow follow alpha contour using drop-shadow (works on PNG alpha) */
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.35));
  animation: glowPulse 4s ease-in-out infinite;
}

/* Rimuovi il box-shadow extra sul contenitore, ora usiamo drop-shadow animato */
@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(201,168,76,0.25));
  }
  50% {
    filter: drop-shadow(0 0 38px rgba(201,168,76,0.6));
  }
}

/*
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(201,168,76,0.2), var(--shadow); }
  50%       { box-shadow: 0 0 60px rgba(201,168,76,0.4), var(--shadow); }
}
*/

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--crema);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crema-dk);
  margin-bottom: 1.5rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
  width: 60%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
}

.hero-tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--crema-dk);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: 'Times New Roman', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bordeaux-dk);
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.4s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.4);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--crema-dk);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: var(--bordeaux-dk);
  padding: 4rem 2rem;
}

.video-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gold);
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.label-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border: 3px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(201,168,76,0.15);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.video-wrapper.visible {
  transform: translateY(0);
  opacity: 1;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  text-align: center;
  color: var(--crema-dk);
}

.play-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.video-hint {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* ============================================================
   INTRO CARDS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro-section {
  padding: 5rem 2rem;
  background: var(--crema-lt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--bordeaux);
}

.ornament-divider {
  margin-top: 0.8rem;
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--crema);
  border: 1px solid var(--crema-dk);
  border-top: 4px solid var(--bordeaux);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(92,26,46,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(92,26,46,0.05), transparent);
  transition: height var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(92,26,46,0.15);
  border-top-color: var(--gold);
}

.card:hover::before { height: 100%; }

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  color: var(--bordeaux);
  margin-bottom: 0.8rem;
}

.card p {
  color: #5a3a3a;
  line-height: 1.7;
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover { color: var(--bordeaux); }

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
  position: relative;
  padding: 5rem 2rem;
  background:
    linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dk) 100%);
  text-align: center;
  overflow: hidden;
}

.quote-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px,
    transparent 1px, transparent 10px
  );
}

.quote-banner blockquote {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.quote-banner blockquote p {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--crema);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.quote-banner blockquote::before {
  content: '"';
  display: block;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.quote-banner cite {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
}

/* ============================================================
   HIGHLIGHTS
   ============================================================ */
.highlights-section {
  padding: 5rem 2rem;
  background: var(--crema);
}

.highlights-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--crema-dk);
  transition: var(--transition);
}

.highlight-item:first-child {
  border-top: 1px solid var(--crema-dk);
}

.highlight-item:hover {
  background: var(--crema-lt);
  padding-left: 2rem;
}

.hi-date {
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--bordeaux);
  font-weight: bold;
  white-space: nowrap;
  min-width: 120px;
}

.hi-sep {
  color: var(--gold);
  font-size: 1.2rem;
}

.hi-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background: var(--bordeaux-dk);
  color: var(--crema-dk);
}

/* Sponsors bar */
.footer-sponsors-bar {
  background: rgba(0,0,0,0.25);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  overflow: hidden;
}

.sponsors-label {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.sponsors-track-wrap {
  overflow: hidden;
  width: 100%;
}

.sponsors-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scrollSponsors 20s linear infinite;
}

@keyframes scrollSponsors {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sponsors-track img {
  height: 50px;
  width: auto;
  object-fit: contain;
  /*filter: brightness(0) invert(1);
  opacity: 0.65;*/
  transition: opacity var(--transition);
}

.sponsors-track img:hover { opacity: 1; }

.sponsor-placeholder {
  height: 50px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(201,168,76,0.3);
  border-radius: 4px;
  color: rgba(201,168,76,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0 1rem;
  white-space: nowrap;
}

/* Footer main */
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  align-items: start;
}

.footer-logo {
  width: 100px;
  height: auto;
  border-radius: 8px;
  /*border: 2px solid var(--gold);*/
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(245,237,216,0.6);
  line-height: 1.6;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-col ul a {
  font-size: 0.85rem;
  color: var(--crema-dk);
  letter-spacing: 0.05em;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.footer-nav-col ul a:hover { opacity: 1; color: var(--gold); }

.footer-contacts-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-contacts-col p {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-contacts-col a {
  color: var(--crema-dk);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-contacts-col a:hover { opacity: 1; color: var(--gold-lt); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-btn {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  opacity: 0.7;
  transition: var(--transition);
}

.social-btn:hover { opacity: 1; background: rgba(201,168,76,0.1); }

.footer-bottom {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  font-size: 0.75rem;
  color: rgba(245,237,216,0.4);
  letter-spacing: 0.05em;
}

/* ============================================================
   PAGE HEADERS (inner pages)
   ============================================================ */
.page-header {
  padding: 8rem 2rem 6rem;
  background: linear-gradient(160deg, var(--bordeaux-dk) 0%, var(--bordeaux) 100%);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--crema-lt);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--crema);
  position: relative;
  z-index: 1;
}

.page-header .page-subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CONTENT SECTIONS (shared)
   ============================================================ */
.content-section {
  padding: 5rem 2rem;
  background: var(--crema-lt);
}

.content-section.alt-bg {
  background: var(--crema);
}

/* Pagina mappa: area mappa responsive full viewport */
.map-section {
  padding: 0;
  margin-top: 0;
  min-height: calc(100vh - 3.8rem); /* spazio per nav fisso, adattare se necessario */
}

.map-container {
  width: 100%;
  height: calc(100vh - 3.8rem);
  max-height: calc(100vh - 3.8rem);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.prose p + p {
  margin-top: 1.2rem;
}

/* ============================================================
   MENU PAGE
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-category {
  background: var(--crema);
  border: 1px solid var(--crema-dk);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(92,26,46,0.07);
}

.menu-category-header {
  background: var(--bordeaux);
  color: var(--crema);
  padding: 1rem 1.5rem;
  font-family: 'Times New Roman', serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-items {
  padding: 1rem 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px dashed var(--crema-dk);
  gap: 1rem;
}

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

.menu-item-name {
  font-size: 0.9rem;
  color: var(--text-dark);
  flex: 1;
}

.menu-item-desc {
  font-size: 0.78rem;
  color: #7a5a5a;
  font-style: italic;
  flex: 1;
  padding: 0 0.5rem;
}

.menu-item-price {
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  color: var(--bordeaux);
  white-space: nowrap;
}

/* ============================================================
   PROGRAMMA PAGE
   ============================================================ */
.program-day {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.program-day-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.day-badge {
  background: var(--bordeaux);
  color: var(--gold);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', serif;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.day-badge .day-num { font-size: 1.4rem; line-height: 1; }
.day-badge .day-month { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }

.day-title { font-size: 1.5rem; color: var(--bordeaux); }

.program-events {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program-event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--crema-dk);
  position: relative;
}

.program-event::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1.3rem;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bordeaux);
}

.event-time {
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  color: var(--bordeaux-lt);
  font-weight: bold;
  padding-top: 0.1rem;
}

.event-name {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.event-desc {
  font-size: 0.82rem;
  color: #7a5a5a;
  font-style: italic;
  margin-top: 0.2rem;
}

/* Band cards */
.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.band-card {
  background: var(--crema);
  border: 1px solid var(--crema-dk);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.band-card .band-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.band-card h3 { color: var(--bordeaux); margin-bottom: 0.5rem; }
.band-card p { font-size: 0.85rem; color: #7a5a5a; font-style: italic; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  padding: 0 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bordeaux-dk);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92,26,46,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom-icon {
  color: var(--crema);
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Gallery Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(30,5,14,0.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lightbox-btn {
  background: rgba(92,26,46,0.7);
  border: 1px solid var(--gold);
  color: var(--crema);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-btn:hover { background: var(--bordeaux); }

.lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.lightbox-download:hover {
  background: rgba(201,168,76,0.15);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--crema);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-counter {
  color: var(--crema-dk);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ============================================================
   DOVE CI TROVI / MAPPA
   ============================================================ */
.map-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.location-card {
  text-align: center;
  padding: 2rem;
  background: var(--crema);
  border-radius: var(--radius);
  border-top: 3px solid var(--bordeaux);
}

.location-card .loc-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.location-card h3 { color: var(--bordeaux); font-size: 1rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.location-card p { font-size: 0.9rem; color: #5a3a3a; line-height: 1.6; }

/* ============================================================
   CONTATTI PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  background: var(--crema-lt);
  border: 1px solid var(--crema-dk);
  border-radius: var(--radius);
  color: var(--text-dark);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--bordeaux);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--bordeaux);
  color: var(--crema);
  font-family: 'Times New Roman', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--bordeaux);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: transparent;
  color: var(--bordeaux);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ci-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ci-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 0.2rem;
}

.ci-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ============================================================
   STORIA PAGE
   ============================================================ */
.storia-timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.storia-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--bordeaux));
}

.timeline-entry {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.7rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bordeaux);
  box-shadow: 0 0 0 3px var(--crema-lt);
}

.timeline-year {
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--bordeaux);
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #5a3a3a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo-col { display: flex; flex-direction: column; align-items: center; }

  .footer-nav-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bordeaux-dk);
    border-top: 1px solid var(--gold);
    padding: 1rem 0;
  }

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

  .nav-links li a {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }

  .nav-toggle { display: flex; }

  .main-nav { position: relative; }

  .hero { min-height: auto; padding: 5rem 1.5rem 3rem; }
  .hero-logo { width: 130px; }

  .cards-grid { grid-template-columns: 1fr; }

  .highlight-item { flex-direction: column; gap: 0.3rem; }
  .hi-sep { display: none; }
  .hi-date { font-size: 0.8rem; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .program-event {
    grid-template-columns: 70px 1fr;
  }

  .storia-timeline { padding-left: 2rem; }
}

@media (max-width: 480px) {
  .hero-divider { width: 90%; }
  .hero-ornament { display: none; }
  .menu-item { flex-direction: column; gap: 0.2rem; }
  .menu-item-desc { padding: 0; }
}
