/* Palette e impostazioni generali */

:root {

    --blu-scuro: #173b5e;

    --blu: #285f86;

    --azzurro-chiaro: #edf5f8;

    --sfondo: #f7f8fa;

    --testo: #343b40;

    --bianco: #ffffff;

    --ombra: 0 8px 28px rgba(23, 59, 94, 0.08);

    --raggio: 10px;

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    scroll-padding-top: 24px;

}



body {

    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.7;

    color: var(--testo);

    background: var(--sfondo);

}



img {

    max-width: 100%;

    height: auto;

}



/* Intestazione */

.site-header {

    position: relative;

    padding-top: 2rem;

    background: var(--bianco);

    text-align: center;

}



.header-content {

    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

}



.site-header h1 {

    padding: 1rem 60px 0;

    margin-bottom: 1.5rem;

    color: var(--blu-scuro);

    font-size: clamp(1.8rem, 3.5vw, 2.7rem);

    font-weight: 500;

    line-height: 1.25;

    letter-spacing: 0.025em;

}



/* Selettore delle lingue */

.language-selector {

    position: absolute;

    z-index: 2;

    top: 14px;

    right: max(20px, calc((100% - 1100px) / 2));

    display: flex;

    gap: 8px;

    align-items: center;

}



.language-selector a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 32px;

    border: 1px solid transparent;

    border-radius: 6px;

    text-decoration: none;

    font-size: 1.25rem;

    transition: background-color 0.2s, border-color 0.2s;

}



.language-selector a:hover,

.language-selector a:focus-visible {

    background: var(--azzurro-chiaro);

    border-color: #c8dce8;

}



.language-selector a.active {

    background: var(--azzurro-chiaro);

    border-color: #c8dce8;

}



/* Presentazione introduttiva */

.intro-box {

    max-width: 960px;

    margin: 0 auto 1.8rem;

    padding: 2rem 2.5rem;

    background: var(--azzurro-chiaro);

    border: 1px solid #e0edf2;

    border-radius: var(--raggio);

    position: relative;

}



.intro-title {

    margin-bottom: 1.3rem;

   /* color: var(--blu-scuro); */

    color: blue;

    font-size: clamp(1.5rem, 2.8vw, 2.1rem);

    line-height: 1.3;

    font-weight: 500;

    text-align: center;

}



.intro-text {

    max-width: 820px;

    margin: 0.65rem auto;

    /*color: #304b60;*/

    color: black;

    font-size: 1.02rem;

    text-align: left;

}



.intro-text:first-of-type {

    font-size: 1.08rem;

    font-weight: 600;

    text-align: center;

}



/* Menu blu, raccolto e staccato dall'immagine */

.main-navigation {

    margin: 0 auto 2rem;

    padding: 0.85rem 1.2rem;

    background: var(--blu-scuro);

    border-radius: 8px;

    box-shadow: 0 5px 16px rgba(23, 59, 94, 0.16);

}



.main-navigation ul {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    gap: 0.45rem 1.6rem;

    list-style: none;

}



.main-navigation a {

    display: block;

    padding: 0.2rem 0;

    color: var(--bianco);

    font-size: 0.94rem;

    text-decoration: none;

    transition: color 0.2s;

}



.main-navigation a:hover,

.main-navigation a:focus-visible {

    color: #c9e5f5;

    text-decoration: underline;

    text-underline-offset: 4px;

}



/* Immagine principale */

.header-image {

    display: block;

    width: 100%;

    max-height: 580px;

    object-fit: cover;

    object-position: center;

    margin-bottom: 20px;

}



#prima-immagine {

     margin-top: -350px;

}



/* Contenuto principale */

.site-main {

    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    padding: 3.5rem 0;

}



section {

    margin-bottom: 3.5rem;

    scroll-margin-top: 24px;

}



section h2 {

    margin-bottom: 1.4rem;

    color: var(--blu-scuro);

    font-size: clamp(1.55rem, 2.5vw, 2rem);

    line-height: 1.35;

    font-weight: 500;

    text-align: center;

}



