:root {
    --blu-primario: #0a2f84;
    --giallo-primario: #f1b80f;
    --azzurro-accento: #1f90de;
    --blu-notte: #061844;
    --sfondo: #f5f9ff;
    --testo: #1f2a44;
    --bianco: #ffffff;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--testo);
    background:
        radial-gradient(circle at 15% 20%, rgba(241, 184, 15, 0.2), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(31, 144, 222, 0.22), transparent 30%),
        linear-gradient(165deg, #f8fbff 0%, #eef5ff 45%, #f6fbff 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.decorazione {
    position: fixed;
    inset: auto auto -120px -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 47, 132, 0.18), rgba(10, 47, 132, 0));
    pointer-events: none;
    z-index: 0;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    padding: 1.1rem 0;
}

.brand {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(10, 47, 132, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 2.2rem;
    box-shadow: 0 10px 24px rgba(6, 24, 68, 0.08);
    width: 100%;
    justify-content: center;
    text-align: center;
}

.brand img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 48px;
    margin-right: 2.5rem;
}

.brand > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}
}

.brand img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 14px;
}

.brand small {
    display: block;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--azzurro-accento);
    font-weight: 700;
    font-size: 0.74rem;
}

.brand strong {
    color: var(--blu-primario);
    font-size: 1.04rem;
}

.contatti {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    font-size: 0.97rem;
    align-items: flex-end;
}
.contatti a, .contatti span {
    color: var(--blu-notte);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    word-break: break-all;
}
.contatti a:hover {
    color: var(--azzurro-accento);
    text-decoration: underline;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 2.6rem 0 2.8rem;
}

h1 {
    font-family: 'Prata', serif;
    color: var(--blu-notte);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.13;
    margin-bottom: 1.1rem;
}

.highlight {
    color: var(--giallo-primario);
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    max-width: 56ch;
    margin-bottom: 1.6rem;
}

.azioni {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.78rem 1.3rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--blu-notte);
    background: linear-gradient(90deg, var(--giallo-primario), #ffca2f);
    box-shadow: 0 10px 20px rgba(241, 184, 15, 0.3);
}

.hero-card {
    background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
    border: 1px solid rgba(10, 47, 132, 0.1);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 18px 40px rgba(6, 24, 68, 0.14);
    animation: ingresso 700ms ease-out both;
}

.hero-card img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
}

.servizio {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(10, 47, 132, 0.12);
    padding: 1.15rem;
    box-shadow: 0 8px 24px rgba(6, 24, 68, 0.07);
    transform: translateY(12px);
    opacity: 0;
    animation: in-salita 500ms ease-out forwards;
}

.servizio:nth-child(2) {
    animation-delay: 120ms;
}

.servizio:nth-child(3) {
    animation-delay: 240ms;
}

.servizio h3 {
    color: var(--blu-primario);
    margin-bottom: 0.42rem;
    font-size: 1.04rem;
}

.servizio p {
    font-size: 0.95rem;
}

footer {
    padding: 1.4rem 0 2rem;
    color: rgba(31, 42, 68, 0.8);
    font-size: 0.92rem;
    margin-top: 2.5rem;
}

.footer-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.footer-flex .contatti {
    align-items: flex-end;
    font-size: 1.05rem;
    gap: 0.2rem;
}
/* Footer: riduci spazio tra phone e email e assicurati che siano stacked senza margini */
.footer-flex .contatti {
    gap: 0.08rem;
}
.footer-flex .contatti a {
    display: block;
    margin: 0;
    padding: 0;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--blu-notte);
    text-decoration: none;
    border-radius: 50%;
    background: rgba(10,47,132,0.08);
    transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
    background: var(--blu-primario);
    color: var(--bianco);
}
.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer: logo più grande e responsive */
footer .logo img {
    width: 220px;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 960px) {
    footer .logo img {
        width: 160px;
    }
}

