/* ===============================
   STILE TEMA BASE Cecio
   Autore: Studio Cecio
   Descrizione: base neutra riutilizzabile
   =============================== */

/* DEBUG */
.SVILUPPO {
    border: 2px solid red;
}

.SVILUPPO-ALL * {
    border: 2px solid blue;
}

* {
    z-index: 0;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw;
    font-size: 10px;
    font-weight: 500;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

:root {
    --fonttitolo: "DM Serif Display";
    --fonttitoletto: "Bebas Neue";
    --fonttesto: "Bebas Neue";
    --color-primary: #20364b;
    --color-primary-light: #2554A8;
    --color-primary-dark: #062255;
    --color-secondary: #88725c;
    --color-secondary-light: #2BA76B;
    --color-secondary-dark: #065C32;
    --color-neutral: #C9C9C9;
    --color-neutral-light: #F7F7F7;
    --color-neutral-dark: #767676;
}


/* ===============================
   UTILITY
   =============================== */

.hero {
    background-size: cover;
    background-position: center;
}

.min-w-100 {
    min-width: 100%;
}

.min-w-80 {
    min-width: 80%;
}

.vh100 {
    min-height: 100vh;
}

.vh70 {
    min-height: 70vh;
    height: 70vh;
}

.vh60 {
    min-height: 60vh;
    height: 60vh;
}

.vh50 {
    min-height: 50vh;
}

.vh30 {
    min-height: 30vh;
}

.vh20 {
    min-height: 20vh;
}

.vh10 {
    min-height: 10vh;
}

.vh5 {
    min-height: 5vh;
}

.separatore {
    display: block;
    position: relative;
}

.container.container-big {
    width: 1700px;
    max-width: 90%;
}

/* Ratio 1500x1000 ≈ 3:2 */
.ratio-1500x1000 {
    --bs-aspect-ratio: 66.666%;
}

.container-titolo-outline {
    position: relative;
}

.sez-img-txt {
    background: linear-gradient(90deg, transparent 35%, var(--color-neutral-light) 35%);
}

.txt-2-col {
    column-count: 2;
    column-gap: 5%;
}


/* ===============================
   TESTI
   =============================== */

.titolo,
.titolo * {
    font-family: var(--fonttitolo);
}

.testo,
.testo * {
    font-family: var(--fonttesto);
}

.outline {
    font-family: var(--fonttesto);
    color: transparent;
    font-weight: 800;
    line-height: 0;
    position: absolute;
    top: -5%;
    left: -5%;
    z-index: -1;
}

.outline-primary {
    -webkit-text-stroke: 1px var(--color-primary);
    text-stroke: 1px var(--color-primary);
}

.outline-secondary {
    -webkit-text-stroke: 1px var(--color-secondary);
    text-stroke: 1px var(--color-secondary);
}

.outline-white {
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff;
}

.XXL,
.XXL * {
    font-size: 10.3rem;
}

.XL,
.XL * {
    font-size: 6.3rem;
}

.L,
.L * {
    font-size: 5rem;
}

.M,
.M * {
    font-size: 3.8rem;
    line-height: 4rem;
}

.S,
.S * {
    font-size: 1.8rem;
    line-height: 2.7rem;
}

.XS,
.XS * {
    font-size: 1.5rem;
    line-height: 2rem;
}

.extrabold,
.extrabold * {
    font-weight: 700;
}

.bold,
.bold * {
    font-weight: 600;
}

.normal,
.normal * {
    font-weight: 500;
}

.light,
.light * {
    font-weight: 300;
}

.S strong,
.M strong,
.L strong,
.XL strong {
    font-size: inherit;
    font-weight: bolder;
}

.XL strong {
    font-weight: 800;
}

.L strong {
    font-weight: 700;
}

.M strong {
    font-weight: 600;
}

.S strong {
    font-weight: 500;
}

.text-left * {
    text-align: left;
}

.text-center * {
    text-align: center;
}

.text-right * {
    text-align: right;
}

.caps,
.caps * {
    text-transform: uppercase;
}


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

.black,
.black * {
    color: #000;
}

.white,
.white * {
    color: #fff;
}

.color-primary,
.color-primary * {
    color: var(--color-primary);
}

.color-primary-light,
.color-primary-light * {
    color: var(--color-primary-light);
}

.color-primary-dark,
.color-primary-dark * {
    color: var(--color-primary-dark);
}

.color-secondary,
.color-secondary * {
    color: var(--color-secondary);
}

.color-secondary-light,
.color-secondary-light * {
    color: var(--color-secondary-light);
}

.color-secondary-dark,
.color-secondary-dark * {
    color: var(--color-secondary-dark);
}

.color-neutral,
.color-neutral * {
    color: var(--color-neutral);
}

.color-neutral-light,
.color-neutral-light * {
    color: var(--color-neutral-light);
}

.color-neutral-dark,
.color-neutral-dark * {
    color: var(--color-neutral-dark);
}


/* ===============================
   PULSANTI
   =============================== */

.pulsante {
    display: block;
    padding: 10px 40px 12px;
    font-family: var(--fonttesto);
    text-decoration: none;
    font-weight: 500;
    line-height: normal;
    max-width: fit-content;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pulsante:hover {
    transition: all 0.3s ease;
}

.pulsante-1 {
    background-color: var(--color-primary);
    color: #fff;
}

.pulsante-1:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.pulsante-2 {
    background-color: var(--color-secondary);
    color: #fff;
}

.pulsante-2:hover {
    background-color: var(--color-primary);
    color: #fff;
}


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

.icona-social {
    position: relative;
}

.icona-social a {
    width: 100%;
    height: 100%;
}

.icona-social img {
    transition: all 0.3s ease;
}

.icona-social:hover img {
    transition: all 0.3s ease;
}

.container-social {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 15px;
}


/* ===============================
   GALLERY / MASONRY
   =============================== */

.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
}


/* ===============================
   HERO / SLIDER GENERICO
   =============================== */

.slider-hero {
    position: relative;
    overflow: hidden;
}

.slider-hero .slide-hero {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider-hero .slide-hero.attiva {
    opacity: 1;
    z-index: 2;
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slider-apertura {
    position: relative;
    overflow: hidden;
}

.contenuto-slider {
    position: relative;
    z-index: 2;
}

.slider-apertura .slider-dots .slider-dot.is-active,
.slider-apertura .slider-dots .slider-dot {
    background-color: #fff;
}

.container-slider-dots {
    position: absolute;
    bottom: 50px;
    z-index: 99999;
    display: block;
    left: 0;
    right: 0;
}


/* ===============================
   DOTS SLIDER GENERICI
   =============================== */

.slider-dots {
    width: 100%;
    z-index: 99999;
}

.slider-dots .slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots .slider-dot.is-active {
    background-color: var(--color-primary);
    transform: scale(1.4);
}

.slider-dots .slider-dot:hover,
.slider-dots .slider-dot:focus-visible {
    background-color: var(--color-primary);
    outline: none;
}


/* ===============================
   BACK TO TOP
   =============================== */

footer {
    position: relative;
}

.container-pulsante-back-to-top {
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border: 0;
    border-radius: 3px;
    display: flex;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .3s ease, background .3s ease;
}

.container-pulsante-back-to-top:hover {
    background: var(--color-primary);
}

.container-pulsante-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.container-pulsante-back-to-top.is-stopped {
    position: absolute;
    bottom: calc(100% + 50px);
}

.container-pulsante-back-to-top svg {
    margin: auto;
    fill: #fff;
}


/* ===============================
   RESPONSIVE GENERICO
   =============================== */

@media (max-width: 768px) {
    .txt-2-col {
        column-count: 1;
    }

    .slider-dots {
        gap: 12px;
    }

    .masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .XXL,
    .XXL * {
        font-size: clamp(23px, 13vw, 8.3rem);
    }

    .masonry {
        column-count: 1;
    }
}


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

.anim {
    opacity: 0;
    transition: all .7s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, opacity;
    transition-delay: 0.2s;
}

.fade-up {
    transform: translateY(40px);
}

.fade-up.visibile {
    opacity: 1;
    transform: translateY(0);
}

.fade-down {
    transform: translateY(-40px);
}

.fade-down.visibile {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-left.visibile {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    transform: translateX(40px);
}

.fade-right.visibile {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
}

.fade-in.visibile {
    opacity: 1;
}