﻿/* --------------------------------------------------
   HERO FULLSCREEN PARALLAX
-------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('/images/wallpaper/homepage-cestriecon.jpg') center no-repeat;
    background-size: cover;
    background-attachment: fixed; /* PARALLAX */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    margin-top: -116px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --------------------------------------------------
   VIDEO BUTTON + RIPPLE EFFECT
-------------------------------------------------- */

.video-btn {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    overflow: visible;
}

    .video-btn i {
        position: relative;
        z-index: 3;
    }

.ripple-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-gold);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: ripple 2.2s infinite ease-out;
    opacity: 0;
}

    .ripple-circle.circle-1 {
        animation-delay: 0s;
    }

    .ripple-circle.circle-2 {
        animation-delay: 1.1s;
    }

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(2.4);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ----------------------------------------------
   INTRO SECTION
---------------------------------------------- */
.intro-istituzionale {
    position: relative;
    background: #fff;
    padding: 70px 0;
    margin: 100px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.cta-link {
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
}

    .cta-link:hover {
        text-decoration: underline;
    }

/* Cerchi base */
.is-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid rgba(0, 0, 255, 0.25); /* colore chiaro */
    animation: ripple 7s infinite ease-out;
}

/* Posizioni dei cerchi */
    .is-circle.circle-1 {
        top: -40px;
        left: -40px;
        background-color: var(--brand-light);
    }

    .is-circle.circle-2 {
        top: 120px;
        right: -60px;
        animation-delay: 1s;
        background-color: var(--brand-light);
    }

    .is-circle.circle-3 {
        bottom: -50px;
        left: 20%;
        animation-delay: 2s;
    }

    .is-circle.circle-4 {
        bottom: 40px;
        right: 25%;
        animation-delay: 3s;
    }


/* ----------------------------------------------
   WHO I AM SECTION
---------------------------------------------- */
.who-i-am-section {
    position: relative;
    padding: 70px 0;
    margin: 100px 0;
    overflow: hidden;
    min-height: 500px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, #F0F1FF 30%);
}

/* Titoli */
.who-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand-gold);
}

.who-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.who-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.whoiam-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whoiam-logo-card {
    position: relative;
    background: #fff;
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.whoiam-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Cerchi decorativi */
.whoiam-logo-card .circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    animation: ripple2 6s infinite ease-out;
}

.c1 {
    top: -40px;
    left: -40px;
}

.c2 {
    top: 20px;
    right: -60px;
    animation-delay: 1s;
}

.c3 {
    bottom: -50px;
    left: 30%;
    animation-delay: 2s;
}

.c4 {
    bottom: 40px;
    right: 25%;
    animation-delay: 3s;
}

@keyframes ripple2 {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.1;
    }
}


/* Cerchi decorativi */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(35, 36, 75, 0.35); /* bordo chiaro */
    pointer-events: none;
    opacity: 0.5;
    transition: transform .5s linear;
    animation: ripple 3s infinite ease-out;
}

/* Cerchio grande */
    .bg-circle.circle-1 {
        width: 380px;
        height: 380px;
        top: -120px;
        left: -80px;
        background: var(--brand-lightblue);
        border: none;
        animation-delay: 0s;
    }

/* Cerchio medio */
    .bg-circle.circle-2 {
        width: 260px;
        height: 260px;
        bottom: -100px;
        right: -60px;
        animation-delay: 0.25s;
    }

/* Cerchio piccolo */
    .bg-circle.circle-3 {
        width: 180px;
        height: 180px;
        top: 40%;
        left: 70%;
        transform: translate(-50%, -50%);
        animation-delay: 0.5s;
    }
    /* Cerchio piccolo */
    .bg-circle.circle-4 {
        width: 300px;
        height: 300px;
        top: 50%;
        left: 40%;
        animation-delay: 0.75s;
    }

/* ----------------------------------------------
   PROMO SECTION
---------------------------------------------- */
.book-promo-section {
    position: relative;
    padding: 70px 0;
    margin: 100px 0;
    background: var(--brand-darkblue); /* blu Cestriecon */
    color: #fff;
    overflow: hidden;
}

