:root{
  --giallo:#f0c233;
  --giallo-soft:#ffe089;
  --verde-scuro:#1f6034;
  --verde:#2f7a45;
  --verde-chiaro:#7ecb72;
  --bordeaux:#7f1727;
  --crema:#fff7df;
  --grigio-scuro:#343a40;
  --bg-page:#faf5ec;

  --nav-offset: 110px;
  --nav-offset-mobile: 98px;
}

*{ box-sizing:border-box; }

html, body{
  width:100%;
  overflow-x:hidden;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1.08rem;
  line-height:1.65;

  background:
    radial-gradient(170% 160% at 0% 0%,
      #f7cf35 0%,
      #f0c233 28%,
      #ffd85a 52%,
      #ffe793 70%,
      #fff4cf 88%,
      #fff9e6 100%),
    radial-gradient(180% 160% at 100% 100%,
      #1f6034 0%,
      #2f7a45 25%,
      #3f9153 45%,
      #5fb86e 65%,
      #c3f0c6 85%,
      transparent 100%),
    #fff5dd;

  color:#222;
  position:relative;
  min-height:100vh;
  padding-top:0 !important;
}

/* overlay background */
body::before{
  content:"";
  position:fixed;
  inset:-5%;
  z-index:-3;
  pointer-events:none;
  background:
    radial-gradient(85% 140% at -10% 40%,
      rgba(255,255,255,0.10) 0,
      transparent 70%),
    radial-gradient(90% 150% at 110% 60%,
      rgba(0,0,0,0.14) 0,
      transparent 78%);
  mix-blend-mode:soft-light;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background:
    radial-gradient(260px 260px at 15% 26%,
      rgba(247,207,53,0.80) 0,
      transparent 68%),
    radial-gradient(320px 320px at 85% 18%,
      rgba(47,122,69,0.70) 0,
      transparent 72%),
    radial-gradient(300px 300px at 88% 82%,
      rgba(31,96,52,0.78) 0,
      transparent 75%),
    radial-gradient(260px 260px at 24% 84%,
      rgba(127,23,39,0.60) 0,
      transparent 78%),
    radial-gradient(220px 220px at 50% 48%,
      rgba(255,255,255,0.32) 0,
      transparent 70%);
}

a{ text-decoration:none; }

img, svg, video, iframe{
  max-width:100%;
  height:auto;
}

/* ===== Bolle di sfondo ===== */
.bg-bubble{
  position:fixed;
  border-radius:50%;
  opacity:.18;
  z-index:-1;
  pointer-events:none;
  mix-blend-mode:multiply;
  filter:blur(1.5px);
  animation:floatBubble 22s ease-in-out infinite alternate;
}
.bg-bubble.b1{ width:190px; height:190px; background:var(--giallo); top:18%; left:6%; }
.bg-bubble.b2{ width:230px; height:230px; background:var(--verde-chiaro); bottom:10%; right:8%; animation-delay:-7s; }
.bg-bubble.b3{ width:150px; height:150px; background:var(--bordeaux); top:55%; right:20%; animation-delay:-12s; }
.bg-bubble.b4{ width:140px; height:140px; background:rgba(255,255,255,.9); top:35%; left:40%; animation-delay:-4s; }
.bg-bubble.b5{ width:180px; height:180px; background:rgba(240,194,51,.9); bottom:25%; left:18%; animation-delay:-10s; }
.bg-bubble.b6{ width:130px; height:130px; background:rgba(31,96,52,.9); top:22%; right:35%; animation-delay:-16s; }

@keyframes floatBubble{
  0%{ transform:translate3d(0,0,0) scale(1); }
  50%{ transform:translate3d(12px,-18px,0) scale(1.05); }
  100%{ transform:translate3d(-14px,14px,0) scale(.98); }
}

/* =========================================================
   NAVBAR
   Richiede HTML con:
   <div class="nav-holder">
     <nav class="navbar navbar-expand-lg">...</nav>
   </div>
   ========================================================= */
.nav-holder{
  position:sticky;
  top:0;
  z-index:9999;
  padding-top:.45rem;
  padding-bottom:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

.navbar{
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  border:none !important;
  width:100% !important;
  max-width:none !important;
  min-height:auto !important;
}

.navbar::before,
.navbar::after{
  content:none !important;
  display:none !important;
}

.navbar .container,
.navbar .container-fluid{
  width:min(1150px, calc(100% - 1.5rem)) !important;
  max-width:1150px !important;
  margin:0 auto !important;
  padding:.9rem 1.55rem !important;

  background:var(--crema) !important;
  border:none !important;
  box-shadow:0 10px 26px rgba(0,0,0,0.08) !important;

  border-top-left-radius:999px !important;
  border-top-right-radius:999px !important;
  border-bottom-left-radius:999px !important;
  border-bottom-right-radius:999px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:1rem !important;
  flex-wrap:nowrap !important;
}

.navbar,
.navbar *{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.navbar-brand{
  display:flex !important;
  align-items:center !important;
  gap:.85rem !important;
  margin:0 !important;
  min-width:0 !important;
  flex:0 1 auto !important;
}

.navbar-brand img{
  flex:0 0 auto;
}

.navbar-brand span{
  font-weight:700;
  letter-spacing:.04em;
  color:var(--verde-scuro);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.1;
}

.navbar-collapse{
  flex-grow:0 !important;
}

.navbar-nav{
  align-items:center;
}

.nav-link{
  font-weight:500;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size:.85rem;
  color:var(--grigio-scuro);
  position:relative;
  padding:.2rem 0 !important;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-.45rem;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--verde-scuro),var(--giallo));
  opacity:0;
  transform:scaleX(.3);
  transform-origin:center;
  transition:opacity .2s ease, transform .2s ease;
}

.nav-link.active,
.nav-link:hover{
  color:var(--bordeaux) !important;
}

.nav-link.active::after,
.nav-link:hover::after{
  opacity:1;
  transform:scaleX(1);
}

.navbar-toggler{
  border:none !important;
  box-shadow:none !important;
  padding:.3rem .45rem !important;
  margin:0 !important;
}

.navbar-toggler:focus{
  box-shadow:none !important;
}

.navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31,96,52,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* offset anchor */
section[id],
header[id]{
  scroll-margin-top:var(--nav-offset);
}

/* =========================================================
   HERO
   ========================================================= */
#hero{
  margin-top:-1px;
}

