/*
Theme Name: Festa del Melone
Theme URI: https://www.facebook.com/festadelmeloneataglie
Author: Circolo Noi di Taglie
Author URI: https://www.facebook.com/noitaglie
Description: Tema ufficiale per la Festa del Melone a Taglie - 15ª Edizione 2026. Design estivo, vivace e colorato per la festa paesana di Borgo Veneto (PD).
Version: 2.9.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: festa-del-melone
Tags: one-page, custom-colors, custom-menu, featured-images, responsive-layout, events
*/

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

:root {
  --verde:       #1e7a1e;
  --verde2:      #28a428;
  --arancio:     #f57c00;
  --arancio2:    #ff9800;
  --giallo:      #fdd835;
  --crema:       #fffde7;
  --testo:       #1a1a1a;
  --bianco:      #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--testo);
  background: var(--crema);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.1; }

/* ================================================
   NAV
   ================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.98);
  border-bottom: 3px solid var(--verde2);
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img,
.nav-brand .custom-logo { height: 52px; width: auto; display: block; }
.custom-logo-link { display: flex; align-items: center; }

.nav-menu { display: flex; gap: 1.5rem; list-style: none; }
.nav-menu a { text-decoration: none; color: #555; font-size: .88rem; font-weight: 700; padding: .3rem .6rem; border-radius: 2rem; transition: all .2s; }
.nav-menu a:hover, .nav-menu .current-menu-item a { background: var(--verde); color: white; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--verde); margin: 5px 0; border-radius: 2px; transition: all .3s; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 2rem;
  font-weight: 800; font-size: .95rem; text-decoration: none;
  transition: all .25s; cursor: pointer; border: none;
  font-family: 'Nunito', sans-serif;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.btn-gold    { background: var(--giallo); color: #5d3a00; box-shadow: 0 4px 20px rgba(253,216,53,.5); }
.btn-outline { background: transparent; border: 2.5px solid white; color: white; }
.btn-verde   { background: var(--verde); color: white; box-shadow: 0 4px 20px rgba(30,122,30,.4); }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  /* Gradiente di default (senza foto) */
  background: linear-gradient(160deg, #0a5c0a 0%, #1e7a1e 35%, #d35400 80%, #e67e22 100%);
  /* Quando c'è una foto, lo stile inline sovrascrive con: gradiente + url() */
  background-color: #1e7a1e; /* fallback colore solido */
  background-size: cover;
  background-position: center center;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 2rem 6rem;
}
.hero-bg-circles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-circle { position: absolute; border-radius: 50%; opacity: .07; background: white; }
.hc1 { width: 500px; height: 500px; top: -150px; left: -150px; }
.hc2 { width: 400px; height: 400px; bottom: -100px; right: -100px; }
.hc3 { width: 200px; height: 200px; top: 40%; right: 10%; }
.hc4 { width: 150px; height: 150px; top: 20%; left: 15%; }

.hero-badge {
  background: var(--giallo); color: #5d3a00;
  font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1.4rem; border-radius: 2rem; margin-bottom: 1.5rem;
  display: inline-block; box-shadow: 0 4px 15px rgba(253,216,53,.5);
  animation: pop .6s ease both;
}
.hero-logo { margin-bottom: 1.5rem; animation: float 3s ease-in-out infinite; }
.hero-logo img { width: clamp(280px, 50vw, 520px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.4)); }
@keyframes float  { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-12px)} }
@keyframes pop    { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }
@keyframes slideUp{ from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: white; line-height: 1.0;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
  margin-bottom: .4rem;
  animation: slideUp .7s ease .1s both;
}
.hero h1 em { font-style: normal; color: var(--giallo); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.85); font-weight: 600;
  margin-bottom: 2rem;
  animation: slideUp .7s ease .2s both;
}
.countdown-wrap {
  display: flex; gap: 1rem; justify-content: center;
  margin-bottom: 2.5rem;
  animation: slideUp .7s ease .3s both;
}
.count-box {
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35);
  border-radius: 1rem; padding: .8rem 1.2rem; min-width: 70px;
  -webkit-backdrop-filter: blur(6px); text-align: center; color: white;
  backdrop-filter: blur(6px); text-align: center; color: white;
}
.count-num   { font-size: 2.2rem; font-weight: 900; line-height: 1; font-family: 'Playfair Display', serif; }
.count-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-top: .2rem; }
.hero-date-pill {
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.4);
  border-radius: 2rem; padding: .7rem 2rem; color: white;
  font-size: 1.1rem; font-weight: 800; margin-bottom: 2.5rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: slideUp .7s ease .35s both;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: slideUp .7s ease .4s both; }
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; overflow: hidden; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ================================================
   SECTIONS GENERAL
   ================================================ */