/* Cerchi decorativi */
.promo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    pointer-events: none;
    opacity: 0.5;
    animation: ripple 3s infinite ease-out;
}

/* Grande */
    .promo-circle.circle-1 {
        width: 420px;
        height: 420px;
        top: 130px;
        left: -120px;
        animation-delay: 0.5s;
    }

/* Medio */
    .promo-circle.circle-2 {
        width: 280px;
        height: 280px;
        top: -120px;
        right: -80px;
        animation-delay: 0.25s;
    }

/* Piccolo */
    .promo-circle.circle-3 {
        width: 180px;
        height: 180px;
        right: 0%;
        top: 20%;
        transform: translate(30%, -80%);
        animation-delay: 0s;
    }

/* Testo */
.promo-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
}

    .promo-title span {
        color: #ffe082; /* oro chiaro */
    }

.promo-subtitle {
    font-size: 1.1rem;
    margin: 20px 0 30px;
    line-height: 1.6;
}

/* Immagine */
.promo-image {
    text-align: center;
}

.promo-image img {
    max-width: 100%;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
}


/* ----------------------------------------------
   WHY SECTION
---------------------------------------------- */
.why-cestriecon-section {
    position: relative;
    padding: 70px 0;
    margin: 100px 0;
    background: var(--brand-lightblue);
    color: #07020d;
    overflow: hidden;
}

/* Cerchi decorativi */
.wc-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    pointer-events: none;
    animation: ripple 3s infinite ease-out;
}

    .wc-circle.circle-1 {
        width: 380px;
        height: 380px;
        top: -150px;
        left: -120px;
        animation-delay: 0s;
    }

    .wc-circle.circle-2 {
        width: 260px;
        height: 260px;
        bottom: -120px;
        right: -80px;
        animation-delay: 0.25s;
    }

/* Titolo */
.wc-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.wc-subtitle {
    font-size: 1.25rem;
    color: #3b3542;
}

.wc-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    text-align: justify;
}

.wc-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

/* KPI */
.wc-kpi-row .wc-kpi {
    padding: 20px 0;
}

.wc-kpi i {
    font-size: 4rem;
    color: #cdac92;
    margin-bottom: 10px;
}

.wc-kpi h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 5px 0;
}

.wc-counter {
    display: block;
    transition: color .3s ease;
}

/* Box vantaggi */
.wc-box {
    background: #ffffff;
    padding: 30px;
    flex: 1;
    height: 100%;
    border-radius: 12px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

    /* Rende tutte le colonne della row alte uguali */
    .wc-benefits .col-md-6,
    .wc-benefits .col-lg-3 {
        display: flex;
    }

    .wc-box i {
        font-size: 2rem;
        color: #cdac92;
        margin-bottom: 15px;
    }

    .wc-box h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: black;
        transition: color 0.5s ease;
    }

        .wc-box h4:hover {
            color: var(--brand-darkblue);
        }

    .wc-box p {
        font-size: 0.95rem;
        color: #3b3542;
    }

    .wc-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

.text-justify {
    text-align: justify!important;
}


/* ----------------------------------------------
   PLAN SECTION
---------------------------------------------- */
.plans-home-section {
    position: relative;
    padding: 70px 0;
    margin: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Cerchi decorativi */
.ph-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    pointer-events: none;
    opacity: 0.6;
}

    .ph-circle.circle-1 {
        width: 360px;
        height: 360px;
        top: -150px;
        right: -120px;
    }

    .ph-circle.circle-2 {
        width: 260px;
        height: 260px;
        bottom: -120px;
        left: -80px;
    }

/* Titolo */
.ph-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #07020d;
}

.ph-subtitle {
    font-size: 1.1rem;
    color: #3b3542;
}

/* Cards */
.ph-card {
    background: #fff; 
    padding: 40px 30px;
    border-radius: 0;
    border: 1px solid var(--brand-lightblue);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    color: #3b3542;
}

    .ph-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .icon-wrap {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px auto; /* centrato sopra la card */
    }

        .icon-wrap i.ph-thin {
            font-size: 5rem;
            color: var(--brand-darkblue);
        }