section p {

    font-size: 1.03rem;

    line-height: 1.85;

}



section img {

    display: block;

    height: auto;

    border-radius: 8px;

}



/* Presentazione: foto e testo affiancati */

.presentation-section {

    padding: 2.2rem;

    background: var(--bianco);

    border-radius: var(--raggio);

    box-shadow: var(--ombra);

}





.presentation-content {

    display: grid;

    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);

    align-items: center;

    gap: 2.5rem;

}



.presentation-content .profile-image {

    width: 100%;

    max-height: 440px;

    object-fit: cover;

    object-position: center;

    border-radius: 8px;

}



.presentation-text p {

    margin: 0 0 1rem;

    color: #304b60;

    line-height: 1.75;

    font-size: 1.02rem;

    text-align: left;

}



.presentation-text p:last-child {

    margin-bottom: 0;

}





/* Sezioni dei servizi */

.content-section {

    padding: 2.2rem;

    background: var(--bianco);

    border-radius: var(--raggio);

    box-shadow: var(--ombra);

}



.content-section > p {

    max-width: 850px;

    margin: 1.3rem auto 0;

    text-align: center;

}



.property-image {

    width: 100%;

    max-height: 480px;

    margin: 0 auto;

    object-fit: cover;

}



.content-section > .profile-image {

    width: min(100%, 650px);

    max-height: 460px;

    margin: 0 auto;

    object-fit: cover;

}





/* Sezioni dei servizi: foto a sinistra, testo a destra */

.service-content {

    display: grid;

    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    align-items: center;

    gap: 2.5rem;

}



.service-content > img {

    width: 100%;

    height: 340px;

    object-fit: cover;

    object-position: center;

    border-radius: 8px;

}



.service-text p {

    margin: 0;

    color: #304b60;

    font-size: 1.02rem;

    line-height: 1.75;

    text-align: left;

}



.service-content .service-list {

    display: block;

    max-width: none;

    margin: 0;

    padding-left: 1.3rem;

    text-align: left;

}



.service-content .service-list li {

    margin-bottom: 0.75rem;

    padding-left: 0.25rem;

}



/* Layout verticale su tablet e smartphone */

@media (max-width: 768px) {

    .service-content {

        grid-template-columns: minmax(0, 1fr);

        gap: 1.4rem;

    }



    .service-content > img {

        width: min(100%, 480px);

        height: 300px;

        margin: 0 auto;

    }

}



@media (max-width: 480px) {

    .service-content > img {

        height: 230px;

    }

}





/* Elenco dei servizi */

.service-list {

    display: table;

    max-width: 780px;

    margin: 1.5rem auto 0;

    padding-left: 1.4rem;

    text-align: left;

}



.service-list li {

    margin-bottom: 0.55rem;

    padding-left: 0.25rem;

}



.service-list li::marker {

    color: var(--blu);

}



/* Contatti */

.contact-section {

    text-align: center;

}



.contact-section p {

    margin: 0.5rem 0;

}



.contact-section a {

    color: var(--blu);

    text-decoration: none;

    overflow-wrap: anywhere;

}



.contact-section a:hover,

.contact-section a:focus-visible {

    text-decoration: underline;

    text-underline-offset: 3px;

}



/* Piè di pagina */

.site-footer {

    padding: 1.5rem 1rem;

    background: var(--blu-scuro);

    color: var(--bianco);

    text-align: center;

}



.site-footer p {

    margin: 0;

    font-size: 0.9rem;

}



/* Tablet */

