﻿@font-face {
    font-family: 'Poppins'; /* Il nome che userai nel CSS */
    src: url('/fonts/Poppins-Regular.woff2') format('woff2'), 
         url('/fonts/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Applica il font predefinito (Poppins) a tutto il corpo del documento */
body {
    font-family: 'Poppins', sans-serif; /* Font impostato su Poppins */
    background-color: var(--theme-bg-page, #f8f9fa);
    color: var(--theme-text-default, #333);
    line-height: 1.6;
}

/* Palette Stile Travelworld */
:root {
    --theme-primary: #007bff; /* Blu primario (può essere affinato) */
    --theme-primary-darker: #0056b3;
    --theme-accent: #ff6600; /* Arancione/Giallo per CTA */
    --theme-accent-hover: #e65c00;
    --theme-bg-page: #f4f7f9; /* Sfondo pagina molto chiaro */
    --theme-bg-container: #ffffff;
    --theme-text-dark: #212529;
    --theme-text-light: #ffffff;
    --theme-text-muted: #6c757d;
    --theme-text-link: var(--theme-primary);
    --theme-border: #dee2e6;
    --theme-primary-rgb: 0, 123, 255;
}

/* Header */
.site-header {
    background-color: var(--theme-bg-container);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--theme-border);
    /*box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/
    /*border-radius: 1rem;*/
}

    .site-header .navbar-brand {
        color: var(--theme-primary) !important;
        font-weight: 700;
        font-size: 1.8rem;
    }

        .site-header .navbar-brand .fa-globe-europe {
            margin-right: 8px;
        }

    .site-header .nav-link {
        color: var(--theme-text-dark) !important;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

        .site-header .nav-link:hover, .site-header .nav-link.active {
            color: var(--theme-primary) !important;
            border-bottom: 2px solid var(--theme-primary);
        }

    .site-header .utility-nav .nav-link {
        font-size: 0.85rem;
        font-weight: 400;
        border-bottom: none;
    }

        .site-header .utility-nav .nav-link:hover {
            color: var(--theme-primary) !important;
        }

    .site-header .btn-login {
        background-color: var(--theme-accent);
        color: var(--theme-text-light) !important;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-weight: 600;
    }

        .site-header .btn-login:hover {
            background-color: var(--theme-accent-hover);
        }


/* Hero Section & Search Module */
.hero-search-wrapper {
    padding: 3rem 0;
    background-color: #e9f2fe; /* Sfondo leggermente blu per la sezione di ricerca */
}

.hero-mission-wrapper {
    padding: 3rem 0;
    background-color: #e9f2fe; /* Sfondo leggermente blu */
    border: solid 1px #e9f2fe;
}

.hero-section-wrapper {
    padding: 3rem 0;
}


.search-module {
    background-color: var(--theme-bg-container);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .search-module .nav-tabs {
        border-bottom: 2px solid var(--theme-border);
        margin-bottom: 1.5rem;
    }

        .search-module .nav-tabs .nav-link {
            color: var(--theme-text-muted);
            font-weight: 600;
            padding: 0.75rem 1.25rem;
            border: none;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
        }

            .search-module .nav-tabs .nav-link.active {
                color: var(--theme-primary);
                border-bottom-color: var(--theme-primary);
                background-color: transparent;
            }

    .search-module .form-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--theme-text-muted);
        margin-bottom: 0.3rem;
    }

    .search-module .form-control, .search-module .form-select {
        border-radius: 4px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border: 1px solid #ced4da;
    }

        .search-module .form-control:focus, .search-module .form-select:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb),0.2);
        }

    .search-module .btn-search-cta {
        background-color: var(--theme-accent);
        border-color: var(--theme-accent);
        color: var(--theme-text-light);
        font-weight: 700;
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
        border-radius: 25px;
        width: 100%;
    }

        .search-module .btn-search-cta:hover {
            background-color: var(--theme-accent-hover);
            border-color: var(--theme-accent-hover);
        }

    .search-module .form-check-label {
        font-size: 0.9rem;
    }


/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.card-destination, .card-offer {
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: var(--theme-bg-container);
}

    .card-destination:hover, .card-offer:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .card-destination .card-img-top, .card-offer .card-img-top {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .card-destination .card-body, .card-offer .card-body {
        padding: 1.25rem;
    }

    .card-destination .card-title, .card-offer .card-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--theme-text-dark);
        margin-bottom: 0.5rem;
    }

    .card-destination .card-text, .card-offer .card-text {
        font-size: 0.9rem;
        color: var(--theme-text-muted);
        margin-bottom: 1rem;
    }

    .card-offer .price {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--theme-accent);
    }

    .card-offer .price-from {
        font-size: 0.8rem;
        color: var(--theme-text-muted);
    }