/* Featured */
.ph-featured {
    background: var(--brand-darkblue);
    position: relative;
    overflow: hidden; /* importantissimo */
    color: white;
}

    /* Maschera bianca nell'angolo alto-destro */
    .ph-featured::before {
        content: "";
        position: absolute;
        top: -20px;
        right: -50px;
        width: 150px;
        height: 80px;
        background: var(--brand-markedblue);
        transform: rotate(45deg);
        z-index: 1;
    }


.ph-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #fff;
    color: var(--brand-darkblue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.ph-badge-diagonal {
    position: absolute;
    top: 7px;
    right: -25px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    padding: 6px 12px;
    width: 110px;
    transform: rotate(45deg);
    z-index: 5; /* sopra la maschera */
}

/* Plan name */
.ph-plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}


/* Price */
.ph-price {
    font-size: 3rem;
    font-weight: lighter;
    color: var(--brand-darkblue);
}

    .ph-featured > .ph-price {
        color: white;
    }

    .ph-featured > .ph-price sup, .ph-featured > .ph-price sub {
        color: inherit;
    } 

    .ph-price sup, .ph-price sub {
        font-size: 0.8rem;
        color: #3b3542;
        font-weight: lighter;
    }

/* Features */
.ph-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

    .ph-features li {
        font-size: 1rem;
        color: inherit; /*#3b3542;*/
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ph-features i {
        color: #cdac92;
        font-size: 1.2rem;
        margin-right: 8px;
    }

/* Button */
.ph-btn {
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 1rem;
}


/* ----------------------------------------------
   REVIEW SECTION
---------------------------------------------- */
.home-reviews {
    padding: 60px 0;
    background: #fff;
}

.home-reviews-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
}

    .reviews-scroll:active {
        cursor: grabbing;
    }

.review-card {
    min-width: 300px;
    max-width: 300px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    flex-shrink: 0;
}

.review-name {
    color: #3b3542;
    font-weight: bolder;
    font-style: italic;
    margin-bottom: 10px;
}

.review-rating {
    color: #c19571;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 15px;
    color: #444;
}

.rev-nav {
    background: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    color: #666;
    transition: opacity .2s;
}

    .rev-nav:hover {
        opacity: .7;
    }

.rev-left {
    margin-right: 10px;
}

.rev-right {
    margin-left: 10px;
}

.reviews-scroll,
.reviews-scroll * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* ----------------------------------------------
   NEWSLETTER SECTION
---------------------------------------------- */
.newsletter-section {
    position: relative;
    margin: 100px 0 0;
    padding: 70px 0;
    background: var(--brand-middleblue);
    overflow: hidden;
}

/* Cerchi decorativi */
.nl-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    pointer-events: none;
    opacity: 0.7;
    animation: ripple 3s infinite ease-out;
}

/* Grande */
    .nl-circle.circle-1 {
        width: 380px;
        height: 380px;
        top: -150px;
        left: -120px;
        animation-delay: 0s;
    }

/* Medio */
    .nl-circle.circle-2 {
        width: 260px;
        height: 260px;
        bottom: -120px;
        right: -80px;
        animation-delay: 0.25s;
    }

    /* Medio */
    .nl-circle.circle-3 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: 45%;
        animation-delay: 0.5s;
    }

/* Testo */
.nl-title {
    font-size: 2rem;
    font-weight: 700;
    color: #07020d;
}

.nl-subtitle {
    font-size: 1.1rem;
    color: #3b3542;
    margin-top: 10px;
}

/* Form */
/* Contenitore del form */
.nl-form {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Input */
.nl-input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 140px; /* spazio per il bottone */
    border-radius: 8px;
    border: 1px solid #dbdbdb;
    font-size: 1rem;
}

/* Bottone dentro l'input */
.nl-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    padding: 0 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    font-size: 1rem;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

/* Tablet */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .video-btn {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
    .nl-btn {
        width: 100px;
    }
    .ph-card {
        padding: 30px 20px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .hero-section {
        height: 85vh;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .video-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .ph-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center;
    }
    .ph-card {
        padding: 30px 20px;
    }
}