@media (max-width: 768px) {

    .site-header {

        padding-top: 3.2rem;

    }



    .site-header h1 {

        padding: 0 0.5rem;

    }



    .header-content,

    .site-main {

        width: calc(100% - 28px);

    }



    .intro-box {

        padding: 1.5rem 1.2rem;

        margin-bottom: 1.3rem;

    }



    .main-navigation {

        margin-bottom: 1.3rem;

        padding: 0.8rem 1rem;

    }



    .main-navigation ul {

        gap: 0.45rem 1rem;

    }



    .main-navigation a {

        font-size: 0.92rem;

    }



    .site-main {

        padding: 2.3rem 0;

    }



    .presentation-section,

    .content-section {

        padding: 1.5rem;

    }



    .presentation-content {

        grid-template-columns: minmax(0, 1fr);

        gap: 1.4rem;

    }



    .presentation-content .profile-image {

        width: min(100%, 480px);

        max-height: 420px;

        margin: 0 auto;

    }



    .presentation-text p {

        text-align: left;

    }



    section {

        margin-bottom: 2.2rem;

    }

}



/* Smartphone */

@media (max-width: 480px) {

    .site-header {

        padding-top: 3.4rem;

    }



    .language-selector {

        top: 10px;

        right: 14px;

    }



    .site-header h1 {

        font-size: 1.7rem;

        margin-bottom: 1.2rem;

    }



    .intro-title {

        font-size: 1.45rem;

    }



    .intro-text,

    .intro-text:first-of-type {

        font-size: 0.98rem;

    }



    .main-navigation ul {

        flex-direction: column;

        gap: 0.25rem;

    }



    .main-navigation a {

        padding: 0.25rem 0;

    }



    .header-image {

        max-height: 320px;

    }



    .site-main {

        width: calc(100% - 24px);

        padding-top: 1.5rem;

    }



    .presentation-section,

    .content-section {

        padding: 1.15rem;

    }



    section h2 {

        margin-bottom: 1rem;

    }

}



/* Rispetta chi preferisce meno animazioni */

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

    html {

        scroll-behavior: auto;

    }



    *,

    *::before,

    *::after {

        transition-duration: 0.01ms !important;

    }

}





/* Testi delle sezioni dei servizi */

.service-text {

    max-width: 620px;

}



.service-text p {

    margin: 0 0 1.2rem;

    color: #304b60;

    font-size: 1.02rem;

    line-height: 1.85;

    text-align: left;

}



.service-text p:last-child {

    margin-bottom: 0;

}



/* Elenco dei servizi */

.service-content .service-list {

    display: block;

    margin: 0;

    padding-left: 1.4rem;

    line-height: 1.8;

    text-align: left;

}



.service-content .service-list li {

    margin-bottom: 0.9rem;

    padding-left: 0.3rem;

}



.service-content .service-list li:last-child {

    margin-bottom: 0;

}



/* Più respiro sui dispositivi mobili */

@media (max-width: 768px) {

    .service-text {

        max-width: none;

    }



    .service-text p {

        line-height: 1.75;

    }

}



/* Collegamento alle informazioni sulla privacy */

.privacy-link {

    cursor: pointer;

    text-decoration: underline;

    text-underline-offset: 3px;

}



/* Sfondo della finestra modale */

.privacy-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 10000;

    padding: 1.25rem;

    background: rgba(15, 30, 45, 0.65);

    align-items: center;

    justify-content: center;

    overflow-y: auto;

}



.privacy-modal.is-open {

    display: flex;

}



/* Contenuto della finestra */

.privacy-modal-content {

    position: relative;

    width: 100%;

    max-width: 620px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 2.5rem;

    background: #fff;

    color: #343b40;

    border-radius: 14px;

    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);

}



.privacy-modal-content h2 {

    margin: 0 2rem 1.5rem 0;

    color: #173b5e;

    font-size: 1.65rem;

    line-height: 1.3;

}



.privacy-modal-content p {

    margin: 0 0 1.1rem;

    color: #304b60;

    font-size: 1rem;

    line-height: 1.8;

}



.privacy-modal-content p:last-of-type {

    margin-bottom: 1.6rem;

}



/* Pulsante X */

.privacy-close {

    position: absolute;

    top: 0.8rem;

    right: 1rem;

    border: 0;

    background: transparent;

    color: #173b5e;

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

}



