/* --------------------------------------------------
   VARIABILI GLOBALI
-------------------------------------------------- */
:root {
    --font-base: "Trebuchet MS", "Open Sans", sans-serif;
    --color-primary: #333333;
    --color-secondary: #666666;
    --color-dark: #333;
    --color-light: #fff;
    --color-beige: #F1EFE3;

    --max-width: 1200px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-dark);
    background: var(--color-light);
    line-height: 1.7;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --------------------------------------------------
   NAVBAR A DUE FASCE
-------------------------------------------------- */
.nav-topbar {
    width: 100%;
    height: 20px;
    background: var(--color-beige);
}

.navbar {
    width: 100%;
    height: 80px;
    background: #ffffff;
    position: relative;
    z-index: 20;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO */
.nav-logo {
    height: 70px;
    position: relative;
    top: 0;
    left: 0;
    padding: 0 10px;
    z-index: 30;
    display: block;
}

.nav-left {
    display: flex;
    align-items: center;
    height: 100%;
}

/* MOBILE LOGO */
@media (max-width: 768px) {
    .nav-logo {
        height: 78px;
        top: 0;
    }
}

/* --------------------------------------------------
   MENU CENTRALE
-------------------------------------------------- */
.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.nav-menu a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 4px;
    transition: 0.25s ease;
}

.nav-menu a:hover {
    color: #333;
    border-bottom: 2px solid var(--color-beige);
}

.nav-menu a.active {
    color: #000;
    border-bottom: 3px solid var(--color-beige);
}

/* --------------------------------------------------
   DESTRA (INFO + TELEFONO + HAMBURGER)
-------------------------------------------------- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-info-phone {
    font-size: 0.95rem;
    color: #333;
}

/* HAMBURGER */
.hamburger {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 99999;
}

.hamburger img {
    width: 32px;
    height: 32px;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
    position: relative;
    height: 60vh;
    background: url("../images/top-image.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-light);
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 600;
	line-height: normal;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-top: var(--space-xs);
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}



/* --------------------------------------------------
   FEATURES
-------------------------------------------------- */
.features {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-sm);
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    width: 320px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    text-align: center;
}

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

.feature h3 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: #333;
}

.feature p {
    padding: 0 1rem 1.4rem;
    color: #555;
    font-size: 0.95rem;
}

/* --------------------------------------------------
   RECENSIONI
-------------------------------------------------- */
.reviews-slider {
    width: 100%;
    background: #ffffff;
    padding: 40px 0;
    overflow: hidden;
    margin-top: 40px;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    animation: slideReviews 36s linear infinite;
}

.review-card {
    min-width: 300px;
    max-width: 300px;
    background: transparent;
    text-align: center;
}

.review-logo {
    height: 46px;
    margin-bottom: 2px;
}

.review-stars {
    font-size: 1.2rem;
    color: #e0b000;
    margin-bottom: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.25;
    margin-bottom: 2px;
}

.review-author {
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
}

@keyframes slideReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------
   SERVIZI
-------------------------------------------------- */
.services {
    background: url("../images/bg.jpg") center/cover no-repeat;
    padding: 70px 20px;
    color: #fff;
    text-align: center;
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.services-subtitle {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 55px;
    line-height: 1.8;
    opacity: 0.95;
}

.services-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px 30px;
}

.services-grid li {
    text-align: center;
}

/* ICONA — stile minimal sabbia */
.icon {
    width: 72px;   /* aumentato del 50% */
    height: 72px;  /* aumentato del 50% */
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* niente cerchio */
}

.icon svg {
    width: 51px !important;   /* +50% */
    height: 51px !important;  /* +50% */
    min-width: 51px;
    min-height: 51px;
    max-width: 51px;
    max-height: 51px;
    stroke: #d1bfa7;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;

}

/* TITOLI E TESTI */
.services-grid h4 {
    font-size: 1.05rem;
    margin: 6px 0;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.services-grid p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 240px;
    margin: 0 auto;
    opacity: 0.95;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 600px) {
    .icon {
        width: 60px;   /* +50% */
        height: 60px;  /* +50% */
    }

    .icon svg {
        width: 42px !important;   /* +50% */
        height: 42px !important;  /* +50% */
        min-width: 42px;
        min-height: 42px;
        max-width: 42px;
        max-height: 42px;
    }
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    width: 100%;
    background: var(--color-beige);
    padding: var(--space-lg) var(--space-sm);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-left {
    width: 40%;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: #666;
}

.footer-right {
    width: 55%;
    text-align: right;
}

.footer-menu a,
.footer-copy,
.footer-right a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --------------------------------------------------
   WHATSAPP PULSE
-------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 62px;
    height: 62px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
    animation: pulse 8s infinite ease-in-out;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
}

@keyframes pulse {
    0%, 92%, 100% { transform: scale(1); }
    95% { transform: scale(1.12); }
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {

    .navbar {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .nav-inner {
        justify-content: space-between !important;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-info-phone {
        display: block;
        font-size: 0.95rem;
        color: #333;
    }

    .hamburger {
        display: block;
        margin-left: 6px;
    }

    .reviews-track {
        animation-duration: 22s;
    }

    .review-card {
        min-width: 260px;
        max-width: 260px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

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

/* --------------------------------------------------
   MENU MOBILE FULLSCREEN
-------------------------------------------------- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(241, 239, 227, 0.97);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.mobile-menu-inner a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: 0.25s ease;
}

.mobile-menu-inner a:hover {
    opacity: 0.6;
}

.mobile-close {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}


/* --------------------------------------------------
   SLIDE A DISSOLVENZA + SALITA + MICRO-ZOOM
-------------------------------------------------- */

.info-fade {
    width: 100%;
    background: var(--color-beige);
    padding: 56px 0; /* fascia alta stile storico */
    text-align: center;
    overflow: hidden;
    position: relative;
}

.fade-track {
    position: relative;
    height: 70px; /* spazio per movimento */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fade-track span {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    font-size: 1.75rem;

    color: #333;
    line-height: 1.35;
    letter-spacing: -0.5px;
    animation: fadeSmooth 20s infinite;
}

/* Ritardi */
.fade-track span:nth-child(1) { animation-delay: 0s; }
.fade-track span:nth-child(2) { animation-delay: 5s; }
.fade-track span:nth-child(3) { animation-delay: 10s; }
.fade-track span:nth-child(4) { animation-delay: 15s; }


/* Fade + salita leggerissima, super smooth */
@keyframes fadeSmooth {
    0%   { opacity: 0; transform: translateY(10px); }
    8%   { opacity: 0.55; transform: translateY(4px); }
    14%  { opacity: 1; transform: translateY(0); }
    30%  { opacity: 1; transform: translateY(0); }

    /* USCITA MOLTO PIÙ VELOCE E PIÙ CHIARA */
    36%  { opacity: 0.35; transform: translateY(-3px); }
    40%  { opacity: 0; transform: translateY(-6px); }

    100% { opacity: 0; transform: translateY(-6px); }
}
/* Mobile */
@media (max-width: 768px) {
    .info-fade {
        padding: 42px 0;
    }

    .fade-track {
        height: 60px;
    }

    .fade-track span {
        font-size: 1.35rem;
        letter-spacing: -0.4px; /* ancora più compatto su mobile */
    }
}
