﻿

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.np-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.np-main {
    flex: 1 0 auto;
    padding-bottom: 4rem; /* spazio prima del footer */
}

.np-footer {
    flex-shrink: 0;
}

.page-content {
    flex: 1;                /*  layout  */
    padding-bottom: 8rem;   /* spazio sopra il footer */
    padding-top: 24px;      /* spazio sotto la navbar */
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ======================================= */
/*              MAP                        */
/* ======================================= */
#map {
    height: 300px;
    border-radius: 8px;
}


/* ======================================= */
/*              NAVBAR                     */
/* ======================================= */


.np-navbar .nav-link {
    font-size: 1.1rem;  
    font-weight: 500;
}
/*
.navbar-simple {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6ea;
}

.navbar-simple .navbar-brand {
    font-size: 1.6rem;
    font-weight: 600;
    color: #003049 !important;
}

.navbar-simple .nav-link {
    color: #003049 !important;
    font-size: 1.5rem;
}
*/
.modal-footer form {
    display: inline !important;
}

/* ======================================= */
/*              CUSTOM                     */
/* ======================================= */
.nau-name {
    font-weight: 700;
    font-size: 4.0rem;
    letter-spacing: 0.8px;
    color: #0b2d4f; /* blu navy */
}

.nau-accent {
    color: #1e90ff; /* azzurro mare */
}

/* input per codici / sigle / identificativi */
.form-control.nau-input-code-medium,
.form-select.nau-input-code-medium {
    max-width: 220px;
}

.nau-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;  
    border-radius: 0; 
    width: auto;
    height: auto;
    padding: 0;
}

.nau-logo {
    height: 76px; /* navbar desktop */
    width: auto;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 30px; /* mobile */
    }
}


/* ======================================= */
/*              POI CARD                   */
/* ======================================= */

.poi-card {
    transition: 0.2s;
    cursor: default; /* niente click su tutta la card */
}

    .poi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

/* Rating in stile pill blu */
.rating-pill {
    background: var(--bs-primary);
    color: white;
    border-radius: 50px; /* effetto pill */
    font-size: .85rem;
    padding: 4px 10px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    height: 32px; /* stessa altezza del bottone mappa */
    line-height: 22px; /* testo centrato */
}

/* Pulsante mappa con altezza coerente */
.map-btn {
    height: 32px;
    line-height: 1;
    padding-top: 4px;
}

/* Fix immagine card */
.card-img-top {
    object-fit: cover;
}



/* ======================================= */
/*              WIZARD                     */
/* ======================================= */

.wizard-container,
.select-container {
    max-width: 600px; /* ~50% width su desktop */
    margin: 40px auto;
}

@media (max-width: 768px) {
    .wizard-container,
    .select-container {
        max-width: 100%;
        margin: 20px;
    }
}
/*@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
*/

.card-centered {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 25px;
}

.progress {
    height: 20px;
    border-radius: 10px;
}

.btn-wide {
    min-width: 180px; /* larghezza identica */
    text-align: center; /* centra il testo */
}

/* ======================================= */
/*              HERO                       */
/* ======================================= */
/*
.hero-section {
    width: 100vw;
    height: 85vh;
    min-height: 520px;
    background-image: linear-gradient( rgba(10,25,40,0.6), rgba(10,25,40,0.6) ), url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=2400");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(50% - 50vw); 
}*/

.hero-content {
    position: absolute;
    top: 50%;
    left: 45%;  
    transform: translate(-50%, -50%);
    max-width: 720px;
    color: #fff;
}

/* box centrale */
/*.hero-content-box {
    background: rgba(15, 30, 45, 0.65);
    backdrop-filter: blur(4px);
    padding: 3rem 4rem;
    border-radius: 6px;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}*/

/* titolo */
.hero-title {
    /*font-family: 'Playfair Display', serif;*/
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: -1.5px;
}

/* sottotitolo */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* mobile */
@media (max-width: 768px) {
    .hero-content {
        left: 50%;
        text-align: center;
        padding: 0 1.5rem;
    }
}

/* ======================================= */
/*              HERO CAROUSEL               */
/* ======================================= */

.hero-carousel {
    position: relative;
    width: 100vw;
    height: 72vh;
    min-height: 480px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 100%;
    }

    .hero-carousel .carousel-item {
        background-size: cover;
        background-position: center;
    }

    /* overlay gradiente */
    .hero-carousel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(10,25,40,0.75), rgba(10,25,40,0.25) );
        z-index: 1;
    }

/* contenuto */
/*.hero-overlay-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 700px;
}*/

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    opacity: 0.95;
}



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

.np-footer {
    font-family: 'Outfit', sans-serif;
}

/* MAIN */
.np-footer-main {
    background: #0b5f92;
    color: #fff;
    padding: 4rem 0;
}

.np-footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.np-footer-text {
    opacity: 0.9;
    max-width: 420px;
}

/* HEADINGS */
.np-footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* LISTS */
.np-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .np-footer-list li {
        margin-bottom: .5rem;
    }

    .np-footer-list a {
        color: rgba(255,255,255,0.85);
        text-decoration: none;
    }

        .np-footer-list a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* SOCIAL */
.np-social {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .np-social:hover {
        background: rgba(255,255,255,0.3);
    }

/* NEWSLETTER */
.np-newsletter {
    display: flex;
    gap: .5rem;
}

.np-newsletter input {
    border-radius: 30px;
    padding-left: 1rem;
}

.np-newsletter button {
    border-radius: 30px;
    padding: 0 1.5rem;
}

/* BOTTOM BAR */
.np-footer-bottom {
    background: #111;
    color: #bbb;
    font-size: .9rem;
    padding: 1rem 0;
}

.np-footer-bottom a {
    color: #bbb;
    text-decoration: none;
}

.np-footer-bottom a:hover {
    color: #fff;
}

.np-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.np-footer-logo {
    height: 34px; /* regola dimensione logo */
    width: auto;
    filter: brightness(0) invert(1);  /* rende bianco qualsiasi PNG colorato (se ha trasparenza) */
}

.np-footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.6px;
    color: #fff;
    line-height: 1;
}

.np-footer-brand-accent {
    color: #fff; /* tutto bianco come richiesto */
    opacity: .9; /* leggero stacco (opzionale) */
}


/* ======================================= */
/*              CONTACT                    */
/* ======================================= */

.contact-hero {
    background: linear-gradient( rgba(10,25,40,0.75), rgba(10,25,40,0.75) ), url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=2000");
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ======================================= */
/*              AdminDashBoard             */
/* ======================================= */

.action-form {
    margin: 0;
}

.action-grid {
    display: grid;
    grid-template-columns: 180px 180px 180px; /* Email | WhatsApp | Calendario */
    gap: 8px;
    justify-content: end;
}

@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
}

.action-cell {
    display: flex;
    justify-content: flex-end;
}

.action-placeholder {
    min-width: 160px;
    height: 32px;
    visibility: hidden; /* occupa spazio ma non si vede */
}

.action-btn {
    width: 180px; /* NON min-width */
    height: 34px !important; /* override btn-sm */
    padding: 0 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

/* rifiniture opzionali */
.action-btn-email i {
    font-size: 1rem;
}

.action-btn-wa i {
    font-size: 1rem;
}

/* Forza bottone Email blu pieno in AdminDashboard */
.action-btn-email.btn-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.toast-colored {
    min-width: 320px;
    max-width: 480px;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* Calendar */
.fc-event {
    transition: opacity 0.15s ease-in-out;
}

.fc-event:hover {
    opacity: 0.85;
}