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

body {
  font-family: Arial, sans-serif;
  color: #1a2a44;
}

/* ---------------- BACKGROUND PARALLAX ---------------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/Amalfi-tiles.jpg") repeat;
  background-size: 250px auto;  /* ✅ tiles larghe 250px, altezza proporzionata */
  background-attachment: fixed;
  z-index: -1; /* dietro a tutto */
}

/* ---------------- NAVBAR ---------------- */
/* Accessibilità helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

/* ======= TUA NAVBAR (invariata) ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 42, 68, 0.9);
    padding: 10px 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    /* Evita che il menu mobile venga coperto dai contenuti */
    backdrop-filter: saturate(1.1) blur(6px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Agbalumo', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* ======= DESKTOP DI BASE (tuo stile) ======= */
.nav-links {
    font-family: 'Delius Swash Caps', cursive;
    list-style: none;
    display: flex;
    gap: 30px;
}

    .nav-links li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: color 0.3s;
    }

        .nav-links li a:hover,
        .nav-links li a:focus-visible {
            color: #f4b400;
        }

/* ======= HAMBURGER ======= */
.nav-toggle {
    display: none; /* nascosto di default (desktop) */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

/* ======= MOBILE FIRST ======= */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    /* il menu diventa un pannello a tendina */
    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        margin: 0 auto;
        padding: 8px;
        max-width: min(1000px, 94vw);
        background: rgba(26,42,68,0.98);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
        display: none; /* chiuso di default */
        flex-direction: column;
        gap: 6px;
    }

        .nav-links[data-open] {
            display: flex;
        }

        .nav-links li a {
            display: block;
            padding: 12px 14px; /* target touch ≥ 44px */
            border-radius: 8px;
        }

            .nav-links li a:hover,
            .nav-links li a:focus-visible {
                background: rgba(255,255,255,0.08);
                color: #f4b400;
            }

    /* Spazio sicuro per notch iOS quando il menu si apre */
    .navbar {
        padding-top: max(10px, env(safe-area-inset-top));
    }
}

/* ======= GARANZIA DESKTOP (>=901px) ======= */
@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 30px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
}

/* (opzionale) evita che il contenuto finisca sotto la navbar fixed */
body {
    scroll-padding-top: 80px;
}


/* ---------------- HERO HEADER ---------------- */
/* ---- HERO full-bleed, adatta a qualsiasi larghezza ---- */
/* ---- HERO full-bleed, con solo trasparenza ---- */
.hero-header {
    position: relative;
    isolation: isolate;
    width: 100%;
    /* spazio sotto la navbar fixed */
    padding-top: 90px; /* <-- invece di scroll-padding-top */
    min-height: clamp(420px, 70vh, 780px);
    display: grid;
    place-items: center;
    text-align: center;
    background: transparent; /* niente tinta dietro */
}

/* Cap a 1400px su desktop, full-width su mobile */
@media (min-width: 901px) {
    .hero-header {
        max-width: 1400px;
        margin-inline: auto;
    }
}


.hero-overlay {
    position: absolute; /* <-- non "center" */
    inset: 0;
    z-index: 0; /* sopra al body::before (-1), sotto ai contenuti */
}

    /* L’immagine riempie l’area della hero */
    .hero-overlay picture,
    .hero-overlay img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* Niente gradiente: solo trasparenza */
.hero-overlay::after {
    content: none !important;
}

/* Contenuti sopra l’immagine */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    padding: clamp(10px, 3vw, 28px);
    display: grid;
    gap: clamp(10px, 2.5vw, 24px);
    justify-items: center;
}

    /* Logo e testi fluidi (si adattano alla larghezza via vw) */
    .hero-content .logo {
        width: clamp(110px, 18vw, 220px);
        max-width: 1400px;
        display: block;
        filter:
        drop-shadow(0 0 2px rgba(255,255,255))
        drop-shadow(0 0 12px rgba(255,255,255))
        drop-shadow(0 4px 14px rgba(255,255,255));
    }

.hero-title {
    font-family: 'Agbalumo', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw + 1rem, 3.4rem);
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero-subtitle {
    font-family: 'Delius Swash Caps', cursive;
    margin: 0;
    line-height: 1.35;
    font-size: clamp(1rem, 1.2vw + .6rem, 1.5rem);
    opacity: .95;
    max-width: 60ch;
    filter:
    drop-shadow(0 0 2px rgba(255,255,255))
    drop-shadow(0 0 12px rgba(255,255,255))
    drop-shadow(0 4px 14px rgba(255,255,255));
}

