

:root {
    --red: #C8202A;
    --red-dark: #9e1820;
    --red-light: #e8343e;
    --white: #ffffff;
    --off-white: #f7f4f0;
    --charcoal: #1a1a1a;
    --gray: #5a5a5a;
    --light-gray: #e8e4de;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
  }

  .logo {width: 220px; height:80px; position: absolute; top: 0; left: 10%; z-index: 2 ;}

  .logo img { width: 100%; height: 100%;}

  /* NAV */
  nav {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: right;
    padding: 16px 40px;
    height: 80px;

    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,32,42,0.3);
  }

  nav ul { list-style: none; display: flex; gap: 32px; ;}
  nav ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  nav ul a:hover { color: var(--red-light); }
  .nav-cta {
    background: var(--red);
    color: white !important;
    padding: 8px 18px;
    border-radius: 3px;
    transition: background 0.2s !important;
  }

  
  .nav-cta:hover { background: var(--red-light) !important; color: white !important; }

  /* HERO */
  .hero {
    position: relative;
    height: 100vh; min-height: 600px;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

   section.hero {
    max-width:none;
    padding: 0;

  }
  .hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    z-index: 1;
    background-position: center 30%;
    width: 100%; height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.1) 80%,
      rgba(0,0,0,0.75) 100%
    );
  }
  @keyframes zoomout {
    from { transform: scale(1.0); }
    to { transform: scale(1.08); }
  }
  .hero-overlay {
    position: absolute; inset: 0; z-index: 0;
    animation: zoomout 12s ease forwards; 
        transform: scale(1.04);
  }

  .hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
   display: flex; 
    align-items: flex-end;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}


