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