.site-section { padding: 5rem 2rem; position: relative; }
.container     { max-width: 1100px; margin: 0 auto; }

.sec-title { font-size: clamp(2rem,4vw,3rem); text-align: center; margin-bottom: .4rem; color: var(--verde); }
.sec-title span { color: var(--arancio); }
.sec-divider { width: 60px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--verde2), var(--arancio2)); margin: .6rem auto 1rem; }
.sec-sub { text-align: center; color: #666; font-size: 1rem; font-weight: 600; margin-bottom: 3rem; }

.wave-sep { position: relative; z-index: 1; line-height: 0; overflow: hidden; }
.wave-sep svg { display: block; width: 100%; }

/* ================================================
   PROGRAMMA
   ================================================ */
#programma { background: var(--crema); }
.programma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }

.ev-card { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.ev-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,.18); }

.ev-header { padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem; position: relative; overflow: hidden; }
.ev-header::after { content:''; position:absolute; top:-30px; right:-30px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.12); }
.ev-date-badge { background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.5); border-radius: .9rem; padding: .5rem .9rem; text-align: center; min-width: 56px; flex-shrink: 0; color: white; }
.ev-date-badge .gg  { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.ev-date-badge .num { font-size: 1.8rem; font-weight: 900; line-height: 1; font-family: 'Playfair Display', serif; }
.ev-date-badge .mm  { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.ev-tipo { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.8); margin-bottom: .2rem; }
.ev-header h3 { font-size: 1.2rem; font-weight: 900; color: white; line-height: 1.2; }
.ev-body { background: white; padding: 1rem 1.4rem; flex: 1; }
.ev-desc { font-size: .9rem; color: #555; line-height: 1.6; font-weight: 600; }

/* card con foto: header più alto e foto come sfondo */
.ev-card--has-img .ev-header {
    min-height: 160px;
    align-items: flex-end;
    background-size: cover !important;
    background-position: center !important;
}

.ev-mer { background: linear-gradient(135deg,#e65100,#f57c00); }
.ev-gio { background: linear-gradient(135deg,#1565c0,#1976d2); }
.ev-ven { background: linear-gradient(135deg,#880e4f,#c2185b); }
.ev-sab { background: linear-gradient(135deg,#4a148c,#7b1fa2); }
.ev-dom { background: linear-gradient(135deg,#b71c1c,#e53935); }
.ev-lun { background: linear-gradient(135deg,#006064,#00838f); }
.ev-mar { background: linear-gradient(135deg,#1b5e20,#2e7d32); }

/* ================================================
   AREA BIMBI
   ================================================ */
#bimbi { background: linear-gradient(135deg,#fff9c4 0%,#fff3e0 100%); }
.bimbi-card { max-width: 680px; margin: 0 auto; background: white; border-radius: 2rem; overflow: hidden; box-shadow: 0 10px 40px rgba(245,124,0,.2); border: 3px solid var(--arancio2); }
.bimbi-header { background: linear-gradient(135deg,var(--arancio),#e65100); padding: 2rem; text-align: center; color: white; }
.bimbi-header .bimbi-icon { font-size: 4rem; margin-bottom: .5rem; }
.bimbi-header h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: .3rem; }
.bimbi-header p { font-size: .95rem; opacity: .9; font-weight: 600; }
.bimbi-body { padding: 2rem; text-align: center; }
.bimbi-body p { font-size: 1rem; color: #555; font-weight: 600; line-height: 1.7; margin-bottom: 1.5rem; }
.prezzo-pill { display: inline-flex; align-items: center; gap: .8rem; background: linear-gradient(135deg,var(--arancio),var(--arancio2)); color: white; border-radius: 2rem; padding: 1rem 2rem; font-size: 1.15rem; font-weight: 900; box-shadow: 0 6px 20px rgba(245,124,0,.4); }
.prezzo-note { margin-top: 1rem; font-size: .85rem; color: #888; font-weight: 600; }

/* ================================================
   DOVE SIAMO
   ================================================ */
#dove { background: white; }
.dove-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.dove-info h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--verde); margin-bottom: 1.5rem; }
.dove-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.dove-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--verde),var(--verde2)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(30,122,30,.3); }
.dove-item p { font-size: .95rem; color: #444; line-height: 1.6; font-weight: 600; }
.dove-item strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--verde); margin-bottom: .2rem; font-weight: 800; }
.mappa-box { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.15); border: 4px solid var(--verde2); }
.mappa-box iframe { display: block; width: 100%; height: 370px; border: none; }

/* ================================================
   CHI SIAMO
   ================================================ */
#organizzatori { background: linear-gradient(135deg,#e8f5e9 0%,#f3e5f5 100%); }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 700px; margin: 0 auto; }
.org-card { background: white; border-radius: 1.5rem; padding: 2rem; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.08); border-top: 5px solid var(--verde2); transition: transform .25s; }
.org-card:hover { transform: translateY(-5px); }
.org-card:nth-child(2) { border-top-color: var(--arancio2); }
.org-icon { font-size: 3.5rem; margin-bottom: .8rem; }
.org-card h3 { font-size: 1.1rem; font-weight: 900; color: var(--verde); margin-bottom: .5rem; }
.org-card p { font-size: .88rem; color: #666; line-height: 1.6; font-weight: 600; }
.storia-box { background: white; border-radius: 1.5rem; padding: 2rem 2.5rem; max-width: 680px; margin: 2.5rem auto 0; box-shadow: 0 4px 20px rgba(0,0,0,.07); text-align: center; }
.storia-box p { font-size: 1.05rem; color: #555; line-height: 1.8; font-weight: 600; }

/* ================================================
   CONTATTI
   ================================================ */
#contatti { background: linear-gradient(160deg,#0a5c0a 0%,#1e7a1e 50%,#2e7d32 100%); color: white; }
#contatti .sec-title { color: white; }
#contatti .sec-sub { color: rgba(255,255,255,.75); }
.contatti-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
-webkit-backdrop-filter: blur(6px); }
.contatto-card { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); border-radius: 1.5rem; padding: 1.8rem 2rem; text-align: center; min-width: 200px; text-decoration: none; color: white; transition: all .25s; backdrop-filter: blur(6px); }
.contatto-card:hover { background: rgba(255,255,255,.22); transform: translateY(-4px); border-color: rgba(255,255,255,.5); }
.c-icon  { font-size: 2.2rem; margin-bottom: .6rem; }
.c-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: .3rem; font-weight: 700; }
.c-value { font-weight: 800; font-size: .95rem; word-break: break-all; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer { background: #0a2e0a; color: rgba(255,255,255,.6); text-align: center; padding: 2.5rem 2rem; font-size: .85rem; font-family: 'Nunito', sans-serif; }
.site-footer .f-logo { font-size: 2.5rem; margin-bottom: .5rem; }
.site-footer strong { color: rgba(255,255,255,.9); }

/* ================================================
   PRENOTAZIONE TAVOLO
   ================================================ */
.tavola-section {
    background: linear-gradient(135deg, #0a3d0a 0%, #1e7a1e 45%, #b35000 100%);
    position: relative; overflow: hidden;
}
.tavola-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.tavola-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
    position: relative; z-index: 1;
}
.tavola-left { color: white; }
.tavola-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.tavola-desc {
    font-size: 1rem; color: rgba(255,255,255,.8);
    line-height: 1.7; font-weight: 600; margin-bottom: 1.5rem;
}
.tavola-info {
    list-style: none; display: flex; flex-direction: column; gap: .6rem;
}
.tavola-info li {
    font-size: .95rem; color: rgba(255,255,255,.85);
    font-weight: 600; display: flex; align-items: center; gap: .5rem;
}

/* Form */
.tavola-right {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 2.2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.tavola-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    font-size: .82rem; font-weight: 800; color: var(--verde);
    text-transform: uppercase; letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: .75rem;
    padding: .7rem 1rem;
    font-size: .95rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--testo);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
    background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--verde2);
    box-shadow: 0 0 0 3px rgba(40,164,40,.15);
    background: white;
}
.form-group input.error,
.form-group select.error { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,.12); }
.form-group textarea { resize: vertical; min-height: 80px; }

.btn-tavola {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white; border: none; border-radius: 2rem;
    padding: 1rem 2rem; font-size: 1.05rem; font-weight: 900;
    font-family: 'Nunito', sans-serif;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    margin-top: .5rem;
}
.btn-tavola:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.btn-tavola span { font-size: 1.3rem; }

.tavola-disclaimer {
    font-size: .78rem; color: #888; text-align: center;
    font-weight: 600; margin-top: .3rem;
}

/* floating button */
.wa-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
    background: #25d366; color: white;
    border-radius: 2rem; padding: .85rem 1.5rem;
    font-weight: 800; font-size: .9rem;
    text-decoration: none; display: flex; align-items: center; gap: .5rem;
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    transition: transform .2s, box-shadow .2s;
    animation: bounceIn .6s ease 1s both;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,.6); }
.wa-float .wa-icon { font-size: 1.3rem; }
@keyframes bounceIn { from{opacity:0;transform:scale(.5) translateY(40px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* ================================================
   GALLERY SLIDER
   ================================================ */
#gallery { padding-bottom: 4rem; }
#gallery .sec-title { color: white; }
#gallery .sec-sub   { color: rgba(255,255,255,.6); }

.slider-outer {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}
.slider-track {
    display: flex;
    gap: 12px;
    padding: 0 2rem;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.slide-item {
    flex: 0 0 calc(33.333% - 8px);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    background: #2a2a2a;
    transition: transform .25s, box-shadow .25s;
}
.slide-item:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.slide-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.slide-item:hover img { transform: scale(1.05); }

/* overlay play su hover */
.slide-item::after {
    content: '🔍';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: rgba(0,0,0,.3);
    opacity: 0; transition: opacity .2s;
}
.slide-item:hover::after { opacity: 1; }

/* frecce */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    color: white; font-size: 1.8rem; line-height: 1;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--arancio); border-color: var(--arancio); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: .5rem; }
.slider-next { right: .5rem; }

/* dots */
.slider-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 1.5rem;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.3); border: none; cursor: pointer;
    transition: background .2s, transform .2s; padding: 0;
}
.slider-dot.active { background: var(--arancio); transform: scale(1.4); }

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.93);
    display: none; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox-img-wrap {
    max-width: 90vw; max-height: 88vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
    max-width: 90vw; max-height: 85vh;
    object-fit: contain; border-radius: .75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.lightbox-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    color: white; width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,0,0,.5); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25);
    color: white; width: 56px; height: 56px; border-radius: 50%;
    font-size: 2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lightbox-nav:hover { background: var(--arancio); border-color: var(--arancio); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 768px) {
    .slide-item { flex: 0 0 calc(80% - 6px); }
    .slider-track { padding: 0 1rem; }
}
@media (max-width: 480px) {
    .slide-item { flex: 0 0 calc(92% - 6px); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .dove-grid    { grid-template-columns: 1fr; }
  .org-grid     { grid-template-columns: 1fr; }
  .tavola-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .wa-float .wa-text { display: none; }
  .wa-float { border-radius: 50%; padding: 1rem; width: 56px; height: 56px; justify-content: center; }
}
@media (max-width: 768px) {
  .site-nav { padding: .6rem 1rem; justify-content: center; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 3px solid var(--verde2); padding: 1rem; gap: .5rem; }
  .nav-menu.is-open { display: flex; }
  .site-nav { justify-content: flex-end; }
  .nav-toggle { display: block; }
  .countdown-wrap { gap: .6rem; }
  .count-box  { min-width: 58px; padding: .6rem .8rem; }
  .count-num  { font-size: 1.8rem; }
  .programma-grid { grid-template-columns: 1fr; }
}

/* ================================================
   MOBILE HERO FIX
   ================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.2rem 4rem;
    min-height: 100svh;
  }
  .hero-logo img {
    width: clamp(220px, 80vw, 340px);
  }
  .hero-sub {
    font-size: .9rem;
    padding: 0 .5rem;
  }
  .hero-date-pill {
    font-size: .82rem;
    padding: .5rem 1.2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
.btn-green {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  border: none;
  font-weight: 800;
}
.btn-green:hover { opacity: .9; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════
   LIVE BANNER (sostituisce countdown)
═══════════════════════════════════════════════════════════════ */
.live-banner {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3rem;
  padding: .55rem 1.4rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
  margin: .5rem auto;
  max-width: 520px;
}
.live-dot {
  width: 10px; height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  animation: blink 1.1s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.live-label   { opacity: .8; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.live-artista { font-size: 1.1rem; font-weight: 800; }
.live-genere  { opacity: .75; font-size: .85rem; font-style: italic; }
.live-banner--presto, .live-banner--finita { justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   GALLERY + UPLOAD FOTO
═══════════════════════════════════════════════════════════════ */
.fdm-gallery-section {
  background: linear-gradient(155deg, #f0f8f0 0%, #fffaf0 55%, #fff3e8 100%);
  padding: 4rem 1.5rem;
}
.fdm-gallery-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.fdm-gallery-section .section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--verde);
  text-align: center;
  margin-bottom: .4rem;
}
.fdm-gallery-section .section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ── Upload box ── */
.fdm-upload-box {
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.fdm-form {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 2px solid rgba(102,187,106,.35);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Toast (messaggio PHP) */
.fdm-toast {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .9rem;
  font-weight: 700;
}
.fdm-toast--ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.fdm-toast--err { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* Drop zone */
.fdm-drop-zone {
  display: block;
  border: 2px dashed var(--arancio);
  border-radius: .9rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  position: relative;
  background: #fffdf5;
}
.fdm-drop-zone:hover,
.fdm-drop-zone--hover    { background: rgba(245,124,0,.07); border-color: #e65100; }
.fdm-drop-zone--selected { border-style: solid; border-color: var(--verde2); background: rgba(30,122,30,.04); }
.fdm-drop-zone input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.fdm-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.fdm-drop-icon  { font-size: 2.4rem; line-height: 1; }
.fdm-drop-title { font-size: 1rem; font-weight: 800; color: #333; }
.fdm-drop-sub   { font-size: .78rem; color: #888; }
.fdm-drop-sub em { font-style: normal; color: var(--arancio); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.fdm-drop-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: none;
}

/* Barra anteprima */
.fdm-preview-bar {
  display: none;
  align-items: center;
  gap: .7rem;
  background: #f5f5f5;
  border-radius: .6rem;
  padding: .5rem .9rem;
}
.fdm-preview-bar.fdm-visible { display: flex; }
.fdm-preview-name { font-size: .83rem; font-weight: 700; color: #333; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fdm-preview-size { font-size: .78rem; color: #999; flex-shrink: 0; }
.fdm-preview-x {
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: .9rem; padding: 3px 6px; border-radius: 4px;
  transition: color .15s; flex-shrink: 0;
}
.fdm-preview-x:hover { color: #c62828; }

/* Bottone upload */
.fdm-upload-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: .9rem;
  font-size: .98rem;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #e0e0e0;
  color: #aaa;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.fdm-upload-btn--ready {
  background: linear-gradient(135deg, #1e7a1e, #28a428);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30,122,30,.35);
}
.fdm-upload-btn--ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30,122,30,.45);
}
.fdm-upload-btn--loading {
  background: #28a428 !important;
  color: #fff !important;
  opacity: .75;
  cursor: not-allowed;
}

/* ── Gallery grid ── */
.fdm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.fdm-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  aspect-ratio: 4 / 3;
  background: #ddd;
  display: block;
}
.fdm-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}
.fdm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.fdm-gallery-item:hover img { transform: scale(1.05); }
.fdm-gallery-empty {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}
.fdm-gallery-empty-icon  { font-size: 3.5rem; display: block; margin-bottom: .75rem; }
.fdm-gallery-empty-title { font-size: 1.05rem; font-weight: 800; color: #555; margin-bottom: .35rem; }
.fdm-gallery-empty-body  { font-size: .88rem; color: #999; font-weight: 600; line-height: 1.7; }

/* ── Bottone like ── */
.fdm-like-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.60);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  z-index: 10;
  transition: background .2s, transform .15s;
}
.fdm-like-btn:hover:not(:disabled) {
  background: rgba(210, 40, 60, 0.85);
  transform: scale(1.07);
}
.fdm-like-btn:disabled { cursor: default; }
.fdm-like-btn.fdm-liked {
  background: rgba(210, 40, 60, 0.85);
  border-color: #ff8080;
}
.fdm-heart { font-size: .9rem; line-height: 1; }
.fdm-like-count { font-size: .8rem; font-weight: 700; min-width: 12px; }

@keyframes fdm-heartbeat {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.55); }
  65%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.fdm-like-anim .fdm-heart { animation: fdm-heartbeat .38s ease forwards; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .fdm-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fdm-gallery-section { padding: 3rem 1rem; }
  .fdm-upload-box { padding: 1rem; }
}
@media (max-width: 400px) {
  .fdm-gallery-grid { grid-template-columns: 1fr; }
}

/* ── GALLERY DELETE BUTTON (solo admin) ── */
.fdm-delete-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 20, 20, 0.78);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    z-index: 10;
    padding: 0;
    transition: background .2s, transform .15s;
}
.fdm-delete-btn:hover {
    background: rgba(210, 0, 0, 0.95);
    transform: scale(1.12);
}
.fdm-delete-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ── LIVE BANNER — serata annullata ── */
.live-banner--annullata {
    background: rgba(100, 60, 0, 0.70) !important;
    border-color: rgba(255, 180, 0, 0.55) !important;
}
.live-banner--annullata .live-dot {
    background: #ffd700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35) !important;
    animation: none !important;
}
.live-label--annullata {
    color: #ffd700 !important;
    font-weight: 800;
}

/* ════════════════════════════════════════════════════════════════
   PAGINA DI CHIUSURA EDIZIONE — GRAZIE
   ════════════════════════════════════════════════════════════════ */

/* Hero grazie: più bassa del normale hero */
.fdm-grazie-hero {
  min-height: 88vh;
  padding: 7rem 2rem 5rem;
}

/* Badge edizione */
.fdm-grazie-badge {
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 2rem;
  padding: .4rem 1.4rem;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
  display: inline-block;
  animation: pop .6s ease both;
}

/* Titolo Grazie */
.fdm-grazie-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4.5rem, 14vw, 9rem);
  color: #fff;
  line-height: 1;
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
  margin-bottom: .3rem;
  animation: slideUp .7s ease .1s both;
}

/* Sottotitolo */
.fdm-grazie-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.9);
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  animation: slideUp .7s ease .2s both;
}
.fdm-grazie-sub strong { color: #fdd835; }

/* Divisore decorativo */
.fdm-grazie-divider {
  font-size: 1.2rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .6rem;
  margin-bottom: 1.4rem;
  animation: slideUp .7s ease .25s both;
}

/* Ci vediamo il prossimo anno */
.fdm-grazie-cta {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2.2rem;
  animation: slideUp .7s ease .3s both;
}
.fdm-grazie-cta em { font-style: normal; color: #fdd835; }

/* Social buttons */
.fdm-grazie-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideUp .7s ease .4s both;
}
.fdm-social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.7rem;
  border-radius: 2rem;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  background: rgba(255,255,255,.9);
  color: #1e7a1e;
  transition: all .22s;
}
.fdm-social-btn:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}
.fdm-social-btn--outline {
  background: transparent;
  border: 2.5px solid rgba(255,255,255,.75);
  color: #fff;
}
.fdm-social-btn--outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Stelle decorative */
.fdm-stars { position: absolute; inset: 0; pointer-events: none; }
.fdm-star {
  position: absolute;
  color: rgba(255,255,255,.25);
  font-size: 1rem;
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 15%; left: 8%;  font-size: 1.4rem; animation-delay: 0s; }
.s2 { top: 25%; right: 10%; font-size: .8rem; animation-delay: .7s; }
.s3 { top: 65%; left: 12%;  font-size: .7rem; animation-delay: 1.2s; }
.s4 { top: 55%; right: 8%; font-size: 1.2rem; animation-delay: .4s; }
.s5 { top: 80%; left: 45%; font-size: .9rem;  animation-delay: 1.8s; }
@keyframes twinkle { 0%,100%{ opacity:.2; transform:scale(1); } 50%{ opacity:.7; transform:scale(1.3); } }

/* ── Sezione form informazioni ── */
.fdm-info-section {
  background: linear-gradient(155deg, #f0f8f0 0%, #fffaf0 55%, #fff3e8 100%);
}

.fdm-info-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.fdm-info-form {
  background: #fff;
  border-radius: 1.4rem;
  padding: 2rem 2rem;
  border: 2px solid rgba(102,187,106,.3);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 8px 32px rgba(30,122,30,.08);
}

.fdm-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fdm-info-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fdm-info-field label {
  font-size: .82rem;
  font-weight: 800;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fdm-opt { font-weight: 600; color: #aaa; text-transform: none; letter-spacing: 0; }

.fdm-info-field input,
.fdm-info-field textarea {
  border: 2px solid #e0e0e0;
  border-radius: .8rem;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: 'Nunito', sans-serif;
  color: #222;
  transition: border-color .2s;
  resize: vertical;
  background: #fafafa;
}
.fdm-info-field input:focus,
.fdm-info-field textarea:focus {
  outline: none;
  border-color: var(--verde2);
  background: #fff;
}
.fdm-info-field input.error,
.fdm-info-field textarea.error { border-color: #e53935; }

.fdm-info-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.fdm-info-submit { width: 100%; justify-content: center; font-size: 1rem; }
.fdm-info-mail {
  font-size: .82rem;
  color: #999;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.fdm-info-mail:hover { color: var(--verde); text-decoration: underline; }

@media (max-width: 540px) {
  .fdm-info-row { grid-template-columns: 1fr; }
  .fdm-info-form { padding: 1.3rem; }
}
