/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: #2f3029;
    background: #f5f2eb;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    flex-direction: column;

    color: white;

    background:
        linear-gradient(
            rgba(25, 30, 22, 0.48),
            rgba(25, 30, 22, 0.58)
        ),
        url("sfondo.jpg") center center / cover no-repeat;
}


/* =====================================================
   NAVBAR
===================================================== */

nav {
    width: 100%;

    padding: 22px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(20, 25, 18, 0.30);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    position: relative;
    z-index: 10;
}

.logo {
    font-family: "Playfair Display", serif;

    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 1px;

    color: white;
}

nav ul {
    display: flex;
    align-items: center;

    gap: 28px;

    list-style: none;
}

nav ul li a {
    position: relative;

    color: white;

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #d6b978;

    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #e3c985;
}

nav ul li a:hover::after {
    width: 100%;
}


/* =====================================================
   LINGUE
===================================================== */

.language {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language button {
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.language img {
    width: 27px;
    height: auto;

    border-radius: 3px;

    transition: transform 0.25s ease;
}

.language button:hover img {
    transform: scale(1.15);
}

.language button:focus-visible {
    outline: 2px solid #d6b978;
    outline-offset: 4px;

    border-radius: 4px;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {
    flex: 1;

    max-width: 1000px;

    margin: auto;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero-content h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 1.05;

    font-weight: 400;

    margin-bottom: 22px;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 650px;

    color: #f4f1e9;

    font-size: clamp(1rem, 2vw, 1.3rem);
}


/* =====================================================
   SEZIONI GENERALI
===================================================== */

.section {
    padding: 100px 7%;

    background: #f7f4ed;
}

.section:nth-of-type(even) {
    background: #efeadf;
}

.section h2 {
    font-family: "Playfair Display", serif;

    margin-bottom: 55px;

    color: #39412f;

    text-align: center;

    font-size: clamp(2.2rem, 4vw, 3.5rem);

    font-weight: 400;
}

.section h2::after {
    content: "";

    display: block;

    width: 65px;
    height: 2px;

    margin: 18px auto 0;

    background: #b49352;
}


/* =====================================================
   CAMERE
===================================================== */

.camere-section {
    background:
        linear-gradient(
            135deg,
            #f7f4ed 0%,
            #efeadf 100%
        );
}

.camere-content {
    max-width: 950px;

    margin: 0 auto;
    padding: 50px 60px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(150, 130, 80, 0.16);

    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(55, 55, 35, 0.08);

    text-align: center;
}


/* =====================================================
   INTRO CAMERE
===================================================== */

.camere-intro {
    max-width: 760px;

    margin: 0 auto 35px;

    color: #5f6158;

    font-size: 1.1rem;

    line-height: 1.8;
}


/* =====================================================
   TITOLI CAMERE
===================================================== */

.camere-content h3 {
    margin-bottom: 22px;

    font-family: "Playfair Display", serif;

    color: #4b523d;

    font-size: 1.6rem;

    font-weight: 500;
}


/* =====================================================
   ELENCO COMFORT
===================================================== */

.comfort-list {
    max-width: 650px;

    margin: 0 auto 50px;
    padding: 0;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px 35px;

    list-style: none;

    text-align: left;
}

.comfort-list li {
    position: relative;

    padding: 12px 15px 12px 38px;

    color: #5f6158;

    background: rgba(247, 244, 237, 0.75);

    border: 1px solid rgba(150, 130, 80, 0.08);

    border-radius: 8px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.comfort-list li::before {
    content: "✓";

    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #a08449;

    font-size: 1rem;

    font-weight: 600;
}

.comfort-list li:hover {
    transform: translateX(4px);

    background: rgba(234, 226, 207, 0.8);
}


/* =====================================================
   OSPITALITÀ SOSTENIBILE
===================================================== */

.sostenibilita {
    max-width: 800px;

    margin: 10px auto 0;
    padding: 35px 40px;

    background: rgba(222, 220, 202, 0.42);

    border-left: 3px solid #b49352;

    border-radius: 4px 14px 14px 4px;

    text-align: center;
}

.sostenibilita h3 {
    margin-bottom: 8px;

    color: #39412f;

    font-size: 1.65rem;
}

.sostenibilita h4 {
    margin-bottom: 18px;

    font-family: "Playfair Display", serif;

    color: #8c7039;

    font-size: 1.1rem;

    font-weight: 500;
}

.sostenibilita p {
    color: #5f6158;

    line-height: 1.8;
}


/* =====================================================
   CARDS SERVIZI
===================================================== */

.cards {
    max-width: 1300px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.service-card {
    display: block;

    height: 100%;

    color: inherit;
}

.service-card .card {
    height: 100%;

    padding: 38px 30px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(150, 130, 80, 0.16);

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(55, 55, 35, 0.08);

    cursor: pointer;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.service-card .card h3 {
    margin-bottom: 0;

    font-family: "Playfair Display", serif;

    color: #4b523d;

    font-size: 1.55rem;

    font-weight: 500;
}

.service-card:hover .card {
    transform: translateY(-8px);

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 25px 50px rgba(55, 55, 35, 0.16);
}


/* =====================================================
   LINK "SCOPRI DI PIÙ"
===================================================== */

.service-link {
    display: inline-block;

    margin-top: 22px;

    color: #8c7039;

    font-size: 0.9rem;

    font-weight: 600;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.service-card:hover .service-link {
    color: #b49352;

    transform: translateX(5px);
}


/* =====================================================
   GALLERIA
===================================================== */

.gallery {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.photo-block {
    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #ddd;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);
}

.photo-block img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}

.photo-block:hover img {
    transform: scale(1.08);

    filter: brightness(1.08);
}


/* =====================================================
   MAPPA
===================================================== */

.map-section {
    background: #e9e4d8 !important;
}

.map-container {
    max-width: 1200px;

    margin: auto;

    overflow: hidden;

    border: 5px solid rgba(255, 255, 255, 0.75);

    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;

    width: 100%;

    border: 0;
}


/* =====================================================
   CONTATTI
===================================================== */

#contatti {
    text-align: center;
}

#contatti p {
    margin: 8px 0;

    color: #5f6158;
}

#contatti a {
    color: #8c7039;

    font-weight: 500;

    transition: color 0.3s ease;
}

#contatti a:hover {
    color: #b49352;
}


/* =====================================================
   BANNER FINANZIAMENTO
===================================================== */

.finanziamento-banner {
    width: 100%;
    max-width: 650px;

    margin: 40px auto 25px;
    padding: 0 15px;

    text-align: center;
}

.finanziamento-banner a {
    display: block;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.finanziamento-banner img {
    display: block;

    width: 100%;
    max-width: 550px;

    height: auto;

    margin: 0 auto;

    border-radius: 3px;
}

.finanziamento-banner a:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}


/* =====================================================
   PAGINE SERVIZI
===================================================== */

.service-page {
    min-height: 100vh;

    padding: 40px 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(25, 30, 22, 0.55),
            rgba(25, 30, 22, 0.65)
        ),
        url("sfondo.jpg") center center / cover no-repeat;
}

.service-page-content {
    width: 100%;
    max-width: 850px;

    padding: 70px;

    color: white;

    text-align: center;

    background: rgba(35, 40, 30, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 22px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   TITOLI PAGINE SERVIZI
===================================================== */

.service-page-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(3rem, 7vw, 5rem);

    font-weight: 400;

    line-height: 1.1;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35);
}

.service-page-content h2 {
    margin-bottom: 22px;

    font-family: "Playfair Display", serif;

    color: #e3d5b5;

    font-size: clamp(1.5rem, 3vw, 2.1rem);

    font-weight: 400;

    line-height: 1.3;
}


/* =====================================================
   DIVISORE PAGINE SERVIZI
===================================================== */

.service-divider {
    width: 65px;
    height: 2px;

    margin: 25px auto 35px;

    background: #d6b978;
}


/* =====================================================
   DESCRIZIONE PAGINE SERVIZI
===================================================== */

.service-page-content > p {
    max-width: 700px;

    margin: 0 auto 45px;

    color: #f4f1e9;

    font-size: clamp(1rem, 2vw, 1.2rem);

    line-height: 1.9;
}


/* =====================================================
   BOX INFORMATIVO
===================================================== */

.service-info {
    max-width: 720px;

    margin: 45px auto;

    padding: 30px 35px;

    background: rgba(255, 255, 255, 0.07);

    border-left: 3px solid #b49352;

    border-radius: 4px 12px 12px 4px;
}

.service-info h2 {
    margin-bottom: 20px;

    font-size: 1.5rem;
}

.service-info p {
    margin-bottom: 18px;

    color: #f4f1e9;
}

.service-info p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   PULSANTE TORNA AI SERVIZI
===================================================== */

.back-button {
    display: inline-block;

    padding: 13px 28px;

    color: white;

    background: rgba(214, 185, 120, 0.12);

    border: 1px solid rgba(214, 185, 120, 0.7);

    border-radius: 30px;

    font-size: 0.95rem;

    font-weight: 500;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.back-button:hover {
    background: rgba(214, 185, 120, 0.25);

    border-color: #d6b978;

    transform: translateY(-3px);
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 30px 20px;

    background: #262b22;

    color: #cfcfc5;

    text-align: center;

    font-size: 0.9rem;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   NAVBAR TABLET
===================================================== */

@media (max-width: 900px) {

    nav {
        flex-direction: column;

        gap: 18px;

        padding: 20px;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    /* HERO */

    .hero-content {
        padding: 30px 20px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }


    /* SEZIONI */

    .section {
        padding: 70px 20px;
    }

    .section h2 {
        margin-bottom: 40px;
    }


    /* CAMERE */

    .camere-content {
        padding: 35px 20px;

        border-radius: 16px;
    }

    .camere-intro {
        font-size: 1rem;

        line-height: 1.75;
    }

    .camere-content h3 {
        font-size: 1.45rem;
    }

    .comfort-list {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 35px;
    }

    .comfort-list li {
        padding: 11px 12px 11px 36px;

        font-size: 0.95rem;
    }

    .sostenibilita {
        padding: 28px 20px;

        text-align: left;
    }

    .sostenibilita h3,
    .sostenibilita h4 {
        text-align: center;
    }

    .sostenibilita p {
        font-size: 0.95rem;

        line-height: 1.75;

        text-align: left;
    }


    /* CARDS */

    .cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .service-link {
        margin-top: 18px;

        font-size: 0.88rem;
    }


    /* GALLERIA */

    .gallery {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* MAPPA */

    .map-container {
        border-width: 3px;

        border-radius: 14px;
    }

    .map-container iframe {
        height: 350px;
    }


    /* NAVBAR */

    .logo {
        font-size: 1.35rem;

        text-align: center;
    }

    nav ul {
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .language img {
        width: 25px;
    }


    /* FINANZIAMENTO */

    .finanziamento-banner {
        max-width: 90%;

        margin: 30px auto 20px;

        padding: 0;
    }

    .finanziamento-banner img {
        max-width: 100%;
    }


    /* PAGINE SERVIZI */

    .service-page {
        min-height: 100vh;

        padding: 20px;
    }

    .service-page-content {
        padding: 50px 25px;

        border-radius: 16px;
    }

    .service-page-content h1 {
        font-size: 3rem;
    }

    .service-page-content h2 {
        font-size: 1.45rem;
    }

    .service-page-content > p {
        margin-bottom: 35px;

        font-size: 1rem;

        line-height: 1.75;
    }

    .service-info {
        margin: 35px auto;

        padding: 25px 20px;

        text-align: left;
    }

    .service-info h2 {
        font-size: 1.35rem;

        text-align: center;
    }

    .back-button {
        padding: 12px 23px;

        font-size: 0.9rem;
    }
}


/* =====================================================
   ACCESSIBILITÀ / RIDUZIONE ANIMAZIONI
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}