/* =========================================================
   IL BRONTOLONE — AMBIENTE
   ========================================================= */

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


/* =========================================================
   COLORI
   ========================================================= */

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

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


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

* {
    box-sizing: border-box;
}

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

    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--sfondo);

    color: var(--testo);

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

    overflow-x: hidden;
}


/* =========================================================
   BARRA SUPERIORE
   ========================================================= */

.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.94);

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

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

    z-index: 1000;
}


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

    text-decoration: none;

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

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

    letter-spacing: 2px;

    transition:
        opacity 0.25s ease;
}


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


.nome-top {
    color: var(--blu);

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

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

    letter-spacing: 2px;
}


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

.hero-ambiente {
    position: relative;

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

    padding:
        110px
        25px
        65px;

    display: flex;

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

    overflow: hidden;
}


.hero-contenuto {
    position: relative;

    z-index: 5;

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

    margin: 0 auto;

    text-align: center;
}


.sopratitolo {
    margin:
        0 0
        15px;

    color: var(--blu);

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

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

    letter-spacing: 4px;

    text-transform: uppercase;
}


h1 {
    margin:
        0 0
        25px;

    color: var(--blu);

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

    font-size:
        clamp(
            65px,
            8vw,
            100px
        );

    font-weight: 400;

    line-height: 0.9;

    letter-spacing: -1px;
}


.intro {
    max-width: 520px;

    margin: 0 auto;

    font-size: 14px;

    line-height: 1.8;
}


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

.forma {
    position: absolute;

    pointer-events: none;

    z-index: 0;
}


.viola {
    width: 380px;
    height: 210px;

    top: -120px;
    left: -100px;

    background-color: var(--viola);

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

    transform: rotate(-12deg);
}


.gialla {
    width: 300px;
    height: 390px;

    right: -210px;
    bottom: -140px;

    background-color: var(--giallo);

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

    transform: rotate(8deg);
}


/* =========================================================
   FOTO PRINCIPALE
   ========================================================= */

.foto-principale {
    width:
        min(
            1200px,
            calc(100% - 60px)
        );

    margin: 0 auto;

    overflow: hidden;

    background-color: #ddd;
}


.foto-principale img {
    display: block;

    width: 100%;
    height: 650px;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.8s ease;
}


.foto-principale:hover img {
    transform: scale(1.025);
}


/* =========================================================
   RACCONTO
   ========================================================= */

.racconto {
    width:
        min(
            1180px,
            calc(100% - 70px)
        );

    margin: 0 auto;

    padding:
        85px
        0
        110px;

    display: grid;

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

    gap: 70px;

    align-items: start;
}


/* =========================================================
   MINI GALLERIA
   ========================================================= */

.mini-gallery {
    position: relative;

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

    height: 680px;

    margin: 0 auto;
}


.mini-foto {
    position: absolute;

    overflow: hidden;

    background-color: #ddd;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.10);
}


.mini-foto img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.6s ease;
}


.mini-foto:hover img {
    transform: scale(1.05);
}


/* FOTO 1 */

.foto-a {
    width: 250px;
    height: 300px;

    top: 0;
    left: 0;

    animation:
        galleggiaA
        6s
        ease-in-out
        infinite;
}


/* FOTO 2 */

.foto-b {
    width: 200px;
    height: 250px;

    top: 200px;
    right: 0;

    animation:
        galleggiaB
        7s
        ease-in-out
        infinite;
}


/* FOTO 3 */

.foto-c {
    width: 225px;
    height: 275px;

    bottom: 0;
    left: 45px;

    animation:
        galleggiaC
        6.5s
        ease-in-out
        infinite;
}


/* =========================================================
   ANIMAZIONI FOTO
   ========================================================= */

@keyframes galleggiaA {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


@keyframes galleggiaB {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}


@keyframes galleggiaC {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =========================================================
   TESTO RACCONTO
   ========================================================= */

.racconto-testo {
    width: 100%;
    max-width: 560px;

    margin: 0;

    padding-top: 20px;
}


.numero {
    margin:
        0 0
        12px;

    color: var(--salvia);

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

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

    letter-spacing: 3px;
}


.racconto h2 {
    margin:
        0 0
        28px;

    color: var(--blu);

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

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

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.5px;
}


.apertura-racconto {
    margin:
        0 0
        30px;

    color: var(--viola);

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

    font-size: 25px !important;

    font-style: italic;

    line-height: 1.4 !important;
}


.racconto p {
    margin:
        0 0
        22px;

    font-size: 13px;

    line-height: 1.85;
}


.racconto strong {
    color: var(--blu);

    font-weight: 700;
}


.firma {
    margin-top:
        38px !important;

    color: var(--viola);

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

    font-size:
        25px !important;

    font-style: italic;

    line-height:
        1.45 !important;
}


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

.chiusura {
    position: relative;

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

    padding:
        60px
        20px;

    display: flex;

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

    text-align: center;

    overflow: hidden;

    background-color: var(--bianco);
}


.chiusura p {
    position: relative;

    z-index: 5;

    margin: 0;

    color: var(--blu);

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

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

    line-height: 1.7;
}


.forma-finale {
    position: absolute;

    width: 420px;
    height: 300px;

    right: -230px;
    bottom: -170px;

    border-radius: 50%;
}


.forma-finale.salvia {
    background-color: var(--salvia);
}


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

.footer-brontolone {
    position: relative;

    width: 100%;

    background: var(--blu);

    color: var(--bianco);

    overflow: hidden;
}


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

    margin: 0 auto;

    display: grid;

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


.footer-box {
    position: relative;

    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);

    transition:
        background-color 0.35s ease;
}


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


a.footer-box:hover {
    background:
        rgba(255,255,255,0.07);
}


.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,
        "Times New Roman",
        serif;

    font-size: 23px;
    font-weight: 400;

    line-height: 1.2;

    text-decoration: none;
}


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

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

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

    font-size: 11px;

    line-height: 1.5;

    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;
}