.hero-pagination {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

 .hero-overlay img{width: 100%; height: 100%; object-fit: cover;}


  .hero-content {
    position: relative; z-index: 2;
    padding: 60px 70px;
    max-width: 800px;
    animation: fadeup 1s ease 0.3s both;
  }
  @keyframes fadeup {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    border-left: 3px solid var(--red);
    padding-left: 12px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 96px);
    color: white;
    line-height: 0.92;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
  }
  .hero h1 span { color: var(--red-light); }
  .hero-claim {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.6;
  }
  .hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 3px;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.04em;
  }
  .btn-primary:hover { background: var(--red-light); transform: translateY(-2px); }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 3px;
    transition: background 0.2s;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
  }
  .btn-secondary:hover { background: rgba(255,255,255,0.25); }

  /* SECTIONS */
  section { padding: 100px 60px; }
  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    border-left: 3px solid var(--red);
    padding-left: 12px;
    margin-bottom: 16px;
  }
  h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
    color: var(--charcoal);
  }

  /* CHI SIAMO */
  .chi-siamo {
    background: var(--off-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .chi-siamo-img {
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
  }
  .chi-siamo-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .chi-siamo-img::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: 12px; bottom: 12px;
    border: 2px solid var(--red);
    border-radius: 2px;
    z-index: 0;
  }
  .chi-siamo-img img { position: relative; z-index: 1; }

  
   .chi p {
font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.75;
  }

  .chi-text p strong { color: var(--charcoal); font-weight: 600; }
  .vittorio {
    margin-top: 36px;
    padding: 24px 28px;
    border-left: 4px solid var(--red);
    background: white;
    border-radius: 0 2px 2px 0;
  }
  .vittorio p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray);
    margin-bottom: 0 !important;
  }
  .vittorio-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 10px !important;
    font-style: normal !important;
  }

  
  /* ATTIVITÀ */
  .attivita { background: var(--charcoal); }
  .attivita h2 { color: white; }
  .attivita .section-label { color: var(--red-light); }
  .attivita-intro {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 60px;
  }
  .categorie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2px;
  }

  .cat-card-flex {
 display: grid;
  grid-template-columns: repeat(2, 300px);
  justify-content: center; /* centra la griglia */
  gap: 20px; /* spazio voluto tra box */
  }


  .cat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px 24px;
    transition: background 0.25s, border-color 0.25s;
    cursor: default;
  }

  .cat-card p {
font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.75;
  }


  .cat-card:hover { background: rgba(200,32,42,0.15); border-color: var(--red); }
  .cat-age {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 8px;
  }
  .cat-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .cat-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
  }
  .attivita-note {
    margin-top: 48px;
    padding: 24px 28px;
    border: 1px solid rgba(200,32,42,0.4);
    border-radius: 2px;
    display: flex; gap: 16px; align-items: flex-start;
    max-width: 700px;
  }
  .attivita-note span { font-size: 24px; }
  .attivita-note p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
  }


  /* ATTIVITÀ */
  .attivitaextra { background: var(--light-gray)}

 .attivitaextra .cat-card {
  
    border: 0;
    padding: 32px 24px;
    transition: background 0.25s, border-color 0.25s;
    cursor: default;
  }

   .attivitaextra .categorie {
    display: grid;
    justify-content: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    align-items: center;
  }


  .attivitaextra .cat-card:hover { background: var(--light-gray); border-color: var(--red); }
  .attivitaextra .cat-age {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 8px;
  }
  .attivitaextra .cat-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }


    .cat-img {
      max-height: 300px;
      max-width: 300px;
      width: 100%;
      overflow: hidden
      ;
    }

    .cat-img img{
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }


  .attivitaextra h2 { color: var(--charcoal); }
  .attivitaextra .section-label { color: var(--red-light); }
  .attivita-intro {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 60px;
  }
  .categorie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2px;
  }
  .cat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px 24px;
    transition: background 0.25s, border-color 0.25s;
    cursor: default;
  }
  .cat-card:hover { background: rgba(200,32,42,0.15); border-color: var(--red); }
  .cat-age {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 8px;
  }
  .cat-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .cat-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
  }
  .attivita-note {
    margin-top: 48px;
    padding: 24px 28px;
    border: 1px solid rgba(200,32,42,0.4);
    border-radius: 2px;
    display: flex; gap: 16px; align-items: flex-start;
    max-width: 700px;
  }
  .attivita-note span { font-size: 24px; }
  .attivita-note p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
  }



  /* TEAM */
  .team { background: var(--white); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 16px;
  }
  .team-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }


  .coach-card {
    border: 1px solid var(--light-gray);
    padding: 32px;
    border-radius: 2px;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
  }
  .coach-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
  }
  .coach-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
  .coach-card:hover::after { transform: scaleX(1); }

