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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Menu principale */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
}

.nav-menu li a:hover {
    background: rgba(255, 87, 34, 0.2);
    color: #FF5722;
    transform: translateY(-2px);
}

/* Main content wrapper per spingere il footer in basso */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Header centralizzato */
.header {
    /* position: absolute; */ /* rimuovi l'assoluto che causa la sovrapposizione */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 100;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 120px 20px 40px; /* spazio dall'alto per il menu fisso */
    margin: 0 auto;
}


.logo-container {
    margin-bottom: 20px;
    animation: logoFadeIn 2s ease-out;
    position: relative;
}

.logo {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 87, 34, 0.3));
}

/* Pulsanti ai lati del logo */
.header-buttons {
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 750px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 20px auto 0; /* spazio sotto il logo */
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #CC4125, #E55A3C);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(204, 65, 37, 0.3);
    transition: all 0.3s ease;
    animation: buttonSlideIn 2s ease-out 3s forwards;
    opacity: 0;
    white-space: nowrap;
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 65, 37, 0.5);
    background: linear-gradient(45deg, #B8371F, #D44A2D);
}

/* Hover specifici per ogni pulsante */
.header-btn.left-btn:hover {
    /* Servizi: sfondo scuro per non confondersi con questa pagina nera */
    background: linear-gradient(45deg, #1a1a1a, #333333);
    color: #FF5722;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.5);
}

.header-btn.right-btn:hover {
    /* Prodotti: sfondo bianco per anticipare il sito di destinazione */
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    color: #FF5722;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.header-btn i {
    font-size: 1.1rem;
}

/* Taglines */
.taglines {
    margin-top: 30px;
    margin-bottom: 20px;
    animation: taglinesFadeIn 2.5s ease-out 1s forwards;
    opacity: 0;
}

.tagline-primary {
    margin-bottom: 15px;
    font-size: 2.2rem;
    line-height: 1.2;
    display: block; /* forza il contenitore a essere blocco */
}

/* Font per "Se cerchi..." */
.tagline-text {
    font-family: "Lucida Handwriting", "Lucida Handwriting Italic", "Brush Script MT", cursive;
    font-weight: 400;
    color: #fff;
    font-style: italic;
    display: block; /* manda "Se cerchi..." su una riga propria */
}



/* Font per "c'è" */
.tagline-ce {
    font-family: "Lucida Handwriting", "Lucida Handwriting Italic", "Brush Script MT", cursive;
    margin-right: 0.4em; /* spazio prima di KEY */
}

/* Wordmark KEY più piccola e staccata */
.key-wordmark {
    height: 0.8em;
    width: auto;
    vertical-align: baseline;
    transform: translateY(.05em);
    image-rendering: crisp-edges;           /* standard */
    image-rendering: -webkit-crisp-edges;   /* webkit fallback */
    margin-left: 0.2em;
}

.tagline-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem; /* Ingrandita da 1.4rem */
    font-weight: 300;
    color: #fff; /* Cambiata da #ccc a bianco */
    letter-spacing: 1px;
}

/* Container spacer per spingere il footer */
.content-spacer {
    flex: 1;
    min-height: 100vh;
}

/* Container principale */
.container {
    height: auto;
    min-height: 30vh; /* riduci se serve, ma lascia spazio per separare dal footer */
    display: flex;
    position: relative;
}


