/* ========================================================
   FLARE TREFFEN CALABRIA 2026 - stylesheet
   Palette: blu notte + arancione tramonto
   ======================================================== */

:root {
  --navy-900: #0a1423;
  --navy-800: #0f1e33;
  --navy-700: #16293f;
  --navy-600: #1d3550;
  --sunset:   #ff6b2c;
  --sunset-2: #ff8f4d;
  --amber:    #ffb547;
  --sea:      #2ea3c4;
  --cloud:    #eef3f8;
  --muted:    #9fb2c7;
  --white:    #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .18);
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cloud);
  background: var(--navy-900);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sunset), var(--amber));
  color: #1a0d03;
  box-shadow: 0 10px 28px rgba(255, 107, 44, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 107, 44, .5); }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.btn-lg { font-size: 1.1rem; padding: 1.05rem 2.4rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
  padding: .3rem 0;
}
.site-header.scrolled {
  background: rgba(10, 20, 35, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; flex-direction: column; line-height: .95; }
.brand-mark { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--amber), var(--sunset)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .42em; color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--cloud); position: relative; padding: .3rem 0; transition: color .2s; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sunset); transition: width .25s var(--ease); }
.main-nav a:not(.nav-cta):hover { color: var(--white); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, var(--sunset), var(--amber)); color: #1a0d03 !important; padding: .55rem 1.3rem !important; border-radius: 999px; font-weight: 700; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 107, 44, .4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/sfondo-hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,35,.28) 0%, rgba(10,20,35,.08) 35%, rgba(10,20,35,.55) 100%),
    linear-gradient(90deg, rgba(10,20,35,.38), rgba(10,20,35,0) 60%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; max-width: 760px; }
.hero-kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem;
  color: var(--amber); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; letter-spacing: -.01em; color: var(--white); text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.hero-title span { background: linear-gradient(120deg, var(--sunset-2), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .flare-word { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--white); text-transform: uppercase; }
.hero-dates { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.pill { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .5rem 1.1rem; border-radius: 999px; background: linear-gradient(135deg, var(--sunset), var(--amber)); color: #1a0d03; }
.pill-ghost { background: rgba(255,255,255,.12); color: var(--white); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
.hero-lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: #dbe6f2; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; display: flex; justify-content: center; }
.scroll-cue span { width: 4px; height: 8px; background: var(--white); border-radius: 2px; margin-top: 7px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; font-size: .82rem; color: var(--amber); background: rgba(255, 181, 71, .12); border: 1px solid rgba(255,181,71,.3); padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; color: var(--white); }
.section-intro { text-align: center; max-width: 680px; margin: -1rem auto 2.5rem; color: var(--muted); font-size: 1.08rem; }

/* ---------- evento ---------- */
.evento-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.evento-text p { color: #cdd9e6; font-size: 1.06rem; }
.highlight-box { margin: 1.6rem 0; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,107,44,.16), rgba(255,181,71,.08)); border-left: 4px solid var(--sunset); }
.highlight-box h3 { color: var(--amber); font-size: 1.2rem; }
.highlight-box p { margin: 0; color: #e7eef6; }
.feature-list { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.feature-list li { display: inline-flex; align-items: center; gap: .5rem; background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); padding: .55rem 1.1rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.feature-list .fi { font-size: 1.15rem; }
.evento-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--navy-900); }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }

/* ---------- spot ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spot-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .3s var(--ease), border-color .3s; }
.spot-card:hover { transform: translateY(-6px); border-color: rgba(255,181,71,.4); }
.spot-card h3 { color: var(--amber); font-size: 1.2rem; }
.spot-card p { color: #cdd9e6; margin: 0; }

/* ---------- spot map ---------- */
.spot-map { margin: clamp(28px, 5vw, 48px) auto 0; max-width: 720px; }
.spot-map img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.1); }
.spot-map figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .9rem; }

