/* =============================================
   COME FUNZIONA — Enhanced Styles
   ============================================= */

/* ---- WORKS SECTION ---- */
.works-container {
    background: linear-gradient(
        160deg,
        rgba(242, 107, 42, 0.06) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    position: relative;
    overflow: hidden;
}

.works-container::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(242, 107, 42, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ---- TITLE ---- */
.title-container h1 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-container p {
    color: #6b7280;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.75;
}

@media (max-width: 767.98px) {
    .title-container h1 {
        font-size: 2.4rem;
    }
}

@media (min-width: 768px) {
    .title-container h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) {
    .title-container h1 {
        font-size: 4.8rem;
    }
}

/* ---- TIMELINE ---- */
.timeline-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.timeline-steps .timeline-step {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 1rem 3.5rem;
    transition: transform 0.25s ease;
}

.timeline-steps .timeline-step:hover {
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .timeline-steps .timeline-step:not(:last-child)::after {
        content: "";
        display: block;
        border-top: 0.2rem dashed var(--ciotolandia-green, #a8d5b0);
        width: 16rem;
        position: absolute;
        left: 5.8rem;
        top: 2rem;
        z-index: 0;
        opacity: 0.6;
    }
}

.timeline-steps .timeline-content {
    width: 10rem;
    text-align: center;
}

.timeline-steps .timeline-content .inner-circle {
    border-radius: 50%;
    height: 4.25rem;
    width: 4.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 0.2rem solid var(--ciotolandia-green);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 6px rgba(var(--ciotolandia-green-rgb, 80, 160, 100), 0.08);
    position: relative;
    z-index: 1;
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.timeline-steps .timeline-step:hover .inner-circle {
    background-color: var(--ciotolandia-green);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.12),
        0 0 0 8px rgba(var(--ciotolandia-green-rgb, 80, 160, 100), 0.12);
}

.timeline-steps .timeline-content .inner-circle > i {
    font-size: 1.75rem;
    color: var(--ciotolandia-green);
    transition: color 0.25s ease;
}

.timeline-steps .timeline-step:hover .inner-circle > i {
    color: #fff;
}

.step-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.75rem !important;
}

.timeline-content .text-muted {
    font-size: 0.85rem !important;
    line-height: 1.4;
}

/* ---- CARD WORKS ---- */
.card-works {
    border: none;
    background: linear-gradient(
        135deg,
        var(--ciotolandia-green-30, #e8f5ec) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.card-works::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--ciotolandia-green-rgb, 80, 160, 100), 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.card-works h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card-works p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.97rem;
}

/* ---- CHECK LIST ---- */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #374151;
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.check-list li:hover {
    background: rgba(255, 255, 255, 0.7);
}

.check-list li > i {
    color: var(--ciotolandia-green);
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* ---- PROFILE IMAGE ---- */
.card-works .profile-img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    border-radius: 1rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.card-works .profile-img:hover {
    transform: scale(1.025) translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.17);
}

/* ---- CTA BUTTON ---- */
.btn-cta-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-cta-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 107, 42, 0.35) !important;
}

/* ---- WHY SECTION ---- */
.why-container {
    background-color: var(--ciotolandia-green-bg);
    position: relative;
    overflow: hidden;
}

.why-container::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.why-container .col > p.color-orange {
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.why-container h3 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* ---- ICON CARDS ---- */
.why-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 1.25rem;
    padding: 2rem 1.25rem 1.75rem;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.icon-container {
    border-radius: 30%;
    background-color: var(--ciotolandia-green, #4fa46e);
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(var(--ciotolandia-green-rgb, 80, 160, 100), 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.why-card:hover .icon-container {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 8px 20px rgba(var(--ciotolandia-green-rgb, 80, 160, 100), 0.4);
}

.icon-container > svg {
    fill: #fff;
    width: 2.2rem;
    height: 2.2rem;
}

.why-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

.why-card p {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---- RESPONSIVE WHY GRID ---- */
@media (max-width: 768px) {
    .why-container .row.mt-5 {
        gap: 1rem;
    }
    .why-container .row.mt-5 .col {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 420px) {
    .why-container .row.mt-5 .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Badge hero "Cibo fresco surgelato" */
.fresh-frozen-badge {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: fit-content;
}
.badge-divider {
    color: #dee2e6;
    font-size: 1.2rem;
}

/* Lista numerata "Come servire i pasti" */
.serve-number {
    font-size: 1.4rem;
    line-height: 1;
    min-width: 2rem;
}

/* ===== CIOTOLANDIA VARIABLES ===== */
:root {
    --text: #2b2b2b;
    --cl-radius: 16px;
    --cl-radius-sm: 10px;
    --cl-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --cl-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.14);
    --cl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
}
body {
    font-family: "Nunito", sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}
/* img { max-width: 100%; height: auto; } */
a {
    color: var(--ciotolandia-orange);
    text-decoration: none;
    transition: var(--cl-transition);
}
/* ===== UTILITIES ===== */

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 56px 0;
}

.bg-warm {
    background: var(--ciotolandia-orange-bg);
}

.bg-green {
    background: var(--ciotolandia-green);
    color: #ffffff;
}

.bg-grey {
    background: var(--ciotolandia-green-bg);
}

.text-primary-cl {
    color: var(--ciotolandia-orange) !important;
}

.text-green {
    color: var(--ciotolandia-green) !important;
}

.badge-cl {
    background: var(--ciotolandia-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
}

/* ===== SECTION TITLES ===== */

.section-label {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ciotolandia-orange);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ciotolandia-green);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ===== BUTTONS ===== */

.btn-cl {
    background: var(--ciotolandia-orange);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.05rem;
    transition: var(--cl-transition);
    cursor: pointer;
}

.btn-cl:hover {
    background: #d94e1f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 91, 42, 0.35);
}

.btn-outline-cl {
    background: transparent;
    color: var(--ciotolandia-orange);
    border: 2px solid var(--ciotolandia-orange);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 32px;
    transition: var(--cl-transition);
}

.btn-outline-cl:hover {
    background: var(--ciotolandia-orange);
    color: #ffffff;
}

/* ===== CARDS ===== */

.cl-card {
    background: #ffffff;
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    padding: 32px;
    transition: var(--cl-transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cl-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cl-shadow-hover);
}

.cl-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

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

.hero-cf {
    padding: 20vh 0 20px;
    background: linear-gradient( 135deg, var(--ciotolandia-orange-bg) 0%, #fff 100% );
    height: calc(100vh - var(--topnav1-height) - var(--topnav2-height));
}

@media (max-width: 767.98px) {
    .hero-cf {
        height: 90vh;
    }
}

.hero-cf .overlay {
    position: absolute;
    inset: 0;
    background-image: url(/images/hero/come-funziona.webp);
    background-size: 100%;
    background-position: bottom;
    filter: brightness(.50);
    z-index: 3;
    overflow: hidden;
}

.hero-cf .container {
    position: relative;
    z-index: 4;
}
.hero-img {
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
    transition: var(--cl-transition);
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: var(--cl-shadow-hover);
}

.min-vh-75 {
    min-height: 75vh;
}

/* ===== TIMELINE STEPS ===== */

.section-step .cl-step-card {
    text-align: center;
    position: relative;
}

.section-step .cl-step-number {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ciotolandia-orange);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: var(--cl-transition);
    z-index: 4;
}

.section-step .cl-step-card:hover .cl-step-number {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(239, 91, 42, 0.4);
}

.section-step .cl-step-card h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.section-step .cl-step-card p {
    color: var(--ciotolandia-green);
    font-size: 0.95rem;
}

.section-step .step-connector {
    position: absolute;
    top: 28px;
    left: calc(50%);
    width: calc(100%);
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--ciotolandia-orange),
        var(--ciotolandia-light-green)
    );
    z-index: 2;
}

@media (max-width: 767px) {
    .section-step .step-connector {
        display: none;
    }
}

/* ===== FRESH FROZEN ===== */

.fresh-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    transition: var(--cl-transition);
}

.fresh-icon-wrap:hover {
    transform: rotate(-8deg) scale(1.08);
}

/* ===== TEMP BADGE ===== */

.temp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ciotolandia-orange), #c4401a);
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 14px 28px;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(239, 91, 42, 0.3);
}

.temp-badge i {
    font-size: 1.6rem;
}

/* ===== SERVING METHODS ===== */

.method-card {
    background: #ffffff;
    border-radius: var(--cl-radius);
    padding: 28px 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--cl-transition);
    cursor: default;
}

.method-card:hover {
    border-color: var(--ciotolandia-orange);
    transform: translateY(-4px);
    box-shadow: var(--cl-shadow-hover);
}

.method-card .method-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

/* ===== WHY CARDS ===== */

.why-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    transition: var(--cl-transition);
}

.cl-card:hover .why-icon-circle {
    transform: scale(1.12);
}

/* ===== SWIPER CUSTOM ===== */

.swiper-why .swiper-slide {
    height: auto;
}

.swiper-why .cl-card {
    height: 100%;
}

.swiper-pagination-bullet-active {
    background: var(--ciotolandia-orange) !important;
}

/* ===== SHIPPING VISUAL ===== */

.shipping-visual {
    position: relative;
    border-radius: var(--cl-radius);
    overflow: hidden;
}

.shipping-visual img {
    transition: var(--cl-transition);
}

.shipping-visual:hover img {
    transform: scale(1.03);
}

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

@media (max-width: 991px) {
    .section-title {
        font-size: 1.9rem;
    }

    .section-padding {
        padding: 56px 0;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.55rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .cl-card {
        padding: 22px;
    }
}
