/* =========================================================
   IL BRONTOLONE — GALLERIA
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');


:root {
    --blu: #15516d;
    --viola: #4c2554;
    --giallo: #eab341;
    --salvia: #a1c0b8;

    --sfondo: #f8f6f1;
    --bianco: #ffffff;
    --testo: #303030;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--sfondo);

    color: var(--testo);

    font-family:
        "Open Sans",
        Arial,
        sans-serif;

    overflow-x: hidden;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 58px;

    padding: 0 28px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background:
        rgba(248,246,241,0.95);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-bottom:
        1px solid
        rgba(21,81,109,0.07);

    z-index: 1000;
}


.home-link {
    color: var(--blu);

    text-decoration: none;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    transition: opacity 0.25s ease;
}


.home-link:hover {
    opacity: 0.5;
}


.logo-top {
    display: block;

    width: 52px;
    height: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-galleria {
    position: relative;

    width: 100%;
    min-height: 620px;

    padding:
        120px
        25px
        80px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.hero-contenuto {
    position: relative;

    z-index: 5;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}


.sopratitolo {
    margin:
        0 0
        15px;

    color: var(--blu);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 4px;
}


.hero-galleria h1 {
    margin:
        0 0
        30px;

    color: var(--blu);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            65px,
            9vw,
            115px
        );

    font-weight: 400;

    line-height: 0.9;
}


.hero-frase {
    margin:
        0 auto
        20px;

    color: var(--viola);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size:
        clamp(
            26px,
            3vw,
            38px
        );

    font-style: italic;

    line-height: 1.3;
}


.hero-testo {
    max-width: 570px;

    margin: 0 auto;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FORME HERO
   ========================================================= */

.forma {
    position: absolute;

    pointer-events: none;

    z-index: 0;
}


.forma-viola {
    width: 430px;
    height: 240px;

    top: -125px;
    left: -130px;

    background: var(--viola);

    border-radius:
        58% 42% 54% 46%
        /
        48% 55% 45% 52%;

    transform: rotate(-12deg);
}


.forma-gialla {
    width: 330px;
    height: 450px;

    right: -230px;
    top: 145px;

    background: var(--giallo);

    border-radius:
        55% 45% 40% 60%
        /
        45% 60% 40% 55%;
}


.forma-salvia {
    width: 330px;
    height: 210px;

    bottom: -125px;
    left: -160px;

    background: var(--salvia);

    border-radius: 50%;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-galleria {
    width:
        min(
            900px,
            calc(100% - 50px)
        );

    margin: 0 auto;

    padding:
        100px
        0
        70px;

    text-align: center;
}


.numero {
    margin:
        0 0
        14px;

    color: var(--salvia);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
}


.intro-galleria h2 {
    margin:
        0 0
        30px;

    color: var(--blu);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            65px
        );

    font-weight: 400;

    line-height: 1;
}


.intro-galleria > p:last-child {
    max-width: 620px;

    margin: 0 auto;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   GALLERIA DINAMICA
   ========================================================= */

.galleria-masonry {
    width:
        min(
            1250px,
            calc(100% - 50px)
        );

    margin: 0 auto;

    padding:
        15px
        0
        110px;

    column-count: 3;

    column-gap: 24px;
}


/* =========================================================
   SINGOLA FOTO
   ========================================================= */

.galleria-item {
    display: inline-block;

    width: 100%;

    margin:
        0
        0
        24px;

    padding: 10px;

    vertical-align: top;

    break-inside: avoid;

    -webkit-column-break-inside: avoid;

    page-break-inside: avoid;

    overflow: hidden;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,0.055);
}


/* =========================================================
   FOTO NEL FORMATO ORIGINALE

   IMPORTANTE:
   NON impostiamo un'altezza fissa.
   ========================================================= */

.galleria-item img {
    display: block;

    width: 100%;

    height: auto;

    margin: 0;

    transition:
        transform 0.5s ease;
}


.galleria-item:hover img {
    transform:
        scale(1.015);
}