/* Pulsante Chiudi */

.privacy-close-button {

    display: block;

    margin-left: auto;

    padding: 0.75rem 1.5rem;

    border: 0;

    border-radius: 6px;

    background: #173b5e;

    color: #fff;

    font-size: 1rem;

    cursor: pointer;

}



.privacy-close-button:hover {

    background: #285f86;

}



.privacy-close:focus-visible,

.privacy-close-button:focus-visible,

.privacy-link:focus-visible {

    outline: 3px solid #70a9d0;

    outline-offset: 3px;

}



/* Adattamento agli schermi piccoli */

@media (max-width: 480px) {

    .privacy-modal {

        padding: 0.75rem;

    }



    .privacy-modal-content {

        padding: 2rem 1.25rem 1.25rem;

        max-height: 92vh;

    }



    .privacy-modal-content h2 {

        font-size: 1.4rem;

    }

}



/* Pagina di gestione degli immobili */

.management-page {

    max-width: 1100px;

    margin: 0 auto;

}



.management-page > .content-section {

    margin-bottom: 2.5rem;

}



.management-page .management-packages {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.75rem;

    align-items: stretch;

    margin-top: 1.5rem;

}



.management-package {

    padding: 2rem;

    background: #ffffff;

    border: 1px solid #dce5eb;

    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(23, 59, 94, 0.07);

}



.management-package h2 {

    margin-top: 0;

    margin-bottom: 1rem;

    color: #173b5e;

    font-size: 1.45rem;

    line-height: 1.35;

}



.management-package .package-rate {

    margin: 0.5rem 0 0.25rem;

    color: #285f86;

    font-size: 2.6rem;

    font-weight: 700;

    line-height: 1.2;

}



.management-package .package-rate-note {

    margin: 0 0 1.5rem;

    color: #526879;

    font-size: 0.9rem;

    line-height: 1.6;

}



.management-package > p:not(.package-rate):not(.package-rate-note) {

    color: #304b60;

    line-height: 1.75;

}



.management-package .service-list {

    margin: 1.25rem 0 0;

    padding-left: 1.3rem;

    color: #304b60;

    line-height: 1.75;

    text-align: left;

}



.management-package .service-list li {

    margin-bottom: 0.8rem;

    padding-left: 0.25rem;

}



.management-package .service-list li:last-child {

    margin-bottom: 0;

}



.management-note {

    margin: 1.5rem auto 0;

    max-width: 850px;

    color: #526879;

    font-size: 0.92rem;

    line-height: 1.75;

    text-align: center;

}



.management-page .management-back {

    margin: 2.5rem 0;

    text-align: center;

}



.management-back-link {

    display: inline-block;

    padding: 0.85rem 1.5rem;

    border-radius: 6px;

    background: #173b5e;

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition: background 0.2s ease;

}



.management-back-link:hover {

    background: #285f86;

}



.management-back-link:focus-visible {

    outline: 3px solid #70a9d0;

    outline-offset: 3px;

}



@media (max-width: 760px) {

    .management-page .management-packages {

        grid-template-columns: 1fr;

        gap: 1.25rem;

    }



    .management-package {

        padding: 1.5rem;

    }



    .management-package h2 {

        font-size: 1.3rem;

    }



    .management-package .package-rate {

        font-size: 2.3rem;

    }

}





#contatti.contact-section {

    background: #EAF4F8;

    border: 1px solid #e4dac9;

    border-radius: 14px;

    padding: 18px 24px;

    margin: 28px 0;

    box-shadow: 0 4px 14px rgba(23, 59, 94, 0.05);

}



#contatti.contact-section h2 {

    color: #173b5e;

    text-align: center;

    margin: 0 0 16px;

}



#contatti .contacts-row {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 2fr;

    align-items: center;

    gap: 24px;

}



#contatti .contacts-social {

    display: flex;

    justify-content: flex-start;

    align-items: center;

    gap: 14px;

}



