/* ═══════════════════════════════════════════════
   BBC Theme — main.css
   Bordighera Bene Comune
   ═══════════════════════════════════════════════ */

:root {
  --blu:        #2B5BAE;
  --blu-dark:   #1E4080;
  --blu-event:  #2E8BC0;
  --blu-light:  #4A7BC8;
  --blu-pale:   #E8EFF8;
  --blu-mid:    #D0DEEF;
  --oro:        #F0A500;
  --oro-light:  #FFF3CC;
  --silver:     #8B9DB0;
  --grigio-bg:  #F4F7FC;
  --testo:      #1A2A3A;
  --testo-soft: #4A5568;
  --white:      #FFFFFF;
  --font-sans:  'Raleway', sans-serif;
  --font-cond:  'Barlow Condensed', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--testo);
  background: var(--grigio-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TOPBAR ── */
.bbc-topbar {
  background: var(--blu-dark);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.bbc-topbar a { color: inherit; text-decoration: none; margin-left: 12px; }
.bbc-topbar a:hover { color: rgba(255,255,255,0.7); }

/* ── NAVBAR ── */
.bbc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  background: var(--blu);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bbc-nav-logo { display: flex; align-items: center; }
.bbc-nav-logo img { height: 40px; width: auto; }
.logo-wrap { background: transparent; border-radius: 0px; padding: 0px 0px; display: flex; align-items: center; height: 44px; }

.bbc-nav-links { display: flex; gap: 24px; list-style: none; }
.bbc-nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; font-weight: 400; transition: color .2s; }
.bbc-nav-links a:hover { color: #fff; }

.bbc-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.bbc-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.bbc-mobile-menu { display: none; background: var(--blu-dark); overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.bbc-mobile-menu.open { max-height: 320px; }
.bbc-mobile-menu a { display: block; padding: 14px 24px; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bbc-mobile-menu .btn-cta-mobile { background: var(--oro); color: var(--testo); font-weight: 800; text-align: center; margin: 12px 16px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }

/* ── BOTTONI ── */
.btn-primary { display: inline-block; background: var(--oro); color: var(--testo); font-family: var(--font-sans); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; padding: 13px 28px; border-radius: 3px; border: none; cursor: pointer; text-decoration: none; transition: opacity .2s; }
.btn-primary:hover { opacity: .9; text-decoration: none; color: var(--testo); }
.btn-secondary { display: inline-block; background: transparent; color: #fff; font-family: var(--font-sans); font-weight: 500; font-size: 12px; padding: 13px 28px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.35); cursor: pointer; text-decoration: none; transition: background .2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn-blu { display: inline-block; background: var(--blu); color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 12px 24px; border-radius: 3px; border: none; cursor: pointer; text-decoration: none; transition: opacity .2s; }
.btn-blu:hover { opacity: .9; color: #fff; text-decoration: none; }
.btn-outline-blu { display: inline-block; background: transparent; color: var(--blu); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 11px 24px; border-radius: 3px; border: 2px solid var(--blu); cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-outline-blu:hover { background: var(--blu); color: #fff; }

/* ── HERO ── */
.bbc-hero { background: var(--blu-dark); position: relative; overflow: hidden; }
.bbc-hero-bg { position: absolute; inset: 0; opacity: .05; background-image: repeating-linear-gradient(135deg, #fff 0,#fff 1px,transparent 0,transparent 30px); pointer-events: none; }
.bbc-hero-grid { display: grid; grid-template-columns: 1fr auto 280px; min-height: 500px; }
.bbc-hero-left { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.bbc-hero-video-col { display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: rgba(0,0,0,.15); border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06); position: relative; z-index: 2; }
.bbc-hero-right { background: rgba(0,0,0,.18); padding: 32px 24px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 2; }

.hero-video-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.hero-video-wrap iframe { display: block; width: 190px; height: 338px; border: none; }
.hero-video-label { text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.3); margin-top: 10px; }

.hero-coorg-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 7px 14px; margin-bottom: 20px; }
.hero-coorg-badge-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.4); }
.hero-coorg-badge-sep { width: 1px; height: 20px; background: rgba(255,255,255,.15); }
.hero-coorg-badge-logo {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 40px;
}
.hero-coorg-badge-logo img {
  height: 36px;
  width: auto;
}

.hero-marcia-logo { margin-bottom: 20px; }
.hero-marcia-logo img { height: 100px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.hero-subtitle { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 300; margin-bottom: 28px; line-height: 1.7; max-width: 380px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stat-num { font-family: var(--font-cond); font-size: 52px; font-weight: 700; color: var(--oro); line-height: 1; font-style: italic; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 300; margin-top: 4px; }

/* ── COUNTDOWN ── */
.bbc-countdown { display: flex; gap: 8px; margin-bottom: 32px; }
.cd-unit { text-align: center; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 10px 12px; min-width: 54px; }
.cd-num { font-family: var(--font-cond); font-size: 28px; font-weight: 700; color: #fff; line-height: 1; display: block; }
.cd-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.4); display: block; margin-top: 4px; }

/* ── PERCORSO ── */
.percorso-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 14px 16px; }
.percorso-title { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--oro); margin-bottom: 10px; font-weight: 700; }
.percorso-item { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.percorso-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oro); flex-shrink: 0; }
.percorso-text { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 300; }

/* ── STRIP NUMERI ── */
.bbc-strip { background: var(--blu); padding: 14px 24px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.strip-item { text-align: center; }
.strip-num { font-family: var(--font-cond); font-size: 20px; font-weight: 700; color: #fff; }
.strip-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.4); margin-top: 2px; }
.strip-div { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* ── BANNER ORGANIZZATORI ── */
.bbc-coorg-banner { background: #fff; border-top: 3px solid var(--blu-event); padding: 16px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.coorg-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--testo-soft); font-weight: 600; white-space: nowrap; }
.coorg-divider { width: 1px; height: 36px; background: var(--blu-mid); flex-shrink: 0; }
.coorg-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.coorg-logo-item { border: 1px solid var(--blu-mid); border-radius: 4px; padding: 5px 12px; display: flex; align-items: center; height: 46px; }
.coorg-logo-item img { height: 30px; width: auto; }
.coorg-sep { font-size: 16px; color: var(--blu-mid); }
.coorg-note { margin-left: auto; font-size: 11px; color: var(--testo-soft); font-weight: 300; }

/* ── SEZIONI GENERALI ── */
.bbc-section { padding: 56px 24px; }
.section-tag { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--blu-event); margin-bottom: 8px; }
.section-title { font-family: var(--font-cond); font-size: 32px; font-weight: 700; text-transform: uppercase; font-style: italic; color: var(--testo); margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--testo-soft); font-weight: 300; line-height: 1.7; max-width: 540px; }

/* ── TICKET CARDS ── */
.bbc-tickets { background: var(--blu-pale); }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ticket-card { background: #fff; border: 1px solid var(--blu-mid); border-radius: 6px; padding: 24px 20px; position: relative; display: flex; flex-direction: column; }
.ticket-card.featured { border: 2px solid var(--blu-event); }
.ticket-badge { position: absolute; top: 14px; right: 14px; background: var(--blu-event); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; }
.ticket-type { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--blu-light); margin-bottom: 10px; font-weight: 700; }
.ticket-price { font-family: var(--font-cond); font-size: 44px; font-weight: 700; color: var(--blu); line-height: 1; font-style: italic; }
.ticket-price sup { font-size: 20px; vertical-align: super; font-style: normal; }
.ticket-price-unit { font-size: 14px; color: var(--testo-soft); font-style: normal; font-family: var(--font-sans); }
.ticket-desc { font-size: 13px; color: var(--testo-soft); margin: 10px 0 16px; line-height: 1.5; }
.ticket-features { list-style: none; margin-bottom: 20px; flex: 1; }
.ticket-features li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--testo-soft); padding: 6px 0; border-bottom: 1px solid var(--blu-mid); }
.ticket-features li:last-child { border-bottom: none; }
.tick { width: 15px; height: 15px; border-radius: 50%; background: var(--blu-event); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tick::after { content: ''; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translateY(-1px); display: block; }
.btn-book { width: 100%; background: var(--blu-event); color: #fff; border: none; padding: 12px; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1px; text-align: center; display: block; text-decoration: none; margin-top: auto; }
.btn-book:hover { background: var(--blu); color: #fff; text-decoration: none; }
.btn-book-outline { width: 100%; background: transparent; color: var(--blu); border: 2px solid var(--blu); padding: 11px; border-radius: 3px; font-size: 12px; cursor: pointer; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; display: block; text-decoration: none; margin-top: auto; transition: all .2s; }
.btn-book-outline:hover { background: var(--blu); color: #fff; text-decoration: none; }

/* ── SPONSOR ── */
.bbc-sponsor-gold { background: #fff; border-top: 4px solid var(--oro); padding: 36px 24px; }
.bbc-sponsor-silver { background: #EDF1F5; border-top: 3px solid var(--silver); padding: 28px 24px; }
.sponsor-tier-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tier-dot-gold { width: 10px; height: 10px; border-radius: 50%; background: var(--oro); }
.tier-dot-silver { width: 10px; height: 10px; border-radius: 50%; background: var(--silver); }
.tier-name-gold { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: var(--oro); }
.tier-name-silver { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: var(--silver); }
.gold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.gold-card { border: 2px solid rgba(240,165,0,.4); border-radius: 8px; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 100px; background: rgba(255,243,204,.3); position: relative; transition: background .2s; }
.gold-card:hover { background: rgba(255,243,204,.6); }
.gold-card img { max-height: 56px; width: auto; object-fit: contain; }
.gold-main-badge { position: absolute; top: -1px; right: 12px; background: var(--oro); color: var(--testo); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 2px 10px; border-radius: 0 0 6px 6px; }
.gold-slot { border: 2px dashed rgba(240,165,0,.4); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 100px; background: rgba(255,243,204,.2); cursor: pointer; opacity: .6; transition: opacity .2s; text-decoration: none; }
.gold-slot:hover { opacity: .8; }
.gold-slot-icon { width: 36px; height: 36px; border-radius: 50%; border: 2px dashed var(--oro); display: flex; align-items: center; justify-content: center; color: var(--oro); font-size: 20px; font-weight: bold; }
.gold-slot-text { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--oro); }
.silver-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.silver-card { background: #fff; border: 1px solid var(--blu-mid); border-radius: 6px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; height: 56px; transition: border-color .2s; text-decoration: none; }
.silver-card:hover { border-color: var(--blu); }
.silver-card img { max-height: 28px; width: auto; object-fit: contain; }
.silver-card-name { font-size: 12px; font-weight: 700; color: var(--testo); }
.silver-slot { border: 1.5px dashed var(--silver); border-radius: 6px; padding: 12px 20px; display: flex; align-items: center; height: 56px; opacity: .5; text-decoration: none; }
.silver-slot-text { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); }

/* ── SOLIDARIETÀ ── */
.bbc-solidarieta { background: var(--blu-dark); padding: 44px 24px; }
.sol-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.sol-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 14px 10px; text-align: center; }
.sol-name { font-size: 11px; color: rgba(255,255,255,.85); font-weight: 600; margin-bottom: 3px; }
.sol-desc { font-size: 10px; color: rgba(255,255,255,.35); }

/* ── NEWSLETTER ── */
.bbc-newsletter { background: var(--blu-pale); border-top: 3px solid var(--blu); padding: 44px 24px; text-align: center; }
.nl-form-wrap { max-width: 440px; margin: 0 auto; }
.nl-form { display: flex; gap: 10px; margin-bottom: 14px; }
.nl-input { flex: 1; padding: 11px 16px; border: 1px solid var(--blu-mid); border-radius: 3px; font-size: 13px; font-family: var(--font-sans); background: #fff; color: var(--testo); outline: none; min-width: 0; transition: border-color .2s; }
.nl-input:focus { border-color: var(--blu); }
.nl-opts { display: flex; gap: 20px; justify-content: center; font-size: 12px; color: var(--testo-soft); flex-wrap: wrap; }
.nl-opts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--blu); }

/* ── FOOTER ── */
.bbc-footer { background: var(--testo); padding: 36px 24px 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.footer-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,.25); margin-bottom: 28px; font-weight: 300; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--blu-light); margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; font-size: 12px; color: rgba(255,255,255,.35); text-decoration: none; margin-bottom: 7px; font-weight: 300; transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.2); }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,.2); text-decoration: none; margin-left: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bbc-hero-grid { grid-template-columns: 1fr; }
  .bbc-hero-left { padding: 32px 24px 20px; }
  .bbc-hero-video-col { border: none; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
  .bbc-hero-right { flex-direction: row; gap: 16px; align-items: flex-start; padding: 20px 24px; background: rgba(0,0,0,.25); }
  .hero-stat-num { font-size: 40px; }
  .coorg-note { display: none; }
}
@media (max-width: 768px) {
  .bbc-nav-links, .bbc-cta-nav { display: none; }
  .bbc-hamburger { display: flex; }
  .bbc-mobile-menu { display: block; }
  .ticket-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .gold-grid { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .bbc-topbar { display: none; }
  .coorg-divider { display: none; }
  .hero-marcia-logo img { height: 76px; }
  .bbc-hero-right { flex-direction: column; }
  .nl-form { flex-direction: column; }
  .strip-div { display: none; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .bbc-section { padding: 40px 16px; }
}