/* ---------- cards 2 (alloggi) ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.info-card { text-align: center; background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 2.4rem 1.8rem; transition: transform .3s var(--ease); }
.info-card:hover { transform: translateY(-6px); }
.info-ico { font-size: 2.6rem; margin-bottom: .8rem; }
.info-card h3 { color: var(--white); font-size: 1.25rem; }
.info-card p { color: var(--muted); margin: 0; }

/* ---------- price grid (alloggi) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.price-card { position: relative; text-align: center; background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 2.2rem 1.6rem; transition: transform .3s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-6px); border-color: rgba(255,181,71,.4); }
.price-card--feature { border-color: rgba(255,181,71,.5); background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); }
.price-ico { font-size: 2.4rem; margin-bottom: .6rem; }
.price-card h3 { color: var(--white); font-size: 1.18rem; margin-bottom: .2rem; }
.price-cap { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.price-amount { font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; color: var(--amber); margin: 0; line-height: 1; }
.price-amount span { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ---------- meal box (mezza pensione) ---------- */
.meal-box { display: flex; align-items: center; gap: 1.2rem; max-width: 760px; margin: 0 auto; padding: 1.4rem 1.8rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(46,163,196,.16), rgba(255,181,71,.08)); border-left: 4px solid var(--sea); }
.meal-ico { font-size: 2.4rem; line-height: 1; }
.meal-box h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .3rem; }
.meal-box p { color: #e7eef6; margin: 0; }

/* ---------- camp gallery ---------- */
.camp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(28px, 5vw, 48px); }
.camp-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.camp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.camp-gallery figure:hover img { transform: scale(1.08); }
.camp-link { text-align: center; margin-top: 2rem; }

/* ---------- logistica ---------- */
.logistica-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; }
.logi-block { background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 2rem; }
.logi-block h3 { color: var(--amber); font-size: 1.35rem; }
.time-list li { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.time-list li:last-child { border-bottom: 0; }
.time-list span { color: #cdd9e6; }
.time-list strong { font-family: var(--font-head); color: var(--white); }
.airport-list li { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.airport-list li:last-child { border-bottom: 0; }
.airport-list h4 { color: var(--white); font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.airport-list p { color: var(--muted); margin: .3rem 0 0; }
.badge { font-family: var(--font-body); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #1a0d03; background: var(--amber); padding: .2rem .6rem; border-radius: 999px; }

/* ---------- contatti ---------- */
.contatti { background: radial-gradient(1200px 600px at 50% -10%, rgba(255,107,44,.12), transparent 60%), var(--navy-900); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.8rem 1.2rem; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.contact-card:hover { transform: translateY(-6px); border-color: var(--sunset); background: var(--navy-600); }
.contact-ico { font-size: 2rem; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-value { font-family: var(--font-head); font-weight: 700; color: var(--white); word-break: break-word; }
.cta-final { text-align: center; margin-top: 2.6rem; }

/* ---------- partners ---------- */
.partners { padding: 48px 0; background: var(--white); }
.partners-title { text-align: center; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: #64748b; margin-bottom: 1.6rem; }
.partners-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 70px); }
.partners-logos img { height: 72px; width: auto; transition: transform .3s var(--ease); }
.partners-logos a:hover img { transform: scale(1.06); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer-brand p { color: var(--muted); margin: .4rem 0 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.footer-nav a { color: var(--cloud); font-family: var(--font-head); font-weight: 600; font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--amber); }
.footer-copy { color: var(--muted); font-size: .85rem; margin: 0; }
.footer-copy a { color: var(--amber); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 960px) {
  .evento-grid { grid-template-columns: 1fr; }
  .evento-media { order: -1; max-width: 480px; margin: 0 auto; }
  .spot-grid { grid-template-columns: 1fr; }
  .logistica-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .camp-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 20, 35, .97); backdrop-filter: blur(14px);
    padding: 1rem clamp(18px, 4vw, 36px) 1.6rem;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; }
  .cards-2 { grid-template-columns: 1fr; }
  .meal-box { flex-direction: column; text-align: center; }
  .meal-box { border-left: 0; border-top: 4px solid var(--sea); }
}

@media (max-width: 520px) {
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
