/* =========================================
   TORTUS – common.css (UNICO)
   Topbar + Dropdown + Sponsor + Contatti
   Zoom-friendly (REM) + Responsive
   ========================================= */

:root{
  --deep:#0b2f7a;
  --line:rgba(255,255,255,.18);
  --card:rgba(255,255,255,.06);
  --cardHover:rgba(255,255,255,.12);
  --shadow:0 8px 20px rgba(0,0,0,.25);

  /* Larghezza unica sito (topbar + container) */
  --siteW: 1250px;
}

/* ===== RESET BASE ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
img,svg,video{max-width:100%;height:auto}

/* ================= LAYOUT BASE ================= */
.container{
  max-width: var(--siteW);
  margin:0 auto;
  padding:50px 18px;
}

/* ================= TOPBAR ================= */
/* z-index scale:
   topbar:10000
   dropdown:10001
   modal:20000
*/


.topbar{
  position:relative;
  z-index:10000;
  backdrop-filter: blur(8px);
  background:rgba(11,47,122,.55);
  border-bottom:1px solid rgba(255,255,255,.18);
}

.topbar-inner{
  max-width: var(--siteW);
  margin:0 auto;

  padding:12px 18px;
  padding-left:max(18px, env(safe-area-inset-left));
  padding-right:max(18px, env(safe-area-inset-right));

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}
.brand img{
  width:42px;
  height:42px;
  object-fit:contain;
}
.brand strong{
  font-weight:900;
  letter-spacing:.4px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.pill{
  border:1px solid rgba(255,255,255,.18);
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  background:rgba(255,255,255,.06);
  color:#fff;
  transition:transform .18s ease, background .18s ease;
  white-space:nowrap;
  cursor:pointer;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height: 44px;
}
.pill:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.page-hero{
  max-width:1200px;
  margin:18px auto 40px;
}

.page-hero img{
  width:100%;
  display:block;
  border-radius:22px;
}

/* ===== NAV MOBILE SCROLL ===== */
@media(max-width:760px){
  .topbar-inner{
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:10px;
  }
  .brand{justify-content:center}

  .nav{
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    flex-wrap:nowrap;
    max-width:100%;
    padding-bottom:6px;
  }

  .pill{
    padding:8px 10px;
    font-size:12px;
  }
}

/* ================= DROPDOWN ================= */
.comp-dd{position:relative;display:inline-flex;align-items:center}
.comp-btn{cursor:pointer}
.comp-btn .caret{margin-left:8px;opacity:.9}

.comp-menu{
  pointer-events:auto;
  position:fixed;
  display:none;
  width:min(360px, 92vw);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(11,47,122,.85);
  backdrop-filter: blur(12px);
  box-shadow:0 26px 70px rgba(0,0,0,.55);
  overflow:hidden;
  z-index:10001;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease;

  max-height: calc(100vh - 90px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

}
.comp-menu.open{
  display:block;
  opacity:1;
  transform:translateY(0);
}

.comp-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.comp-item:hover{background:rgba(120,200,255,.15)}
.comp-item:last-child{border-bottom:none}

/* (se usi head/ico/text/go in alcune pagine) */
.comp-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}
.comp-dot{
  width:10px;height:10px;border-radius:999px;
  background:rgba(120,200,255,.95);
  box-shadow:0 0 18px rgba(120,200,255,.55);
  flex:0 0 auto;
}
.comp-title{font-size:12px;letter-spacing:.9px;font-weight:900;text-transform:uppercase}
.comp-left{display:flex;align-items:center;gap:10px;min-width:0}
.comp-ico{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  flex:0 0 auto;
}
.comp-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.comp-text strong{font-weight:900;font-size:14px;line-height:1.1}
.comp-text small{opacity:.8;font-weight:800;font-size:12px}
.comp-go{
  width:30px;height:30px;border-radius:999px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}

/* ================= BARRA SPONSOR IMG ================= */

.barra-sponsor{
  display:block;
  width:calc(100% - 40px);
  max-width:1210px;
  margin:40px auto 0;
  height:auto;
}
/* HERO allineate al container */
.page-hero{
  width: calc(100% - 40px);
  max-width: 1210px;
  margin: 18px auto 40px;
  padding: 0;
  box-sizing: border-box;
}

.page-hero img{
  width:100%;
  display:block;
  height:auto;
  border-radius:22px;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
}
/* ================= SEZIONI ================= */
.section-title{
  font-size:32px;
  font-weight:900;
  margin:40px 0 18px 0;
  letter-spacing:1px;
  border-left:6px solid #78c8ff;
  padding-left:14px;
}
.section-desc{
  max-width:900px;
  margin:0 auto 26px;
  opacity:.85;
  line-height:1.55;
  text-align:center;
}

/* ================= BADGE ================= */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  font-weight:800;
  font-size:13px;
  width:max-content;
  margin-left:auto;
  margin-right:auto; /* centra sempre */
}

/* ================= CONTACT CARD (se usata) ================= */
.contact-card{
  max-width:800px;
  margin:60px auto;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2);
  border-radius:24px;
  padding:30px;
  text-align:center;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
}

.contact-photo{
  width:100%;
  max-height:450px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:25px;
}

.contact-info h1{
  font-size:32px;
  font-weight:900;
  margin-bottom:20px;
}

.phone{
  font-size:18px;
  margin:8px 0;
  font-weight:700;
}

