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

.hero {
    height: 85vh;
    background: url('../img/home.webp') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay generale (molto leggero) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
}

/* ============================
   IMMAGINI RESPONSIVE
============================ */

/* Mobile verticale */
@media (max-width: 768px) and (orientation: portrait) {
    .hero {
        background-image: url('../img/home-mobile-vertical.webp');
        height: 75vh;
    }
}

/* Mobile orizzontale */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        background-image: url('../img/home-mobile-horizontal.webp');
        height: 70vh;
    }
}

/* Tablet verticale */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        background-image: url('../img/home-mobile-vertical.webp');
        height: 80vh;
    }
}

/* Tablet orizzontale */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        background-image: url('../img/home-mobile-horizontal.webp');
        height: 80vh;
    }
}

/* ============================
   HERO CONTENT — VERSIONE D (NO BOX)
============================ */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 5px;
    /* nessun box */
}

/* Gradient soft dietro al testo (solo dietro al contenuto) */
.hero-content::before {
    content: "";
    position: absolute;
    inset: 0px -5px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.45));
    z-index: -1;
    border-radius: 10px;
    opacity: 0.55;
    /* molto leggero */
}

/* Mobile: gradient più leggero */
@media (max-width: 768px) {
    .hero-content::before {
        opacity: 0.40;
    }
}

/* ============================
   TESTI HERO — OMBRE PREMIUM
============================ */

.hero-content h1,
.hero-content p {
    color: #fff;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 0, 0, 0.8),
        0 3px 6px rgba(0, 0, 0, 0.9),
        0 0 22px rgba(0, 0, 0, 0.7);
    /* ombre multiple premium */
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 28px;
}

/* Mobile: font più piccoli */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Animazione */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   INTRO CARDS SECTION
============================ */

.intro-cards {
    padding: 90px 10%;
    text-align: center;
    background: linear-gradient(to bottom, #f7e0ea, #f3d2e2);
    border-top: 1px solid rgba(231, 177, 200, 0.45);
}

.intro-cards h2 {
    font-family: "Quicksand", sans-serif;
    font-size: 2.6rem;
    margin-bottom: 15px;
    color: #111;
}

.intro-subtitle {
    font-family: "Quicksand", sans-serif;
    font-size: 1.2rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
}

/* Cards layout */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

/* Card base */
.card {
    background: #ffffff;
    border: 1px solid rgba(231, 177, 200, 0.55);
    border-radius: 18px;
    padding: 40px 32px;
    width: 300px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card h3 {
    font-family: "Quicksand", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #111;
}

.card p {
    font-family: "Quicksand", sans-serif;
    font-size: 1rem;
    color: #555;
}

/* Hover 3D */
.card:hover {
    transform: translateY(-14px) scale(1.04) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    border-color: var(--rosa);
    background: #fff7fb;
}

/* Icona tonda */
.card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--rosa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--rosa);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: 0.35s ease;
    transform: translateZ(20px);
}

/* Icona in hover */
.card:hover .card-icon {
    transform: translateZ(30px) scale(1.12);
    background: #ffe9f3;
    border-color: var(--rosa-scuro);
    color: var(--rosa-scuro);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ============================
    Scorrimento HomePage 
==============================*/

/* Il link esterno che racchiude tutto il blocco */
.scroll-link-block {
    text-decoration: none;
    display: block;
    width: fit-content;
    /* Ridotto al minimo (era 80px), regola questo valore se vuoi cambiare di pochi pixel */
    margin: 10px auto 0 auto;
    cursor: pointer;
    text-align: center;
}

/* Contenitore principale */
.scroll-container {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    /* Rimuove eventuali bordi o sfondi estranei ereditati */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Testo "Scorri per scoprire di più" */
.scroll-container p {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    /* Ridotto anche lo spazio tra il testo e la freccia per compattare tutto */
    line-height: 1.2;
    /* Forza la riga di testo a non occupare spazio extra in altezza */
    color: #ffffff;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9), 0px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Contenitore delle frecce */
.scroll-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
}

/* Singoli segmenti delle frecce */
.scroll-arrow span {
    display: block;
    width: 13px;
    height: 13px;
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(45deg);
    margin: -5px auto 0 auto;
    /* Riavvicinate leggermente per renderle più compatte e armoniose */

    /* Ombra potenziata sulle frecce */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.9));

    animation: freccia-animata 1.5s infinite ease-in-out;
    /* Animazione leggermente più lenta ed elegante */
}

/* Ritardo per la seconda freccia */
.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

/* Animazione fluida e contenuta */
@keyframes freccia-animata {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-8px, -8px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(8px, 8px);
    }
}