.btn-view-offer {
    background-color: var(--theme-primary);
    color: var(--theme-text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

    .btn-view-offer:hover {
        background-color: var(--theme-primary-darker);
        color: var(--theme-text-light);
    }


/* Bottoni personalizzati */
/* Stili personalizzati per il pulsante per replicare l'effetto di Tailwind */
.btn-main-custom {
    display: inline-block;
    background-color: #0d6efd; /* Colore primario di Bootstrap */
    color: #fff;
    font-weight: 600; /* Semi-bold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 equivalente */
    border-radius: 0.5rem; /* rounded-lg equivalente */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-decoration: none; /* Rimuove la sottolineatura del link */
}

    .btn-main-custom:hover {
        background-color: #0b5ed7; /* Colore più scuro al passaggio del mouse */
        transform: scale(1.05); /* Effetto hover:scale-105 */
        color: #fff; /* Assicura che il testo rimanga bianco */
    }

    .btn-main-custom:active,
    .btn-main-custom:focus {
        background-color: #0a58ca; /* Colore al click/focus */
        transform: scale(1.05);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Focus ring di Bootstrap */
    }

/* Stili per la sezione Hero per mantenere una larghezza massima simile a max-w-4xl */
.hero-section-content {
    max-width: 800px; /* Circa 4xl in Tailwind (16 * 56 = 896px), ho scelto 800px come valore tipico */
    margin-left: auto;
    margin-right: auto;
}

/* Classi responsive per il titolo per emulare la progressione di Tailwind */
.hero-title {
    font-size: 2.5rem; /* text-4xl */
    line-height: 1.2; /* leading-tight */
    font-weight: 800; /* font-extrabold */
}

@media (min-width: 576px) { /* sm */
    .hero-title {
        font-size: 3rem;
    }
    /* sm:text-5xl */
}

@media (min-width: 768px) { /* md */
    .hero-title {
        font-size: 4rem;
    }
    /* md:text-6xl */
}

@media (min-width: 992px) { /* lg */
    .hero-title {
        font-size: 5rem;
    }
    /* lg:text-7xl */
}

/* Classi responsive per il sottotitolo */
.hero-subtitle {
    font-size: 1.125rem; /* text-lg */
}

@media (min-width: 576px) { /* sm */
    .hero-subtitle {
        font-size: 1.25rem;
    }
    /* sm:text-xl */
}

@media (min-width: 768px) { /* md */
    .hero-subtitle {
        font-size: 1.5rem;
    }
    /* md:text-2xl */
}

.content-section {
    /* Sezione di contenuto con altezza minima e centratura */
    min-height: 100vh; /* Altezza minima pari all'altezza della viewport */
    display: flex; /* Utilizza flexbox per centrare il contenuto */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    background-color: #F3F4F6; /* Sfondo grigio chiaro per la sezione */
}


/* Footer */
.site-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 3rem 0 1.5rem 0;
    font-size: 0.9rem;
}

    .site-footer h5 {
        color: var(--theme-text-light);
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .site-footer .list-unstyled li a {
        color: #adb5bd;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .site-footer .list-unstyled li a:hover {
            color: var(--theme-text-light);
            text-decoration: underline;
        }

    .site-footer .social-icons a {
        color: #adb5bd;
        font-size: 1.5rem;
        margin-right: 1rem;
        transition: color 0.2s ease;
    }

        .site-footer .social-icons a:hover {
            color: var(--theme-accent);
        }

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Utility classes */
.form-row-condensed > .col, .form-row-condensed > [class*="col-"] {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.form-row-condensed {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

@media (max-width: 767.98px) {
    .search-module .row > div[class*="col-"] {
        margin-bottom: 1rem;
    }

    .search-module .btn-search-cta {
        margin-top: 1rem;
    }

    .guests-popover {
        min-width: calc(100% - 1rem); /* Adjust for smaller screens */
        left: 0.5rem;
        right: 0.5rem;
    }
}

/*Utility*/
.text-justify {
    text-align: justify
}

.rounded-section {
    background-color: var(--theme-bg-container); /* Sfondo bianco o simile al container */
    border-radius: 1rem; /* Bordi più arrotondati */
    padding: 3rem; /* Spaziatura interna */
    margin-top: 3rem; /* Margine superiore per separare dalle sezioni precedenti */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Ombra leggera */
}

/*Spinner*/
/* Stili per l'overlay di caricamento */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Sfondo semi-trasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Assicura che sia sopra il form */
    border-radius: 8px; /* Per abbinare i bordi del container */
}

    .loading-overlay.d-none {
        display: none !important; /* Forza la scomparsa */
    }

    /*Stile for registrazion form*/

/* Stile per il container principale del modulo di registrazione */
.registration-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px; /* Larghezza massima adattata per più campi */
}
/* Stile per le label dei form */
.form-label {
    font-weight: 500;
}
/* Stile per le intestazioni delle sezioni */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

    .section-header i {
        font-size: 1.25rem;
    }
/* Stile per il pulsante personalizzato (come nel modulo di login) */
.btn-main-custom {
    background-color: #007bff; /* Esempio di colore primario */
    color: white;
    transition: background-color 0.3s ease;
}

    .btn-main-custom:hover {
        background-color: #0056b3; /* Colore più scuro all'hover */
        color: white;
    }
/* Stili per lo spinner di caricamento */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    border-radius: 10px; /* Per abbinarsi al card */
}



