
:root {
    --primary: #26363E;
    --primary-dark: #19272E;
    --accent: #A58B63;
    --background: #FFFFFF;
    --background-alt: #F3F1ED;
    --text: #555555;
    --header-height: 85px;
    --max-width: 1280px;
}

/* RESET */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #FFFFFF;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: auto;
    max-width: 220px;
    max-height: 60px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navigation a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.3s;
}

.navigation a::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.navigation a:hover {
    color: var(--accent);
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}

/* MENU MOBILE */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* HERO */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 420px;
    margin-top: var(--header-height);

    background:
        linear-gradient(
            rgba(0,0,0,0.30),
            rgba(0,0,0,0.48)
        ),
        url("../images/home.jpg") center center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    padding: 30px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 300;
    margin-bottom: 35px;
}

/* FRECCIA SCORRIMENTO */

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: translateX(-50%) rotate(45deg);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0.5;
        bottom: 35px;
    }

    50% {
        opacity: 1;
        bottom: 25px;
    }
}

/* SEZIONI */

.section {
    padding: 100px 30px;
}

.section-alternate {
    background: var(--background-alt);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.section-image {
    overflow: hidden;
}

.section-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.section-image:hover img {
    transform: scale(1.035);
}

.section-reverse .section-image {
    order: 2;
}

.section-reverse .section-content {
    order: 1;
}

.section-label {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.section-content h2,
.contacts h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary);
}

.section-content p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 20px;
}

/* PULSANTI */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-light {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-light:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* CONTATTI */

.contacts {
    padding: 90px 30px;
    background: linear-gradient(
        to right,
        var(--primary-dark),
        var(--primary)
    );
    color: #FFFFFF;
    text-align: center;
}

.contacts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contacts h2 {
    color: #FFFFFF;
}

.contacts .section-label {
    color: #C7AF88;
}

.contacts p {
    color: #DDDDDD;
}

.phone-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.phone-list a {
    font-size: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.phone-list a:hover {
    color: #C7AF88;
}

.phone-list span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C7AF88;
    margin-bottom: 8px;
}

/* FOOTER */

.footer {
    padding: 25px 30px;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #BBBBBB;
    font-size: 12px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* TABLET */

@media (max-width: 1024px) {

    .section {
        padding: 70px 30px;
    }

    .section-container {
        gap: 40px;
    }

    .navigation {
        gap: 22px;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    :root {
        --header-height: 70px;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo img {
        max-width: 180px;
        max-height: 48px;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 15px 25px 25px;
        background: #FFFFFF;
        box-shadow: 0 10px 15px rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #EEEEEE;
    }

    .navigation a::after {
        display: none;
    }

    .navigation a.active {
        color: var(--accent);
    }

    .hero-content {
        padding: 25px;
    }

    .section {
        padding: 50px 20px;
    }

    .section-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-reverse .section-image,
    .section-reverse .section-content {
        order: initial;
    }

    .section-content h2 {
        margin-bottom: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .contacts {
        padding: 60px 20px;
    }

    .phone-list {
        flex-direction: column;
        gap: 25px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

}