.coach-img  {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0 auto 16px;
  }

  .coach-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .coach-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    margin-bottom: 4px;
  }
  .coach-city {
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .coach-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .badge {
    font-size: 11px;
    background: var(--off-white);
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
  }
  .coach-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--red-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .coach-bio {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
  }
  .team-footer {
    margin-top: 48px;
    padding: 36px;
    background: var(--off-white);
    border-radius: 2px;
    text-align: center;
  }
  .team-footer p {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--charcoal);
    line-height: 1.6;
  }
  .team-footer strong { color: var(--red); font-style: normal; }

  .team .logoteam {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
  }

  .team .logoteam img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: filter 0.2s;
  }

  /* DOVE SIAMO */
  .dove { background: var(--off-white); }
  .dove-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .dove-features {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 28px;
  }
  .dove-feat {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px;
    background: white;
    border-radius: 2px;
    border-left: 3px solid var(--red);
  }
  .dove-feat-icon { font-size: 20px; flex-shrink: 0; }
  .dove-feat-text strong {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--charcoal); margin-bottom: 2px;
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .dove-feat-text span { font-size: 13px; color: var(--gray); }
  .map-wrap {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    aspect-ratio: 4/3;
  }
  .map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

  /* CONTATTI */
  .contatti { background: var(--red); text-align: center; padding: 100px 60px; }
  .contatti h2 { color: white; margin-bottom: 16px; }
  .contatti-sub {

    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 48px;
  }
  .contatti-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .btn-white {
    display: inline-flex; align-items: center; gap: 10px;
    background: white;
    color: var(--red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 3px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.04em;
  }
  .btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
  .btn-outline-white {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 3px;
    transition: background 0.2s;
    letter-spacing: 0.04em;
  }
  .btn-outline-white:hover { background: rgba(255,255,255,0.15); }

  /* FOOTER */
  footer {
    background: var(--charcoal);
    padding: 48px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(200,32,42,0.3);
  }
  .footer-left { display: flex; align-items: center; gap: 20px; }
  .footer-left img { height: 52px; filter: invert(1) brightness(0.85); }
  .footer-ski {
    height: 36px;
    opacity: 0.5;
    filter: invert(1);
  }
  .footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

.footer a:link, .footer a:visited {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer a:hover, .footer a:active {
  color: var(--red-light);
}


  .footer-links a:hover { color: var(--red-light); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .logo { left: 20px; }
    nav ul { display: none; }
    section { padding: 70px 24px; }
    nav { padding: 14px 24px; }
    .hero-content { padding: 0 24px 60px; }
    .chi-siamo { grid-template-columns: 1fr; gap: 40px; }
    .team-grid { grid-template-columns: 1fr; }
   .team-header { grid-template-columns: 1fr; }
   .cat-card-flex {grid-template-columns: 1fr; }
      .team .logoteam {}
   .team .logoteam  img{height: 80px;}
    .dove-inner { grid-template-columns: 1fr; }
    footer { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
    .hero-buttons { flex-direction: column; }
    .contatti-buttons { flex-direction: column; align-items: center; }
  }


  /* ── Overlay ─────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;

  /* Animazione apertura */
  animation: fadeOverlay .2s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Box ─────────────────────────────────────────────── */
.popup-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px 44px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);

  animation: slideUp .25s cubic-bezier(.22,.68,0,1.2);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Scrollbar interna (webkit) ──────────────────────── */
.popup-box::-webkit-scrollbar        { width: 5px; }
.popup-box::-webkit-scrollbar-track  { background: transparent; }
.popup-box::-webkit-scrollbar-thumb  { background: #ddd; border-radius: 99px; }

/* ── Titolo ──────────────────────────────────────────── */
.popup-box h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  padding-right: 32px; /* spazio per la X */
  line-height: 1.3;
}

/* ── Contenuto ───────────────────────────────────────── */
.popup-content {
  font-size: .92rem;
  line-height: 1.75;
  color: #444;
}

.popup-content p        { margin: 0 0 12px; }
.popup-content p:last-child { margin-bottom: 0; }
.popup-content a        { color: #2563eb; text-decoration: underline; }
.popup-content ul,
.popup-content ol       { padding-left: 20px; margin: 0 0 12px; }
.popup-content li       { margin-bottom: 4px; }
.popup-content h3       { font-size: 1rem; font-weight: 600; margin: 20px 0 6px; color: #222; }
.popup-content strong   { color: #222; }

/* ── Bottone chiudi ──────────────────────────────────── */
.popup-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f3f3;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.popup-close:hover {
  background: #e8e8e8;
  color: #111;
}

/* ── Responsive tablet ───────────────────────────────── */
@media (max-width: 768px) {
  .popup-box {
    padding: 28px 24px;
    max-height: 88vh;
    border-radius: 10px;
  }

  .popup-box h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
}

/* ── Responsive mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .popup-overlay {
    align-items: flex-end;   /* sale dal basso come un sheet */
    padding: 0;
  }

  .popup-box {
    padding: 24px 20px 32px;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;  /* angoli solo in alto */
    width: 100%;
    max-width: 100%;
    animation: slideSheet .28s cubic-bezier(.22,.68,0,1.2);
  }

  @keyframes slideSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}