.social-links{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.social-links a{
  background:#78c8ff;
  color:#0b2f7a;
  padding:10px 18px;
  border-radius:30px;
  font-weight:700;
  transition:.3s;
}

.social-links a:hover{
  background:#ffffff;
}



.bc-layer{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: clamp(14px, 2.2vw, 40px);
  flex-wrap:wrap;
  min-width:0;
}
.bc-phones,
.bc-socials{
  display:flex;
  flex-direction:column;
  gap: clamp(10px, 1.4vw, 16px);
  min-width:0;
  flex: 1 1 320px;
}
.bc-phones a,
.bc-socials a{
  display:inline-flex;
  align-items:center;
  gap: clamp(10px, 1.6vw, 14px);
  width: fit-content;
  max-width: 100%;

  padding: clamp(9px, 1.3vw, 12px) clamp(12px, 1.8vw, 16px);
  border-radius: clamp(12px, 1.8vw, 16px);

  color:#fff;
  font-weight:900;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height:1.15;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  text-shadow: 0 8px 16px rgba(0,0,0,.22);

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bc-phones a:hover,
.bc-socials a:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.34);
  border-color: rgba(255,255,255,.22);
}
.bc-phones a:focus-visible,
.bc-socials a:focus-visible{
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}
.icon{
  width: clamp(20px, 2.0vw, 26px);
  height: clamp(20px, 2.0vw, 26px);
  flex:0 0 auto;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.22));
}

/* Mobile / schermi stretti (o zoom alto) */
@media (max-width: 768px){
  .bc-layer{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .bc-phones,
  .bc-socials{
    align-items:center;
  }
  .bc-phones a,
  .bc-socials a{
    justify-content:center;
    width: 100%;
  }
}

/* ===== BARRA CONTATTI: alias markup (bc-inner/bc-col) ===== */
.bc-inner{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: clamp(14px, 2.2vw, 40px);
  flex-wrap:wrap;
  min-width:0;
}
.bc-col{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.bc-divider{
  width:1px;
  background:rgba(255,255,255,.18);
  align-self:stretch;
  opacity:.7;
}
@media (max-width: 768px){
  .bc-inner{flex-direction:column;align-items:center;text-align:center}
  .bc-divider{display:none}
  .bc-col{align-items:center}
}

/* ================= SPONSOR GRID – LOGHI GRANDI / BOX PIÙ PICCOLE ================= */

.sponsor-grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  width: min(1000px, 100%);
  margin-left:auto;
  margin-right:auto;
  padding: 0 10px;
}

/* BOX un po’ più piccole */
.sponsor-card{
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;                 /* meno padding interno */
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);

  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none;
}

.sponsor-card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 18px 46px rgba(0,0,0,.26);
}

/* LOGHI MOLTO PIÙ GRANDI */
.sponsor-card img{
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 170px;
  object-fit: contain;
  opacity: 1;
  transition: transform .18s ease;
}

.sponsor-card:hover img{
  transform: scale(1.05);
}

/* ================= FOOTER PRIVACY ================= */

.site-footer{
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
}

.footer-inner{
  max-width:var(--siteW);
  margin:auto;
  padding:16px 18px;
  text-align:center;
}

.site-footer a{
  font-size:13px;
  font-weight:800;
  color:rgba(255,255,255,.85);
  text-decoration:none;
}

.site-footer a:hover{
  text-decoration:underline;
}

/* Tablet */
@media (max-width: 900px){
  .sponsor-card{ height: 170px; }
  .sponsor-card img{ max-height: 155px; }
}

/* Mobile */
@media (max-width: 600px){
  .sponsor-grid{
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(520px, 100%);
  }
  .sponsor-card{ height: 160px; }
  .sponsor-card img{ max-height: 145px; }
}

/* ===== NAV: ACTIVE + FOCUS (pro) ===== */
.pill.active{
  background: rgba(120,200,255,.18);
  border-color: rgba(120,200,255,.35);
  transform: translateY(-1px);
}

.pill:focus-visible{
  outline: 3px solid rgba(120,200,255,.55);
  outline-offset: 3px;
}

/* Dropdown item active (quando sei in Campionato/Coppa/Serie A, ecc.) */
.comp-item.active{
  background: rgba(120,200,255,.18);
}

/* ===== SKIP LINK (accessibilità pro) ===== */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  padding:10px 14px;
  border-radius:12px;
  background: rgba(11,47,122,.92);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:900;
  z-index:20000;
}
.skip-link:focus{
  left:12px;
}


/* Cookie banner Tortus */
#cookie-banner-tortus{position:fixed;left:16px;right:16px;bottom:16px;z-index:99999;display:flex;justify-content:center;font-family:inherit}
#cookie-banner-tortus .cookie-box{max-width:760px;background:#111;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:18px;box-shadow:0 18px 45px rgba(0,0,0,.35);padding:18px;display:flex;gap:16px;align-items:center;justify-content:space-between}
#cookie-banner-tortus p{margin:0;line-height:1.45;font-size:.95rem}
#cookie-banner-tortus .cookie-actions{display:flex;gap:10px;flex-shrink:0}
#cookie-banner-tortus button{border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:10px 16px;cursor:pointer;font-weight:700;background:#fff;color:#111}
#cookie-banner-tortus button[data-cookie-choice="reject"]{background:transparent;color:#fff}
@media (max-width:640px){#cookie-banner-tortus .cookie-box{display:block}#cookie-banner-tortus .cookie-actions{margin-top:14px;justify-content:flex-end;flex-wrap:wrap}}