@keyframes ingresso {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes in-salita {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 1.3rem;
        padding-top: 1.8rem;
    }
    .servizi {
        grid-template-columns: 1fr;
    }
    .brand {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1.1rem 0.5rem;
    }
    .brand img {
        width: 310px;
        height: 310px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .brand > div {
        align-items: center;
        text-align: center;
    }
    .contatti {
        margin-left: 0;
        margin-top: 0.7rem;
        align-items: flex-start;
        font-size: 1.07rem;
    }
    .hero-card img {
        max-height: 180px;
    }
    .hero {
        padding-bottom: 1.2rem;
    }
    .servizio {
        padding: 0.9rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .azioni {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .footer-flex .contatti {
        align-items: flex-start;
    }
}

/* Header / Nav */
.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background: rgba(255,255,255,0.95);
    padding: 0.6rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(10,47,132,0.06);
}
.topbar .logo img { width: 72px; height:72px; border-radius:12px; object-fit:cover; }
.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.main-nav a {
    color: var(--blu-notte);
    text-decoration: none;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
}
.main-nav a:hover { background: rgba(31,144,222,0.08); color: var(--azzurro-accento); }

/* Offerte scorrevoli */
.offers-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.offers-scroll::-webkit-scrollbar { height: 8px; }
.offers-scroll::-webkit-scrollbar-thumb { background: rgba(10,47,132,0.18); border-radius: 999px; }
.offer-card {
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(10,47,132,0.08);
    box-shadow: 0 10px 28px rgba(6,24,68,0.06);
    padding: 0.6rem;
    scroll-snap-align: start;
}
.offer-card img { width:100%; height:160px; object-fit:cover; border-radius:10px; }
.offer-card h4 { margin-top:0.6rem; color:var(--blu-primario); font-size:1rem; }

/* Luoghi suggestivi */
.places-section { margin: 2rem 0; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.place { position: relative; border-radius: 14px; overflow: hidden; min-height: 180px; background: linear-gradient(135deg, rgba(10,47,132,0.06), rgba(31,144,222,0.04)); }
.place img { width:100%; height:100%; object-fit:cover; display:block; }

/* Site nav: sfondo bianco */
.site-nav {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(6,24,68,0.06);
    border-bottom: 1px solid rgba(10,47,132,0.04);
}

/* Top contact: aggiungi social dopo l'email */
.top-contact {
    background: transparent;
    padding: 0.45rem 0;
    font-size: 0.95rem;
}
.top-contact .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.top-contact .right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.top-contact .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.top-contact .separator {
    color: rgba(0,0,0,0.25);
    margin: 0 0.5rem;
}
.top-contact .social {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.top-contact .social a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(241, 184, 15, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}
.top-contact .social a:hover {
    background: rgba(241, 184, 15, 0.28);
    transform: translateY(-1px);
}
.top-contact .social svg { width: 18px; height: 18px; fill: currentColor; }
.top-contact .social .icon-label {
    display: none;
}

/* Carousel caption background giallo logo al 50% */
.carousel-caption {
    background: rgba(241, 184, 15, 0.5); /* --giallo-primario al 50% */
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-family: 'Prata', serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #ffffff;
}
.place .overlay { position: absolute; inset: 0; display:flex; align-items:flex-end; padding:1rem; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45)); color:#fff; }
.place .overlay h3 { margin:0; font-size:1.1rem; }
.place .overlay p { margin:0.4rem 0 0; font-size:0.9rem; opacity:0.95; }

@media (max-width: 960px) {
    .places-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .offers-scroll { gap: 0.7rem; }
    .top-contact .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .top-contact .right {
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
        justify-content: center;
    }
    .top-contact .separator,
    .top-contact .social {
        display: none;
    }
}

/* ===== Nuovi stili per navbar, slider e griglia pacchetti ===== */
.top-contact {
    background: var(--blu-primario);
    color: var(--bianco);
}
.top-contact .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
}
.top-contact a {
    color: var(--bianco);
    text-decoration: none;
}
.top-contact a:hover {
    text-decoration: underline;
}

.site-nav {
    padding: 0.6rem 0;
}
.site-nav .logo img {
    width: 200px;
    height: auto;
}
.site-nav .main-nav { gap: 1rem; }
.site-nav .main-nav a { padding: 0.5rem 0.8rem; }

.hero-banner {
    width: 100%;
    background: none;
    padding: 4rem 0;
    color: var(--blu-notte);
}
.hero-banner .container {
    max-width: 1120px;
}
.hero-banner h1 {
    color: var(--blu-primario);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hero-banner p {
    color: var(--blu-notte);
    max-width: 62ch;
    margin-bottom: 1.8rem;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}
.hero-banner .azioni .btn-primary {
    color: var(--bianco);
    background: var(--blu-primario);
}
.hero-banner .azioni .btn-primary:hover {
    background: #081e55;
}

.servizi {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 3rem 100px;
    background: #f8f9ff;
}

@media (max-width: 960px) {
    .servizi {
        padding: 3rem 1rem;
    }
}

.full-carousel {
    width: 100%;
    margin: 0;
}
.full-carousel .carousel-item {
    height: 520px;
}
.full-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.packages-grid { padding: 3rem 0; }
.package-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(10,47,132,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.package-media {
    width: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow: hidden;
}
.package-media img {
    width: 100%;
    object-fit: cover;
    display: block;
}
.package-body { padding: 1rem; display:flex; flex-direction:column; gap:0.6rem; flex-grow:1; }
.package-excerpt { color: #666; font-size:0.95rem; line-height:1.4; max-height:84px; overflow:hidden; }
.package-footer { display:flex; justify-content:space-between; align-items:center; padding: 0.8rem 1rem; border-top:1px solid rgba(10,47,132,0.03); }

@media (max-width: 768px) {
    .full-carousel .carousel-item { height: 320px; }
    .package-excerpt { max-height:72px; }
}

/* Pulsante WhatsApp fisso */
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.2);
    opacity: 0.98;
}
.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
@media (max-width: 576px) {
    .whatsapp-float {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 50px;
        height: 50px;
    }
}

