html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 2.4px;
    line-height: normal;
    margin-bottom: 20px;
}

/* Titoli Hero & Sezioni */
.hero h2 {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    font-size: 53px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: none;
    color: #fff;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    /* Usiamo padding e margin per non far finire il titolo sotto il menu sticky */
    padding-top: 130px; 
    margin-top: -50px;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 550;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #000;
    margin-bottom: 0;
}

.grid-item h3 {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 550;
    letter-spacing: 0.1px;
    line-height: normal;
    margin-bottom: 15px;
}

/* FORZATURA INTERLINEA PER RISOLVERE I TESTI SCHIACCIATI SU IPHONE */
p {
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    line-height: 1.6 !important; 
    margin-bottom: 15px;
}

/* Header & Navigazione Desktop */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    text-align: center;
    padding-top: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.brand-container {
    margin-bottom: 15px;
}

.logo-p {
    font-size: 43px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
    color: #000000;
    line-height: 1;
}

.headline-logo {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-top: 5px;
}

.nav-separator {
    width: 100%;
    height: 1px;
    background-color: #e1e1e1;
}

nav {
    padding: 20px 0;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #000;
    margin: 0 20px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #33d399;
}

/* Checkbox menu mobile */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    margin: 5px auto;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Hero & Parallasse Desktop */
.hero {
    height: 550px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 77px 20px;
}

.grid-item {
    text-align: left;
}

.parallax {
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #e9e9e9;
}

/* Pulsanti CTA */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 100px 20px;
}

.btn {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-insta {
    border: 2px solid #ffcc99;
    color: #000;
    background: transparent;
}

.btn-insta:hover { border-color: #33d399; color: #33d399; }

.btn-main {
    background-color: #33d399;
    border: 2px solid #33d399;
    color: #fff;
}

.btn-main:hover { background-color: #000; border-color: #000; color: #fff; }

.btn-email {
    border: 2px solid #000;
    color: #000;
    background: transparent;
}

.btn-email:hover { border-color: #33d399; color: #33d399; }

/* Pulsante Torna Su */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #33d399;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   MEDIA QUERIES - MOBILE & TABLET 
   ========================================================================== */
@media (max-width: 1024px) {

    .hamburger {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 1002;
    }

    nav {
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.99);
        padding: 20px 0;
        border-bottom: 1px solid #e1e1e1;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        z-index: 1001;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    nav a {
        margin: 12px 0;
        padding: 10px 0;
        display: block;
        width: 100%;
        font-size: 16px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 77px;
    }

    h1, h2 { font-size: 32px; }
    .hero h2 { font-size: 38px; }
    .section-title h2 { font-size: 28px; }
    .grid-item h3 { font-size: 28px; }
}

/* RISOLUZIONE DEFINITIVA BUG PARALLASSE PER MOTORE APPLE / MOBILE */
@media screen and (max-width: 1024px) {
    .hero, .parallax {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero, .parallax {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}