.footer-phone {
    display: block;

    width: fit-content;

    text-decoration: none;

    transition:
        opacity 0.25s ease;
}


.footer-phone:hover {
    opacity: 0.55;
}


/* =========================================================
   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;
}


/* =========================================================
   LUNEDÌ 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 {
    color: var(--viola);

    opacity: 0.7;
}


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

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

    font-size: 36px;

    font-style: italic;

    line-height: 1;
}


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

    opacity: 0.8;
}


.footer-prenota:hover {
    background:
        var(--salvia) !important;
}


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

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

    padding:
        27px
        40px;

    display: flex;

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

    gap: 40px;

    background: var(--viola);
}


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

    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;
    font-weight: 500;

    letter-spacing: 3px;
}


.footer-bottom p {
    margin: 0;

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

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

    font-size: 16px;

    font-style: italic;
}


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

@media (max-width: 950px) {

    .racconto {
        width:
            calc(100% - 50px);

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

        gap: 40px;
    }


    .mini-gallery {
        max-width: 400px;

        height: 600px;
    }


    .foto-a {
        width: 210px;
        height: 260px;
    }


    .foto-b {
        width: 175px;
        height: 220px;

        top: 175px;
    }


    .foto-c {
        width: 195px;
        height: 240px;

        left: 35px;
    }


    .racconto h2 {
        font-size: 46px;
    }

}


@media (max-width: 900px) {

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


    .footer-box {
        border-bottom:
            1px solid
            rgba(255,255,255,0.15);
    }

}


/* =========================================================
   TELEFONO
   ========================================================= */

@media (max-width: 700px) {

    .top-bar {
        height: 54px;

        padding:
            0
            16px;
    }


    .home-link {
        font-size: 9px;

        letter-spacing: 1.5px;
    }


    .nome-top {
        font-size: 8px;
    }


    .hero-ambiente {
        min-height: 420px;

        padding:
            90px
            20px
            55px;
    }


    h1 {
        font-size: 58px;
    }


    .intro {
        max-width: 400px;

        font-size: 12px;

        line-height: 1.7;
    }


    .viola {
        width: 250px;
        height: 140px;

        left: -100px;
        top: -85px;
    }


    .gialla {
        width: 200px;
        height: 280px;

        right: -155px;
        bottom: -100px;
    }


    .foto-principale {
        width:
            calc(100% - 30px);
    }


    .foto-principale img {
        height: 420px;
    }


    .racconto {
        width:
            calc(100% - 30px);

        grid-template-columns:
            1fr;

        gap: 45px;

        padding:
            55px
            0
            75px;
    }


    /*
       Le tre foto restano vicine,
       ma non attaccate.
    */

    .mini-gallery {
        width: 100%;
        max-width: 390px;

        height: 510px;

        margin: 0 auto;
    }


    .foto-a {
        width: 190px;
        height: 230px;

        top: 0;
        left: 0;
    }


    .foto-b {
        width: 155px;
        height: 195px;

        top: 145px;
        right: 0;
    }


    .foto-c {
        width: 175px;
        height: 215px;

        bottom: 0;
        left: 35px;
    }


    .racconto-testo {
        width: 100%;
        max-width: 500px;

        margin: 0 auto;

        padding-top: 0;
    }


    .numero {
        font-size: 10px;
    }


    .racconto h2 {
        font-size: 40px;

        margin-bottom: 22px;
    }


    .apertura-racconto {
        font-size:
            21px !important;

        margin-bottom: 24px;
    }


    .racconto p {
        font-size: 12px;

        line-height: 1.75;

        margin-bottom: 18px;
    }


    .firma {
        margin-top:
            30px !important;

        font-size:
            21px !important;
    }


    .chiusura {
        min-height: 280px;
    }


    .chiusura p {
        font-size: 11px;
    }

}


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

@media (max-width: 600px) {

    .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-title {
        font-size: 21px;
    }


    .footer-prenota-title {
        font-size: 32px;
    }


    .footer-action {
        margin-top: 17px;
    }


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

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .footer-bottom p {
        font-size: 14px;

        line-height: 1.4;
    }

}


/* =========================================================
   ACCESSIBILITÀ
   ========================================================= */

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

    .foto-a,
    .foto-b,
    .foto-c {
        animation: none;
    }


    .mini-foto img,
    .foto-principale img {
        transition: none;
    }

}