.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* PARAGRAFI DESKTOP */
p {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.6 !important;
    margin-bottom: 15px;
}

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

/* Titoli Hero & Sezioni */
.hero h1,
.hero h2 {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: none;
    color: #ffffff;
    text-shadow: none;
    padding: 0 15px;
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    padding-top: 130px;
    margin-top: -50px;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
    font-size: 30px;
    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: 600;
    letter-spacing: 0.1px;
    line-height: normal;
    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;
    text-align: center;
}

.brand-container img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: auto;
}


.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: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e00101;
}

@media (min-width: 1025px) {
    nav a.active {
        color: #c10101;
    }
}

/* Checkbox & Icona Hamburger */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1003;
}

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

/* 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;
}

/* Claim CTA Finale */
.cta-block {
    margin: 90px auto 35px auto;
    padding: 0 20px;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cta-lead {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    color: #111111;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.cta-action {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    color: #111111;
    letter-spacing: -0.01em;
    padding-bottom: 5px;
    border-bottom: 1.5px solid #e00101;
}

/* Pulsanti CTA */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 20px 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: #e00101;
    color: #e00101;
}

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

.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: #e00101;
    color: #e00101;
}

/* 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: #e00101;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Link Footer */
footer a {
    color: #666;
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e00101 !important;
}

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

    header {
        padding: 18px 20px;
    }

    .brand-container {
        margin-bottom: 0;
        padding: 0 40px;
    }

    .brand-container img {
        width: 170px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .logo,
    .logo-p {
        font-size: 30px;
    }

    .nav-separator {
        display: none;
    }

    nav {
        position: static;
        padding: 0;
    }

    /* Posizionamento Hamburger in alto a destra */
    .hamburger {
        display: flex;
        position: absolute;
        top: 24px;
        right: 20px;
        margin: 0;
    }

    /* Area cliccabile sovrapposta all'icona hamburger in alto a destra */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 16px;
        right: 12px;
        width: 42px;
        height: 36px;
        opacity: 0;
        margin: 0;
        cursor: pointer;
        z-index: 1004;
    }

    /* Animazione Hamburger -> X quando aperto */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Menu aperto a bandiera centrale */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.99);
        padding: 25px 0;
        border-top: 1px solid #f0f0f0;
        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: 10px 0;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    nav a:hover,
    nav a:active {
        color: #e00101;
    }

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

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 29px;
    }

    .section-title h2 {
        font-size: 29px;
        padding: 0 15px;
    }

    .grid-item h3 {
        font-size: 26px;
        font-weight: 600;
        padding-left: 7px;
        padding-right: 7px;
    }

    p {
        font-size: 22px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .cta-lead {
        font-size: 1.1rem;
    }

    .cta-action {
        font-size: 1.75rem;
    }
}

/* 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;
    }
}

/* GESTIONE RESPONSIVE DEI TAG BR */
.br-desktop {
    display: none;
}

@media (min-width: 1025px) {
    .br-desktop {
        display: inline;
    }
}