/* =========================================================
   CORNICI COLORATE
   ========================================================= */

.cornice-blu {
    background:
        rgba(21,81,109,0.14);
}


.cornice-viola {
    background:
        rgba(76,37,84,0.13);
}


.cornice-gialla {
    background:
        rgba(234,179,65,0.20);
}


.cornice-salvia {
    background:
        rgba(161,192,184,0.22);
}


/* =========================================================
   RIQUADRI TESTUALI
   ========================================================= */

.galleria-messaggio {
    display: inline-block;

    width: 100%;

    margin:
        0
        0
        24px;

    padding:
        55px
        35px;

    break-inside: avoid;

    -webkit-column-break-inside: avoid;

    page-break-inside: avoid;

    vertical-align: top;
}


.galleria-messaggio span {
    display: block;

    margin-bottom: 15px;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 3px;
}


.galleria-messaggio p {
    margin: 0;

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size:
        clamp(
            31px,
            3vw,
            44px
        );

    font-style: italic;

    line-height: 1.05;
}


/* VIOLA */

.messaggio-viola {
    background: var(--viola);

    color: var(--bianco);
}


.messaggio-viola span {
    color: var(--giallo);
}


/* BLU */

.messaggio-blu {
    background: var(--blu);

    color: var(--bianco);
}


.messaggio-blu span {
    color: var(--salvia);
}


/* =========================================================
   SOCIAL
   ========================================================= */

.galleria-social {
    width: 100%;

    padding:
        85px
        25px;

    background: var(--viola);

    color: var(--bianco);

    text-align: center;
}


.galleria-social-label {
    margin:
        0 0
        12px;

    color: var(--giallo);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}


.galleria-social h2 {
    margin:
        0 0
        20px;

    color: var(--bianco);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size:
        clamp(
            38px,
            5vw,
            58px
        );

    font-weight: 400;

    font-style: italic;
}


.galleria-social-testo {
    max-width: 550px;

    margin:
        0 auto
        30px;

    color:
        rgba(255,255,255,0.75);

    font-size: 12px;

    line-height: 1.8;
}


.galleria-social-link {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}


.social-btn {
    display: inline-block;

    padding:
        13px
        24px;

    border:
        1px solid
        rgba(255,255,255,0.70);

    color: var(--bianco);

    text-decoration: none;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.social-btn:hover {
    background: var(--giallo);

    border-color: var(--giallo);

    color: var(--viola);

    transform:
        translateY(-3px);
}


/* =========================================================
   CHIUSURA
   ========================================================= */

.chiusura-galleria {
    position: relative;

    min-height: 420px;

    padding:
        80px
        25px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--bianco);

    overflow: hidden;
}


.chiusura-forma {
    position: absolute;

    width: 460px;
    height: 300px;

    right: -280px;
    bottom: -180px;

    background: var(--salvia);

    border-radius: 50%;
}


.chiusura-contenuto {
    position: relative;

    z-index: 5;

    text-align: center;
}


.chiusura-contenuto p {
    margin:
        0 0
        10px;

    color: var(--salvia);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}


.chiusura-contenuto h2 {
    margin:
        0 0
        35px;

    color: var(--viola);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size:
        clamp(
            38px,
            5vw,
            60px
        );

    font-weight: 400;

    font-style: italic;

    line-height: 1.05;
}