/* Mobile: più contrasto e colonne più strette per leggibilità */
@media (max-width: 900px) {
    .hero-header {
        min-height: min(78vh, 720px);
        padding-top: 90px;
    }

    .hero-overlay::after {
        content: none !important;
    }

    .hero-subtitle {
        max-width: 34ch;
      
    }
}

/* Desktop molto largo: un po' più “heroic” */
@media (min-width: 1200px) {
    .hero-header {
        min-height: 78vh;
    }
}

/* Se usi anchor link, non farli finire sotto la navbar fixed */
:target {
    scroll-margin-top: 90px;
}
/* === HERO: colore blu navy + alone bianco === */
/* ++++++++===== Halo SOLO esterno per header =====+++++++++++ */

/* Reset: togli contorni/shadow interni */
.hero-title,
.hero-subtitle {
    -webkit-text-stroke: 0 transparent !important;
    text-shadow: none !important;
    /* Colore del testo */
    color: #0b1d3a; /* navy */
    /* Halo esterno (bianco) + leggero drop scuro per stacco */
    filter:
    drop-shadow(0 0 15px rgb(255, 255, 255)) 
    drop-shadow(0 0 15px rgb(255, 255, 255))
    drop-shadow(0 4px 15px rgb(255, 255, 255));
}

/* Versione desktop: halo un filo più ampio */
@media (min-width: 900px) {
    .hero-title,
    .hero-subtitle {
        filter: 
        drop-shadow(0 0 15px rgba(255,255,255))
        drop-shadow(0 0 15px rgb(255, 255, 255))
        drop-shadow(0 4px 15px rgba(255,255,255));
    }
}


/* (opzionale) performance hint */
.hero-title, .hero-subtitle, .hero-content .logo {
    will-change: filter;
}


/* ---------------- SECTIONS ---------------- */
.section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  text-align: center;
}

/* ✅ Box bianca trasparente dietro i testi */
.content-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 12px;
  max-width: 1400px;  /* ✅ larghezza massima */
  margin: 0 auto;    /* ✅ centrato */
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a2a44;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1a2a44;
}

/* ---------------- ABOUT US ---------------- */
#about {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 1.4rem;
    line-height: 1.9;
    text-align: center;
    color: #001f54;
}

    #about h2 {
        font-family: 'Delius Swash Caps', cursive;
        font-size: 2.2rem;
        margin-bottom: 20px;
        color: #001f54;
    }
/* ----------EXPERIENCES-------- */
#exp {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 3rem;
    line-height: 1.3;
    text-align: center;
    color: #1a2a44;
}

    #exp h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
           line-height: 1.3;
    }
    #exp p {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

/* TOURS PAGE */
#tours {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 1.4rem;
    line-height: 1.9;
    text-align: center;
    color: #1a2a44;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tour-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-card h3 {
  font-size: 1.5rem;
  margin: 1rem;
  color: #1a2a44;
}

    .tour-card p {
        font-size: 1rem;
        margin: 0 1rem 1.5rem;
        color: #1a2a44;
    }

/* ---------------- FOOTER ---------------- */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(26, 42, 68, 0.9);
  color: white;
}

/*----------- TRANSFERS -----------*/
.hero-transfer {
position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px; /* spazio per navbar */
  text-align: center;
  overflow: hidden;
}

#transfer {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 1.4rem;
    line-height: 1.9;
    text-align: center;
    color: #1a2a44;
}

.hero-transcon {
justify-content:left;
}

/*-------- CONTACT US BUTTON ------------- */
.btn-contact {
    display: inline-block;
    padding: 12px 22px;
    background: #001f54; /* blu navy */
    color: #ffffff;
    text-decoration: none;
    font: 600 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    border-radius: 12px; /* angoli smussati */
    transition: transform .06s ease, filter .18s ease, box-shadow .18s ease;
    box-shadow: 0 6px 16px rgba(0, 31, 84, .25);
}

    .btn-contact:hover {
        filter: brightness(1.05);
    }

    .btn-contact:active {
        transform: translateY(1px);
    }

    .btn-contact:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(0, 119, 255, .25), 0 6px 16px rgba(0, 31, 84, .25);
    }
    /*------ CONTACT PAGE --------*/
#contact {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 3rem;
    line-height: 1.3;
    text-align: center;
    color: #1a2a44;
}

    #contact h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    #contact p {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }