/* =========================== GLOBAL STYLES =========================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Importante per prevenire scroll laterale */
}

body {
    background-color: #F6F0ED !important;
    overflow-x: hidden; /* Sicurezza extra */
}

#page-wrapper {
    position: relative; /* Fondamentale per posizionare i figli assoluti */
    overflow-x: hidden; /* Impedisce lo scroll orizzontale causato dai blob */
    width: 100%; /* Assicura che occupi tutta la larghezza */
}

h3 {
    color: #445E93 !important;
}

.poppins {
    font-family: "Poppins", serif;
    font-style: normal;
}

.outfit-bold {
    font-family: "Outfit", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.bg-azzurro {
    background-color: #445E93;
}

/* Assicura che le immagini siano responsive */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Assicura che gli iframe (mappa) siano responsive */
iframe {
    max-width: 100%;
    display: block; /* Rimuove spazio extra sotto l'iframe */
}

/* =========================== BUTTON STYLES =========================== */
.bottone {
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #FF6F61;
    z-index: 1;
    background: #F6F0ED;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.1);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.1);
    transition: all 250ms;
    overflow: hidden;
}

.bottone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #FF6F61;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.1);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.1);
    transition: all 250ms;
}

.bottone:hover {
    color: #F6F0ED;
}

.bottone:hover::before {
    width: 100%;
}

.bottone-destination {
    padding: 8px 24px;
    border: unset;
    border-radius: 30px;
    color: #F6F0ED;
    z-index: 1;
    border: 2px solid #F6F0ED;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 250ms;
    overflow: hidden;
}

.bottone-destination::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #FF6F61;
    z-index: -1;
    transition: all 250ms;
}

.bottone-destination:hover {
    color: #F6F0ED;
    border: 2px solid #FF6F61;
}

.bottone-destination:hover::before {
    width: 100%;
}

.bottone-cta {
    padding: 8px 24px;
    border: unset;
    border-radius: 20px;
    color: #F6F0ED;
    z-index: 1;
    background: #FF6F61;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    transition: all 250ms;
    overflow: hidden;
}

.bottone-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #F6F0ED;
    z-index: -1;
    transition: all 250ms;
}

.bottone-cta:hover {
    color: #FF6F61;
}

.bottone-cta:hover::before {
    width: 100%;
}

.bottone-more {
    padding: 8px 24px;
    border: unset;
    border-radius: 25px;
    color: #FF6F61;
    z-index: 1;
    background: #F6F0ED;
    border: 2px solid #FF6F61;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    transition: all 250ms;
    overflow: hidden;
}

.bottone-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #FF6F61;
    z-index: -1;
    transition: all 250ms;
}

.bottone-more:hover {
    color: #F6F0ED;
}

.bottone-more:hover::before {
    width: 100%;
}

/* =========================== MAIN SECTION STYLES =========================== */
.main-section {
    background-image: url(../img/plane.jpg);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
    /* Ensure main-section is below the overlay */
}

.main-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(73, 47, 26, 0.2);
    /* Overlay scuro */
    z-index: 1;
    pointer-events: none;
    /* Allow interaction with content below */
}

.main-section>* {
    position: relative;
    z-index: 2;
    /* Ensure content is above the overlay */
}

