﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: transparent;
}

#copertina {
    position: fixed;
    top: 80px; 
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    z-index: -1;
}

.slides,
.slide {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.principale {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide:nth-child(1) img {
    object-position: center 41%;
}

.slide:nth-child(2) img {
    object-position: center 65%;
}

.slide:nth-child(3) img {
    object-position: center 55%;
}

.slide:nth-child(4) img {
    object-position: center 50%;
}

main {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    background: transparent;
}

#secStoria,
#secServizi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 5px;
    max-width: 1250px;
    margin: 100px auto;
    background-color: #f3ece4;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    padding: 40px;
    min-height: 400px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    color: #2e2e2e;
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: #a88c6d;
    border-radius: 2px;
}

.section-img1 {
    width: 50%;
    max-width: 300px;
    border-radius: 10px;
    display: block;
    margin-left: 120px;
    margin-right: auto;
}

.section-img2 {
    width: 50%;
    max-width: 300px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    width: 45%;
    padding-left: 80px;
    padding-right: 80px;
}

.section-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.button {
    display: inline-block;
    background-color: #8b5a2b;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
}

.button:hover {
    background-color: #6d4621;
}

#secInfo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    grid-gap: 40px;
    padding: 60px;
    margin: 0 auto 45px auto;
    max-width: 1250px;
    background-color: #f3ece4;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

#secInfo h2 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #8b5a2b;
    text-transform: uppercase;
 }

#secInfo p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #4a4a4a;
}

#secInfo a {
    color: inherit;
    text-decoration: none;
}

#secInfo a:visited {
    color: inherit;
}

#secInfo a:hover {
    text-decoration: none;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 15px;
    grid-row-gap: 25px;
    width: 100%;
    align-items: start;
}

.info-item h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #8b5a2b;
    text-transform: uppercase;
}

.info-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.social-icons {
    display: flex;
    justify-content: left;
    grid-gap: 18px;
    margin-top: 20px;
}

.social-icons a {
     width: 45px;
     height: 45px;
     border-radius: 50%;
     background-color: #f3ece4;
     color: #3e2f24;
     display: flex;
     align-items: center;
     justify-content: center;
     text-decoration: none;
     font-size: 20px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.08);
     transition: 0.3s ease;
}

.social-icons a:hover {
     background-color: #b08968;
     color: white;
     transform: translateY(-3px);
}

.map-item iframe {
    width: 100%;
    min-height: 350px;
    border: none;
    border-radius: 15px;
    display: block;
}



@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }

    .slide {
        transition: none;
    }

    #secStoria,
    #secServizi,
    #secInfo,
    .social-icons a,
    .button {
        transition: none;
    }

    #secStoria:hover,
    #secServizi:hover,
    #secInfo:hover,
    .social-icons a:hover {
        transform: none;
    }
}

a:focus-visible,
.social-icons a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid #5a3a1b;
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 850px) {

    #container,
    #main {
        background-color: #e8dfd3;
    }

    body {
        margin: 0;
    }

    main {
        margin-top: 0;
        padding-top: 0;
        position: relative;
        z-index: auto;
    }

    #copertina {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 55vh;
        z-index: auto;
        overflow: hidden;
        margin-top: 80px;
        margin-bottom: 0;
        background-color: #e8dfd3;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .slides {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    #secStoria,
    #secServizi,
    #secInfo {
        position: relative;
        z-index: auto;
        padding: 25px 18px;
        grid-gap: 16px;
        margin-top: 22px;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        background-color: #f5efe6;
        border-radius: 0;
    }

    #secStoria {
        margin-top: 0px;
    }

    .section-img1,
    .section-img2 {
        width: 34%;
        max-width: 200px;
        margin-left: 0;
        margin-right: 0;
        align-self: center;
    }

    .section-img1 {
        margin-right: 10px;
    }

    .section-img2 {
        margin-left: 10px;
    }

    .section-text {
        width: 66%;
        padding-left: 16px;
        padding-right: 0;
        min-width: 0;
        background-color: transparent !important;
    }

    .section-header h1 {
        font-family: "Playfair Display", serif;
        font-size: 20px;
        color: #2e2e2e;
        margin-bottom: 20px;
    }

    #secServizi .section-header h1 {
        margin-top: 20px;
    }

    .section-line {
        width: 60px;
        height: 2px;
        background-color: #a88c6d;
        border-radius: 2px;
    }

    .section-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .button {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    #secInfo {
        margin-bottom: 0;
        scroll-margin-top: 70px;
    }

    .mini-footer {
        margin-top: 0;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        grid-gap: 18px;
        align-items: center;
        background-color: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .info-col {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
        background-color: #e8dfd3;
        padding: 18px 16px;
        border-radius: 18px;
    }

    .info-item,
    .map-item {
        width: 100%;
        text-align: center;
    }

    #secInfo .info-item h2 {
        font-size: 1.0rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        letter-spacing: 0.5px;
    }

    .info-item p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0 0 18px 0;
    }

    .info-item a {
        font-size: 0.95rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .social-icons {
        justify-content: center;
        margin-top: 6px;
    }

    .map-item iframe {
        width: 100%;
        height: 220px;
        display: block;
    }
}