/* Footer */
.footer {
    background: #000;
    border-top: 1px solid #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: auto;
    flex-shrink: 0;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3.footer-title {
    color: #FF5722;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.footer-section h3.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FF5722;
}

.footer-question {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.info-item i {
    color: #FF5722;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
    flex-shrink: 0;
}

.info-item div {
    line-height: 1.5;
    font-size: 0.9rem;
    color: #ccc;
}

.info-item strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.4;
    color: #ccc;
}


.footer-links label:hover {
    color: #FF5722;
}

/* Stili per i link nel footer - mantiene aspetto originale */
.footer-links label a {
    color: inherit; /* eredita il colore dal label (#ccc) */
    text-decoration: none; /* rimuove sottolineatura */
    transition: color 0.3s ease;
}

.footer-links label:hover a {
    color: #FF5722; /* rosso al hover */
}

.footer-links input[type="radio"] {
    accent-color: #FF5722;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #E4405F, #833AB4);
}

.social-link.youtube {
    background: #FF0000;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.85rem;
    color: #888;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FF5722;
}

/* Menu hamburger per mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

/*Menu hamburger per mobile*/
.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile */
.nav-menu.mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(0);
    opacity: 1;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Menu hamburger attivo */
    .hamburger {
        display: flex;
    }

    .main-nav {
        background: transparent;
        border-bottom: none;
        padding: 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 15px 30px;
    }

    /* Header mobile - molto più in alto */
    .header {
        top: 25%;
        max-width: 90%;
        padding-top: 140px;
        padding-bottom: 30px;
    }


    .logo {
        max-width: 280px;
    }

    /* Pulsanti mobile - affiancati sotto il logo */
    .header-buttons {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 25px;
        margin-bottom: 60px;
        flex-direction: row;
        gap: 15px;
        padding: 0;
        max-width: 100%;
        justify-content: center;
    }


    .header-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
        flex: 1;
        max-width: 160px;
        justify-content: center;
    }

    /* Content area mobile - altezza ridotta */
    .content-area {
        min-height: calc(100vh - 200px);
        padding-bottom: 100px;
    }


    .tagline-primary {
        font-size: 1.6rem;
        margin-top: 20px;
    }

    .tagline-secondary {
        font-size: 1.3rem;
    }

    .container {
        min-height: 40vh;
        margin-top: 60vh;
    }


    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
    }
}


@media (max-width: 480px) {
    /* Header mobile piccolo - ancora più in alto */
    .header {
        top: 20%;
    }

    .logo {
        max-width: 240px;
    }

    .header-buttons {
        gap: 12px;
        margin-top: 20px;
        margin-bottom: 50px;
    }


    .header-btn {
        font-size: 0.75rem;
        padding: 8px 14px;
        max-width: 140px;
    }

    /* Content area mobile piccolo */
    .content-area {
        min-height: calc(100vh - 180px);
        padding-bottom: 80px;
    }

    .container {
        min-height: 35vh;
        margin-top: 55vh;
    }


    .tagline-primary {
        font-size: 1.4rem;
    }

    .tagline-secondary {
        font-size: 1.1rem;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .info-item {
        justify-content: center;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

/* Font solo per la frase "Se cerchi..." */
.tagline-text, .tagline-ce {
    font-family: "Lucida Handwriting", "Lucida Handwriting Italic", "Brush Script MT", cursive;
}

.tagline-line2 {
    margin-left: 0.7em;
}

.key-wordmark {
    .key-wordmark { height: 0.75em; }
}

/* Manda a capo "c'è" e "KEY" e allinea con leggera indentazione */
.tagline-primary {
    line-height: 1.1;
    display: inline-block;
}

.tagline-ce {
    margin-right: 6px;
}

/* Media query per desktop */
@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .tagline-line2 {
        margin-left: 0.9em; /* ridotto per mobile per evitare che KEY vada a capo */
    }

}

/* Animazioni */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes taglinesFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* Mantieni "c'è KEY" nella stessa riga */
.tagline-line2 {
    display: inline-flex;
    align-items: baseline;
    gap: .35em;
    margin-left: 7em;
    white-space: nowrap;
}

.tagline-ce {
    margin-right: 0;
}

/* Override mobile: niente block */
@media (max-width: 480px) {
    .tagline-key {
        display: inline;
        margin-top: 0;
    }
}
/* Fascia decorativa */
.decorative-banner {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.banner-image {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Più grande */
    width: auto;
    display: block;
    margin: 0 auto; /* Centrata */
    padding: 0;
}

/* Responsive per la fascia decorativa */
@media (max-width: 768px) {
    .banner-image {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .banner-image {
        max-height: 180px;
    }
}
/* Riduco o rimuovo il min-height del container */
.container {
    min-height: auto; /* Invece di un valore fisso come 100vh */
    padding: 0;
}

.spacer {
    height: 0; /* Rimuovo completamente lo spacer */
    /* oppure puoi rimuovere completamente questo elemento */
}

/* Controllo anche il main-wrapper se ha min-height */
.main-wrapper {
    min-height: auto; /* Invece di 100vh se presente */
}