#hero{
  position:relative;
  overflow:hidden;
  min-height:90vh;
  display:flex;
  align-items:center;

  padding-top:5.2rem;
  padding-bottom:4rem;

  border-bottom-left-radius:3rem;
  border-bottom-right-radius:3rem;
  background:#fff3cf;
}

#hero::before{
  content:"";
  position:absolute;
  inset:-6%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(115% 140% at 0% 5%,
      rgba(240,194,51,0.95) 0,
      rgba(240,194,51,0.95) 42%,
      transparent 43%),
    radial-gradient(140% 165% at 18% 70%,
      transparent 50%,
      var(--verde-scuro) 51%,
      var(--verde-scuro) 64%,
      transparent 65%),
    radial-gradient(150% 170% at 22% 74%,
      transparent 58%,
      var(--verde) 59%,
      var(--verde) 73%,
      transparent 74%),
    radial-gradient(150% 170% at 100% 55%,
      transparent 55%,
      var(--verde-chiaro) 56%,
      var(--verde-chiaro) 72%,
      transparent 73%),
    radial-gradient(160% 180% at 92% 85%,
      transparent 60%,
      rgba(47,122,69,0.95) 61%,
      rgba(47,122,69,0.95) 74%,
      transparent 75%);
  opacity:.95;
}

#hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(520px 420px at 18% 45%,
      rgba(255,231,147,0.55) 0,
      transparent 70%),
    radial-gradient(620px 460px at 78% 60%,
      rgba(31,96,52,0.22) 0,
      transparent 72%),
    radial-gradient(320px 280px at 35% 85%,
      rgba(127,23,39,0.14) 0,
      transparent 70%),
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.015) 0px,
      rgba(0,0,0,0.015) 1px,
      transparent 2px,
      transparent 6px
    );
  mix-blend-mode:multiply;
  opacity:.9;
}