#contatti .contacts-social a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    color: #285f86;

    text-decoration: none;

}



#contatti .contacts-social svg {

    display: block;

    width: 23px;

    height: 23px;

}



#contatti .contacts-details {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

}



#contatti .contacts-details p {

    display: flex;

    align-items: center;

    gap: 9px;

    margin: 0;

}



#contatti .contacts-details svg {

    display: block;

    flex: 0 0 18px;

    width: 18px;

    height: 18px;

    color: #285f86;

}



#contatti .contacts-details a {

    color: #285f86;

    text-decoration: none;

    overflow-wrap: anywhere;

}



#contatti .contacts-details a:hover,

#contatti .contacts-social a:hover {

    color: #173b5e;

    text-decoration: underline;

}



#contatti .contacts-details .legal-link {

    margin-top: 2px;

    font-size: 0.88rem;

}



@media (max-width: 600px) {

    #contatti .contacts-row {

        grid-template-columns: minmax(0, 1fr);

        gap: 16px;

    }

}

/* Nuova intestazione: stile editoriale, leggero e fotografico */
.site-header {
    padding: 0;
    background: #fff;
    text-align: left;
}

.topbar {
    width: min(1240px, calc(100% - 64px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid #e7eef2;
}

.brand-name {
    flex: 0 0 auto;
    color: var(--blu-scuro);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.topbar .main-navigation {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.topbar .main-navigation ul {
    justify-content: center;
    gap: 0.35rem 1.25rem;
}

.topbar .main-navigation a {
    padding: 0.35rem 0;
    color: #405564;
    font-size: 0.88rem;
    white-space: nowrap;
}

.topbar .main-navigation a:hover,
.topbar .main-navigation a:focus-visible {
    color: var(--blu);
}

.topbar .language-selector {
    position: static;
    flex: 0 0 auto;
    gap: 3px;
}

.topbar .language-selector a {
    width: 30px;
    height: 30px;
    font-size: 1.05rem;
}

.hero-layout {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.6rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-copy {
    min-width: 0;
    padding: 0.5rem 0;
}

.hero-eyebrow {
    margin-bottom: 1.1rem;
    color: #64869b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero-copy h1 {
    max-width: 620px;
    padding: 0;
    margin: 0 0 1.1rem;
    color: var(--blu-scuro);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4.3vw, 4.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-copy .intro-title {
    margin: 0 0 1rem;
    color: var(--blu);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.hero-description {
    max-width: 560px;
    color: #526573;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-description p {
    margin: 0 0 0.75rem;
    text-align: left;
}

.hero-services {
    margin-top: 1.4rem;
    color: var(--blu);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.hero-image-wrap {
    position: relative;
    min-width: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: clamp(350px, 39vw, 510px);
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 70px 70px 70px 70px;
    box-shadow: 0 20px 50px rgba(23, 59, 94, 0.13);
}

.hero-image-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 3px;
    background: rgba(255,255,255,0.88);
    color: var(--blu-scuro);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1050px) {
    .topbar {
        width: min(100% - 40px, 900px);
        flex-wrap: wrap;
        padding: 1.1rem 0;
        row-gap: 0.8rem;
    }

    .topbar .main-navigation {
        order: 3;
        flex-basis: 100%;
    }

    .topbar .main-navigation ul {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .topbar .language-selector {
        margin-left: auto;
    }

    .hero-layout {
        width: min(100% - 40px, 900px);
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .topbar {
        width: calc(100% - 36px);
        min-height: 0;
        padding: 1rem 0 0.8rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .topbar .main-navigation ul {
        gap: 0.25rem 1rem;
    }

    .topbar .main-navigation a {
        font-size: 0.84rem;
    }

    .hero-layout {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.7rem 0 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 10vw, 3.4rem);
    }

    .hero-image {
        height: clamp(260px, 70vw, 390px);
        border-top-right-radius: 48px;
    }

    .hero-description {
        font-size: 0.98rem;
    }
}