/* =========================== CARD STYLES =========================== */
.carta {
    position: relative;
    border-radius: 20px !important;
    background: #F6F0ED !important;
    /* border: none !important; */
    cursor: default;
    /* box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27); */
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.carta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #445E93;
    border-radius: inherit;
    height: 100%;
    width: 100%;
    opacity: 0;
    /* transform: skew(-24deg); */
    clip-path: circle(0% at 50% 50%);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.carta:hover::before {
    opacity: 1;
    transform: skew(0deg);
    clip-path: circle(140.9% at 0 0);
}

.carta:hover .contenuto-carta,
.carta:hover .contenuto-carta i {
    color: #ffffff;
}

.contenuto-carta {
    background: transparent;
    color: #000000;
    z-index: 1;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.contenuto-carta i {
    color: #445E93;
}

/* =========================== DESTINATIONS CARD STYLES =========================== */

.destinations {
    height: 400px;
}

.italy {
    background-image: url(../img/italy.jpg);
    background-size: cover;
}

.bali {
    background-image: url(../img/bali.jpg);
    background-size: cover;
}

.paris {
    background-image: url(../img/paris.jpg);
    background-position: center;
    background-size: cover;
}

.tokyo {
    background-image: url(../img/tokyo.jpg);
    background-position: center;
    background-size: cover;
}

.destination-card {
    position: relative;
    width: 100%;
    /* Adatta alla larghezza della colonna */
    height: 300px;
    border-radius: 20px !important;
    cursor: default;
    overflow: hidden;
}

.destination-card .top-card {
    height: 86%;
    transition: height 0.8s ease;
}

.destination-card .bottom-card {
    border-radius: 40px 40px 20px 20px;
    height: 14%;
    transition: height 0.8s ease, border-radius 0.8s ease;
    background-color: #445E93;
}

.destination-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.destination-card:hover .bottom-card {
    height: 75%;
    border-radius: 20px;
    transition: height 0.8s ease, border-radius 0.8s ease;
}


/* =========================== REVIEW SECTION STYLES =========================== */

/* Stile per le card della review section con effetto hover */
.review-card {
  position: relative;
  border-radius: 20px !important;
  background: transparent !important;
  border: 2px solid #ddd; /* Bordo leggero */
  cursor: default;
  color: #000; /* Testo nero */
  text-align: left;
}

.avatar-review {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd; /* Bordo leggero */
    z-index: 1; /* Assicura che l'immagine sia sopra l'effetto hover */
}

/* =========================== STATISTIC CARD STYLES =========================== */

.cta-bg {
    background-color: #445E93;
}

.cta-bg h3 {
    color: #F6F0ED !important;
}

.stat-card {
    position: relative;
    border-radius: 20px !important;
    background: transparent !important;
    cursor: default;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    color: #F6F0ED;
    text-align: center;
    padding: 20px;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    border-radius: 18px;
    height: 100%;
    width: 100%;
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover::before {
    opacity: 1;
    clip-path: circle(140.9% at 0 0);
}

.stat-card h4 {
    color: #F6F0ED;
    font-size: 3rem;
    z-index: 1;
    position: relative;
    transition: color 0.5s ease;
}

.stat-card p {
    color: #F6F0ED;
    z-index: 1;
    position: relative;
    transition: color 0.5s ease;
}

.stat-card:hover h4,
.stat-card:hover p {
    color: #445E93;
}

/* =========================== CONTACT SECTION =========================== */

/* Stile personalizzato per lo sfondo della colonna info */
.info-column-bg {
    background-color: #445E93; /* Colore di sfondo personalizzato */
    border-radius: 20px; /* Standard Bootstrap border-radius */
}

.map-placeholder {
    background-color: #e9ecef; /* Grigio chiaro Bootstrap */
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d; /* Grigio testo Bootstrap */
    border-radius: 20px;
}

/* Stile per le icone allineate */
.icon-align {
    min-width: 1.5em;
    text-align: center;
}

/* Aggiunge l'asterisco ai label richiesti */
label.required::after {
    content: " *";
    color: var(--bs-danger); /* Colore rosso Bootstrap per l'asterisco */
}

.form-check-label {
    font-size: .9rem;
}

/* Stili personalizzati per gli input field */
.coolinput label.text {
    font-size: 0.8rem;
    color: #445E93;
    font-weight: 700;
    position: relative;
    top: 0.75rem;
    margin: 0 0 0 7px;
    padding: 0 5px;
    background: #F6F0ED;
    width: fit-content;
}

.coolinput input.input,
.coolinput select.input,
.coolinput textarea.input {
    padding: 11px 10px;
    font-size: 0.95rem;
    border: 2px #445E93 solid;
    border-radius: 5px;
    background: #F6F0ED;
}

.coolinput input.input:focus,
.coolinput select.input:focus,
.coolinput textarea.input:focus {
    outline: none;
    box-shadow: none;
}

/* =========================== CUSTOM CHECKBOX STYLES =========================== */
/* From Uiverse.io by mrhyddenn */
.check {
  cursor: pointer;
  position: relative;
  margin: auto;
  width: 18px;
  height: 18px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.check:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #c8ccd4;
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: #445e93;
}

#cbx:checked + .check svg {
  stroke: #445e93;
}

#cbx:checked + .check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

#cbx:checked + .check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

/* =========================== FOOTER =========================== */

/* Stile per un background molto scuro, simile all'immagine */
.footer-bg {
  background-color: #1a202c; /* Esempio di colore scuro */
}

/* Stile per i link del footer per un colore più tenue e hover */
.footer-links a {
  color: rgba(255, 255, 255, 0.7); /* Bianco con opacità per testo più tenue */
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 1); /* Bianco pieno su hover */
}

/* =========================== RESPONSIVE ADJUSTMENTS =========================== */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .section-title.fs-1 { /* Riduci dimensione titoli principali */
        font-size: 2.75rem !important;
    }

    /* Riduci padding verticale generale delle sezioni */
    section.pt-5, section.pb-5, section.py-5,
    h3.py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .cta-bg h3.pb-5 { /* Riduci padding specifico se necessario */
        padding-bottom: 3.5rem !important;
    }

    /* --- NUOVA REGOLA --- */
    /* Sovrascrivi w-75 per i container principali su tablet */
    /* Fai occupare più larghezza, es. 90% */
    .container.w-75 {
        width: 90% !important;
    }
    /* --- FINE NUOVA REGOLA --- */
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .section-title.fs-1 {
        font-size: 2.25rem !important;
    }

    /* Riduci ulteriormente padding verticale */
    section.pt-5, section.pb-5, section.py-5,
    h3.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .cta-bg h3.pb-5 {
        padding-bottom: 3rem !important;
    }

    /* Hero Section Mobile */
    .main-section img.w-75 { /* Selettore specifico per logo hero */
        width: 85% !important; /* Riduci larghezza logo */
    }
    .main-section p.fs-4 {
        font-size: 1.1rem !important; /* Riduci font sottotitolo */
    }
    .main-section .bottone { /* Riduci dimensione bottone hero */
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Destinations Card Height on Mobile */
    .destinations {
        height: auto; /* Permetti alla riga di crescere */
    }
    .destination-card {
        height: 350px; /* Altezza fissa per le card stackate, se desiderato */
    }

    /* Stat Card Mobile */
    .stat-card h4 {
        font-size: 2.5rem !important; /* Riduci font numero statistiche */
    }
    .stat-card p.fs-5 {
        font-size: 1rem !important; /* Riduci font descrizione statistiche */
    }

    /* Footer Mobile */
    .footer-logo {
        width: 60% !important; /* Riduci logo footer */
        margin-left: auto; /* Centra se text-align non basta */
        margin-right: auto;
    }
    .footer-social-icons { /* Centra icone social */
        display: flex;
        justify-content: center;
    }
    .footer-links ul { /* Rimuovi padding se il testo è centrato */
        padding-left: 0;
    }

    /* --- NUOVA REGOLA --- */
    /* Sovrascrivi w-75 per i container principali su telefoni landscape */
    /* Fai occupare ancora più larghezza, es. 95% */
    .container.w-75 {
        width: 90% !important;
    }
    /* --- FINE NUOVA REGOLA --- */
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .section-title.fs-1 {
        font-size: 1.8rem !important; /* Titoli ancora più piccoli */
    }

    /* Riduci padding verticale minimo */
    section.pt-5, section.pb-5, section.py-5,
    h3.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .cta-bg h3.pb-5 {
        padding-bottom: 2.5rem !important;
    }

    /* Potresti voler ridurre ulteriormente font/padding specifici qui */
    .coolinput label.text { /* Rendi label form più piccole */
        font-size: 0.75rem;
        top: 0.6rem;
    }
    .coolinput input.input, .coolinput select.input, .coolinput textarea.input {
        font-size: 0.9rem;
        padding: 9px 8px;
    }

    /* --- NUOVA REGOLA --- */
    /* Sovrascrivi w-75 per i container principali su telefoni portrait */
    /* Lascia che .container gestisca la larghezza (quasi 100% con padding) */
    .container.w-75 {
        width: 90% !important; /* Rimuove l'effetto di w-75 */
        /* Il padding laterale sarà gestito dalla classe .container di Bootstrap */
    }
    /* --- FINE NUOVA REGOLA --- */
}