.hero-inner{ position:relative; z-index:1; }

.hero-title{
  font-family:"Fraunces",serif;
  font-weight:700;
  font-size:clamp(2.8rem,4.2vw,3.6rem);
  line-height:1.05;
  color:var(--verde-scuro);
  letter-spacing:.01em;
}

.hero-subtitle{
  font-size:1.3rem;
  margin-top:1rem;
  color:#333;
  max-width:30rem;
}

.hero-badges span{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.25rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,0.95);
  font-size:1rem;
  font-weight:500;
  color:var(--verde-scuro);
  margin-right:.5rem;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.btn-hero-primary{
  background:var(--bordeaux);
  border-color:var(--bordeaux);
  color:#fff;
  font-weight:600;
  border-radius:999px;
  padding-inline:1.5rem;
}
.btn-hero-primary:hover{
  background:#5e0f1c;
  border-color:#5e0f1c;
}

.btn-hero-outline{
  border-radius:999px;
  padding-inline:1.4rem;
  font-weight:500;
  border-width:2px;
  border-color:var(--verde-scuro);
  color:var(--verde-scuro);
  background:rgba(255,255,255,0.9);
}
.btn-hero-outline:hover{
  background:var(--verde-scuro);
  color:#fff;
}

.hero-photo-wrapper{
  position:relative;
  max-width:600px;
  margin-inline:auto;
}

@media (min-width:992px){
  .hero-photo-wrapper{ max-width:640px; }
}

.hero-photo{
  position:relative;
  border-radius:3.2rem;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,0.25);
  border:6px solid rgba(255,255,255,0.95);
  animation:floatHero 9s ease-in-out infinite alternate;
}

.hero-photo::before{
  content:"";
  position:absolute;
  inset:-20%;
  border-radius:45%;
  border:2px dashed rgba(255,255,255,0.35);
  animation:heroDashed 22s linear infinite;
}

.hero-photo img{
  width:100%;
  display:block;
  object-fit:cover;
}

.hero-star{
  position:absolute;
  bottom:-18px;
  right:12px;
  width:120px;
  height:120px;
  border-radius:999px;
  background:#f7e0b9;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  animation:spinStar 8s ease-in-out infinite;
}

.hero-star img{
  width:100px;
  height:100px;
  object-fit:contain;
  display:block;
}

.hero-tag{
  position:absolute;
  top:16px;
  left:16px;
  padding:.35rem .75rem;
  font-size:.8rem;
  font-weight:600;
  text-transform:uppercase;
  border-radius:999px;
  background:rgba(255,255,255,0.95);
  color:var(--verde-scuro);
  box-shadow:0 4px 16px rgba(0,0,0,0.15);
}

@keyframes floatHero{
  0%{ transform:translateY(0); }
  100%{ transform:translateY(-12px); }
}
@keyframes spinStar{
  0%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-4px) rotate(8deg); }
  100%{ transform:translateY(0) rotate(0deg); }
}
@keyframes heroDashed{
  from{ transform:rotate(0); }
  to{ transform:rotate(360deg); }
}

/* ===== Sezioni generiche ===== */
section{
  padding:5rem 0;
  position:relative;
}
section .container{
  position:relative;
  z-index:1;
}

.section-soft-bg{
  position:relative;
  z-index:0;
}
.section-soft-bg .container{
  position:relative;
  z-index:1;
  background:transparent;
  box-shadow:none;
}
.section-soft-bg::before{
  content:"";
  position:absolute;
  inset:2%;
  border-radius:2.6rem;
  pointer-events:none;
  z-index:0;
  background:rgba(0,0,0,0.05);
  box-shadow:
    inset 0 0 25px rgba(0,0,0,0.15),
    0 0 12px rgba(0,0,0,0.35);
  filter:blur(4px);
}

.section-title{
  font-family:"DM Serif Display",serif;
  font-weight:400;
  font-size:2.4rem;
  color:#000;
  letter-spacing:.015em;
}
.section-subtitle{
  max-width:32rem;
  color:#222;
}

.badge-pill{
  border-radius:999px;
  font-size:1.3rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  background:rgba(127,23,39,0.10);
  color:var(--bordeaux);
  padding:.5rem 1.1rem;
  font-weight:600;
}

.btn-proponi-evento{
  font-size:1.5rem;
  padding:.6rem 1.4rem;
  border-radius:999px;
  font-weight:600;
}

/* ===== Cards ===== */
.card{
  position:relative;
  border-radius:1.9rem;
  padding:1.8rem 1.7rem;
  border:1px solid rgba(31,96,52,0.18);
  background:
    linear-gradient(
      135deg,
      rgba(255,247,223,0.98) 0%,
      rgba(255,255,255,0.96) 45%,
      rgba(240,194,51,0.14) 100%
    );
  box-shadow:
    0 18px 40px rgba(0,0,0,0.16),
    0 3px 8px rgba(0,0,0,0.08);
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  top:-18px;
  left:-40px;
  width:110px;
  height:60px;
  background:linear-gradient(120deg,var(--verde-scuro) 0%,var(--verde) 55%,var(--giallo) 100%);
  border-radius:999px;
  opacity:.9;
}

.card::after{
  content:"";
  position:absolute;
  top:14px;
  left:22px;
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,0.9);
  box-shadow:0 0 0 3px rgba(240,194,51,0.65);
}

.card > *{ position:relative; z-index:1; }

.card-highlight{ border-top:4px solid var(--bordeaux); }

.card-hover-lift{
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-hover-lift:hover{
  transform:translateY(-8px);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.22),
    0 6px 16px rgba(0,0,0,0.12);
  border-color:rgba(240,194,51,0.7);
}

.card .card-title{
  font-weight:600;
  color:var(--verde-scuro);
  letter-spacing:.03em;
}
.card .card-text{ color:#000; }

.card img,
.hero-photo img{
  filter:saturate(1.05);
}
.card:hover img{
  filter:saturate(1.15);
}

/* ===== Mini-galleria CHI SIAMO ===== */
.mini-gallery{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  grid-auto-rows:180px;
  gap:1rem;
  margin-bottom:2rem;
}
.mini-gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:1.6rem;
  box-shadow:0 14px 30px rgba(0,0,0,0.18);
}
.mini-gallery-item-large{ grid-row:span 2; }
.mini-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
  transition:transform .35s ease;
}
.mini-gallery-item:hover img{ transform:scale(1.05); }
.mini-gallery-item-large img{ object-position:50% 20%; }

/* ===== GALLERIA ===== */
#galleria .gallery-grid{
  position:relative;
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:18px 6px 14px;
  margin-top:2rem;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
#galleria .gallery-grid::-webkit-scrollbar{ height:8px; }
#galleria .gallery-grid::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.06);
  border-radius:999px;
}
#galleria .gallery-grid::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,var(--verde-scuro),var(--giallo));
  border-radius:999px;
}
#galleria .gallery-item{
  position:relative;
  flex:0 0 auto;
  width:clamp(260px,34vw,380px);
  border-radius:1.7rem;
  overflow:hidden;
  cursor:pointer;
  background:rgba(255,255,255,0.88);
  box-shadow:0 16px 40px rgba(0,0,0,0.16);
  scroll-snap-align:start;
  transform:translateY(0);
  transition:transform .22s ease, box-shadow .22s ease;
}
#galleria .gallery-item:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 56px rgba(0,0,0,0.22);
}
#galleria .gallery-item img{
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:transform .35s ease, filter .35s ease;
}
#galleria .gallery-item:hover img{
  transform:scale(1.05);
  filter:saturate(1.1);
}
#galleria .gallery-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 62%);
  z-index:1;
  pointer-events:none;
}
#galleria .gallery-item span{
  position:absolute;
  left:12px;
  right:54px;
  bottom:12px;
  z-index:2;
  padding:8px 12px;
  border-radius:999px;
  font-size:.95rem;
  font-weight:700;
  background:rgba(0,0,0,0.55);
  color:#fff;
  backdrop-filter:blur(6px);
}
#galleria .gallery-item::after{
  content:"🔍";
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:3;
  font-size:1rem;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.92);
  color:var(--bordeaux);
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

/* ===== EVENTI (timeline) ===== */
.event-tag{
  display:inline-block;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:rgba(240,194,51,0.18);
  color:var(--bordeaux);
  padding:.2rem .7rem;
  border-radius:999px;
  margin-bottom:.4rem;
}

.event-timeline{
  position:relative;
  max-width:1100px;
  width:min(1200px,95vw);
  margin:0 auto;
  padding-left:1.6rem;
}

.event-timeline::before{
  content:"";
  position:absolute;
  top:.2rem;
  bottom:.2rem;
  left:.4rem;
  width:2px;
  background:linear-gradient(to bottom, var(--giallo), var(--verde-scuro));
  border-radius:999px;
  opacity:.9;
}

.event-item{
  position:relative;
  display:flex;
  gap:1.5rem;
  margin-bottom:2rem;
}

.event-dot{
  position:relative;
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--bordeaux);
  border:3px solid var(--giallo);
  flex-shrink:0;
  margin-top:.6rem;
  box-shadow:0 0 0 5px rgba(240,194,51,0.16);
}

.event-content{ flex:1; }

.event-date{
  font-size:1rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--verde-scuro);
  margin-bottom:.2rem;
}

/* EVENTI desktop */
#eventi .card{
  border-radius:1.9rem;
  overflow:hidden;
}
#eventi .event-media{
  border-radius:1.4rem;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
}
#eventi .event-media img{
  width:100%;
  height:240px;
  display:block;
  object-fit:cover;
  object-position:center;
}
#eventi img.event-poster{
  width:100%;
  max-width:260px;
  height:auto;
  max-height:480px;
  object-fit:contain;
  display:block;
  margin:0 auto;
  border-radius:1.2rem;
  background:transparent;
}
#eventi .card .col-md-4{
  flex:0 0 38% !important;
  max-width:38% !important;
}
#eventi .card .col-md-8{
  flex:0 0 62% !important;
  max-width:62% !important;
}

/* ===== CONTATTI + FOOTER ===== */
#contatti{
  background:#050507;
  color:var(--giallo);
  position:relative;
  overflow:hidden;
}
#contatti::before{
  content:"";
  position:absolute;
  top:-60px;
  left:0;
  right:0;
  height:120px;
  background:radial-gradient(140% 140% at 50% 100%, transparent 0, transparent 50%, #050507 51%);
}
#contatti .section-title,
#contatti .section-subtitle,
#contatti h5,
#contatti p,
#contatti label{
  color:var(--giallo);
}

#contatti .badge-pill{
  background:rgba(240,194,51,0.15);
  color:var(--giallo);
}
#contatti a{ color:var(--giallo-soft); }
#contatti a:hover{ color:#fff; }

#contatti .form-control,
#contatti textarea{
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(240,194,51,0.4);
  color:#fdf7d0;
}
#contatti .form-control::placeholder,
#contatti textarea::placeholder{
  color:rgba(253,247,208,0.6);
}
#contatti .form-control:focus,
#contatti textarea:focus{
  box-shadow:0 0 0 .2rem rgba(240,194,51,0.35);
  border-color:var(--giallo);
}

#contatti .btn-dark{
  background:var(--giallo);
  border-color:var(--giallo);
  color:#111;
  font-weight:600;
  border-radius:999px;
  padding-inline:1.8rem;
}
#contatti .btn-dark:hover{
  background:#ffdd55;
  border-color:#ffdd55;
  color:#000;
}

footer{
  background:#1f1b24;
  color:#f3f3f3;
  padding:2.5rem 0 1.5rem;
  font-size:.9rem;
}
footer a{ color:#f3f3f3; }
footer a:hover{ color:var(--giallo); }

/* ===== 5x1000 ===== */
.five-box{
  background:linear-gradient(
    95deg,
    rgba(255,247,223,0.96) 40%,
    rgba(255,255,255,0.94) 45%,
    rgba(240,194,51,0.18) 100%
  );
  border-radius:2rem;
  padding:1.6rem;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.10);
  border:1px solid rgba(31,96,52,0.18);
  display:flex;
  justify-content:center;
  align-items:center;
}
.five-img{ max-width:60%; }