.chiusura-contenuto a {
    display: inline-block;

    padding:
        13px
        25px;

    border:
        1px solid
        var(--blu);

    color: var(--blu);

    text-decoration: none;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.7px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.chiusura-contenuto a:hover {
    background: var(--blu);

    color: var(--bianco);

    transform:
        translateY(-3px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-brontolone {
    width: 100%;

    background: var(--blu);

    color: var(--bianco);
}


.footer-info {
    width:
        min(
            1280px,
            100%
        );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.25fr
        1fr
        1fr
        1.25fr;
}


.footer-box {
    min-height: 190px;

    padding:
        38px
        32px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    color: var(--bianco);

    text-decoration: none;

    border-right:
        1px solid
        rgba(255,255,255,0.16);
}


.footer-box:last-child {
    border-right: none;
}


.footer-label {
    margin-bottom: 16px;

    color: var(--salvia);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 3px;
}


.footer-title {
    color: var(--bianco);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size: 23px;

    line-height: 1.2;

    text-decoration: none;
}


.footer-small {
    margin-top: 5px;

    color:
        rgba(255,255,255,0.72);

    font-size: 11px;

    text-decoration: none;
}


.footer-action {
    margin-top: 25px;

    color:
        rgba(255,255,255,0.65);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.5px;
}


/* =========================================================
   TELEFONI
   ========================================================= */

.footer-phone {
    display: block;

    width: fit-content;

    text-decoration: none;
}


/* =========================================================
   CHIAMACI
   ========================================================= */

.footer-call,
.footer-call:visited,
.footer-call:active {
    display: inline-block;

    width: fit-content;

    color:
        rgba(255,255,255,0.65);

    text-decoration: none;
}


.footer-call:hover {
    color: var(--giallo);

    text-decoration: none;
}


/* =========================================================
   RIPOSO
   ========================================================= */

.footer-riposo {
    margin-top: 14px;

    color: var(--giallo);

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   PRENOTAZIONE
   ========================================================= */

.footer-prenota {
    background: var(--giallo);

    color: var(--viola);
}


.footer-prenota .footer-label,
.footer-prenota .footer-action {
    color: var(--viola);
}


.footer-prenota-title {
    color: var(--viola);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size: 36px;

    font-style: italic;
}


/* =========================================================
   FASCIA VIOLA
   ========================================================= */

.footer-bottom {
    min-height: 100px;

    padding:
        27px
        40px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    background: var(--viola);
}


.footer-brand {
    font-family:
        "Montserrat",
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}


.footer-brand span {
    display: block;

    margin-top: 5px;

    color:
        rgba(255,255,255,0.55);

    font-size: 7px;

    letter-spacing: 3px;
}


.footer-bottom p {
    margin: 0;

    color:
        rgba(255,255,255,0.75);

    font-family:
        "TeX Gyre Termes",
        Georgia,
        serif;

    font-size: 16px;

    font-style: italic;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .galleria-masonry {
        width:
            calc(100% - 35px);

        column-count: 2;

        column-gap: 18px;
    }


    .galleria-item,
    .galleria-messaggio {
        margin-bottom: 18px;
    }


    .footer-info {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .top-bar {
        height: 54px;

        padding:
            0
            16px;
    }


    .logo-top {
        width: 45px;
    }


    .hero-galleria {
        min-height: 520px;

        padding:
            95px
            20px
            65px;
    }


    .hero-galleria h1 {
        font-size: 55px;
    }


    .hero-frase {
        font-size: 23px;
    }


    .hero-testo {
        font-size: 12px;
    }


    .intro-galleria {
        width:
            calc(100% - 36px);

        padding:
            70px
            0
            50px;
    }


    .intro-galleria h2 {
        font-size: 39px;
    }


    /* GALLERIA A UNA COLONNA */

    .galleria-masonry {
        width:
            calc(100% - 24px);

        column-count: 1;

        column-gap: 0;

        padding-bottom: 70px;
    }


    .galleria-item {
        padding: 8px;

        margin-bottom: 15px;
    }


    .galleria-messaggio {
        margin-bottom: 15px;

        padding:
            45px
            28px;
    }


    .galleria-social {
        padding:
            65px
            20px;
    }


    .galleria-social h2 {
        font-size: 36px;
    }


    .galleria-social-link {
        flex-direction: column;
    }


    .social-btn {
        width: 220px;

        text-align: center;
    }


    .footer-info {
        grid-template-columns: 1fr;
    }


    .footer-box {
        min-height: 150px;

        padding:
            28px
            25px;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255,255,255,0.15);
    }


    .footer-bottom {
        padding:
            27px
            25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }

}