/* ===== SOCIAL ===== */
.social-links{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}
.social-icon{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.7rem 1.25rem;
  min-width:52px;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(240,194,51,0.35);
  color:var(--giallo);
  font-weight:500;
  font-size:.9rem;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.social-icon img{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
  filter:brightness(1.1);
}
.social-icon:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 22px rgba(0,0,0,0.25);
  background:rgba(240,194,51,0.15);
}

/* ===== MEMORIE ===== */
.memorie-right{ margin-top:1.15rem; }

.memorie-mini-photo{
  width:100%;
  height:295px;
  border-radius:1.2rem;
  overflow:hidden;
  margin-bottom:.9rem;
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
}
.memorie-mini-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 10%;
}

.btn-readmore{
  border-radius:999px;
  font-weight:600;
  padding:.55rem 1.1rem;
}

.section-soft-bg .container.container-wide{
  max-width:1400px;
  width:min(1400px,96vw);
  margin-inline:auto;
}

/* testo */
.section-soft-bg p{ text-align:justify; }
section p{ text-align:justify; }

#cinque-per-mille .runs-link{
  color:var(--verde-scuro);
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid var(--verde-scuro);
  transition:all .2s ease;
}
#cinque-per-mille .runs-link:hover{ opacity:.7; }

#cinque-per-mille .cf-code{
  font-size:1.9rem;
  font-weight:700;
  color:var(--verde-scuro);
  margin:1rem 0 2rem 0;
}

/* mini mappa */
#contatti .mini-map{
  display:block;
  max-width:360px;
  border-radius:1.4rem;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  transition:transform .25s ease, box-shadow .25s ease;
}
#contatti .mini-map:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 50px rgba(0,0,0,.6);
}
#contatti .mini-map img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}
#contatti .mini-map span{
  display:block;
  padding:.7rem 1rem;
  font-weight:600;
  font-size:.95rem;
  color:#f7d36b;
  background:rgba(255,255,255,.06);
  text-align:center;
}

/* =========================================================
   TABLET / MOBILE GENERALE
   ========================================================= */
@media (max-width:991.98px){

  section[id],
  header[id]{
    scroll-margin-top:var(--nav-offset-mobile);
  }

  .nav-holder{
    top:0 !important;
    padding-top:.35rem !important;
    padding-bottom:.15rem !important;
    background:var(--crema) !important;
  }

  .navbar{
    padding:0 !important;
  }

  .navbar .container,
  .navbar .container-fluid{
    width:calc(100% - 1rem) !important;
    max-width:none !important;
    padding:.75rem .95rem !important;
    border-radius:1.6rem !important;
    background:var(--crema) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.08) !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:wrap !important;
    gap:.45rem !important;
  }

  .navbar-brand{
    display:flex !important;
    align-items:center !important;
    gap:.65rem !important;
    margin:0 !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }

  .navbar-brand img{
    height:42px !important;
    width:auto !important;
    flex:0 0 auto !important;
  }

  .navbar-brand span{
    font-size:1.05rem !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .navbar-toggler{
    border:0 !important;
    padding:.35rem .45rem !important;
    margin:0 !important;
    box-shadow:none !important;
    flex:0 0 auto !important;
  }

  .navbar-toggler:focus{
    box-shadow:none !important;
  }

  .navbar-collapse{
    width:100% !important;
    margin-top:.7rem !important;
    padding:.8rem .9rem !important;
    background:#fffaf0 !important;
    border-radius:1.1rem !important;
    box-shadow:inset 0 0 0 1px rgba(31,96,52,.08) !important;
  }

  .navbar-collapse.show{
    display:block !important;
  }

  .navbar-nav{
    gap:.15rem !important;
    align-items:flex-start !important;
  }

  .nav-link{
    font-size:.98rem !important;
    padding:.55rem 0 !important;
  }

  .nav-link::after{
    left:0;
    right:auto;
    width:100%;
    bottom:.15rem !important;
  }

  #hero{
    text-align:center;
    min-height:auto !important;
    padding-top:2.5rem !important;
    padding-bottom:2.8rem !important;
  }

  #hero .container{
    padding-left:1rem !important;
    padding-right:1rem !important;
  }

  #hero .row{
    row-gap:1.6rem !important;
  }

  .hero-inner .btn-group{
    justify-content:center;
  }

  .mini-gallery{
    display:none;
  }

  .event-timeline{
    padding-left:1.2rem;
  }

  .event-timeline::before{
    left:.2rem;
  }

  section:not(#contatti) .container{
    border-radius:1.4rem;
    padding:2.2rem 1.6rem;
    box-shadow:0 10px 28px rgba(0,0,0,0.06);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:768px){

  .section-soft-bg p,
  section p{
    text-align:left;
  }

  .hero-title{
    font-size:clamp(2.5rem, 10vw, 3.5rem) !important;
    line-height:.98 !important;
    margin-bottom:.9rem !important;
    text-shadow:0 2px 10px rgba(0,0,0,0.18);
  }

  #hero .col-lg-6:first-child{
    background:rgba(255,255,255,0.28);
    border-radius:1.6rem;
    padding:1rem 1rem 1.2rem;
    backdrop-filter:blur(6px);
  }

  .hero-subtitle{
    color:#1e1e1e;
    font-size:1.03rem !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    text-align:left !important;
  }

  .hero-badges{
    display:flex !important;
    justify-content:center !important;
  }

  .hero-badges span{
    font-size:.95rem !important;
    padding:.35rem .8rem !important;
  }

  .hero-photo-wrapper{
    max-width:100% !important;
  }

  .hero-photo{
    border-radius:2rem !important;
  }

  .hero-star{
    width:86px !important;
    height:86px !important;
    right:10px !important;
    bottom:-10px !important;
  }

  .hero-star img{
    width:68px !important;
    height:68px !important;
  }

  .hero-tag{
    top:12px !important;
    left:12px !important;
    font-size:.72rem !important;
    padding:.3rem .65rem !important;
  }

  .btn-group{
    width:100% !important;
    justify-content:center !important;
    gap:.8rem !important;
  }

  .btn-hero-primary,
  .btn-hero-outline{
    width:100% !important;
    max-width:320px !important;
  }

  /* EVENTI mobile */
  .event-timeline{
    width:100% !important;
    max-width:100% !important;
    padding-left:0 !important;
  }
  .event-timeline::before{ display:none !important; }
  .event-dot{ display:none !important; }

  .event-item{
    flex-direction:column !important;
    gap:.8rem !important;
    margin-bottom:1.4rem !important;
  }

  #eventi .card .row.g-0{
    flex-direction:column !important;
  }

  #eventi .card .col-md-4,
  #eventi .card .col-md-8{
    flex:0 0 100% !important;
    max-width:100% !important;
  }

  #eventi .event-media img:not(.event-poster){
    height:210px !important;
    border-radius:1.4rem !important;
  }

  #eventi img.event-poster{
    max-width:320px !important;
    max-height:420px !important;
    margin:.8rem auto .2rem !important;
    border-radius:1.4rem !important;
  }

  #eventi .card-body{
    padding:1.1rem 1.1rem 1.25rem !important;
    text-align:center !important;
  }

  #eventi .card-text{
    text-align:left !important;
    margin:.7rem auto 0 !important;
    max-width:44ch;
  }

  /* galleria mobile */
  #galleria .gallery-grid{
    gap:14px;
    padding:14px 2px 10px;
  }
  #galleria .gallery-item{
    width:78vw;
    max-width:360px;
    border-radius:1.6rem;
  }
  #galleria .gallery-item span,
  #galleria .gallery-item::after{
    display:none !important;
  }
  #galleria .gallery-item::before{
    background:linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 70%);
  }
}

@media (max-width:420px){
  .navbar-brand img{
    height:38px !important;
  }

  .navbar-brand span{
    font-size:.98rem !important;
  }

  .navbar .container,
  .navbar .container-fluid{
    padding:.7rem .85rem !important;
  }

  .hero-title{
    font-size:clamp(2.2rem, 11vw, 3rem) !important;
  }

  .badge-pill{
    font-size:1rem;
    letter-spacing:.1em;
  }
}

