/* ===================================================
   HOMEPAGE REDESIGN - Faithful to PDF Mockup
   =================================================== */

/* ===========================
   FONT FACES
   =========================== */
@font-face {
    font-family: 'TTNormsPro';
    src: url('/frontend/fonts/TTNormsPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TTNormsPro';
    src: url('/frontend/fonts/TTNormsPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TTNormsPro';
    src: url('/frontend/fonts/TTNormsPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Impact';
    src: url('/frontend/fonts/Impact.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   COMPONENT OVERRIDES
   =========================== */


/* Fix container min-height from style.css */
.container {
    min-height: auto !important;
}

/* Header: Area Riservata button styles now in layout.css */

/* Card: Blue pill button with thin arrow */
.btn-showroom-action {
    width: auto !important;
    height: auto !important;
    padding: 8px 19px !important;
    border-radius: 50px !important;
    background: var(--primary-blue) !important;
    color: white !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-showroom-action i {
    display: none !important;
}

.btn-showroom-action::after {
    content: '';
    display: block;
    width: 36px;
    height: 14px;
    background: url('//cdn.noleggiamoauto.it/images/right-arrow.svg') no-repeat center/contain;
    filter: brightness(0) invert(1);
}

.guest-card:hover .btn-showroom-action {
    background: #1d4ed8 !important;
    transform: none !important;
}

/* Slider thumbs: icon2-thumb.png */
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    background: url('//cdn.noleggiamoauto.it/images/icon2-thumb.png') center/contain no-repeat !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -7px !important;
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    background: url('//cdn.noleggiamoauto.it/images/icon2-thumb.png') center/contain no-repeat !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
    width: 20px !important;
    height: 20px !important;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    padding: 40px 0 0;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.hero-bg-icon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 480px;
    position: relative;
    z-index: 1;
}

.hero-form-col {
    flex: 0 0 420px;
    z-index: 2;
}

.hero-form-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1D1D1F;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #86868B;
    margin: 0 0 24px 0;
    font-weight: 400;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-search-group {
    position: relative;
}

.hero-search-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868B;
    font-size: 13px;
}

.hero-search-group input {
    width: 100%;
    background: #F5F5F7;
    border: 1px solid #E5E5E5;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
    color: #1D1D1F;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hero-search-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hero-form-row {
    display: flex;
    gap: 10px;
}

.hero-select-group {
    flex: 1;
    position: relative;
}

.hero-select-group select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #1D1D1F;
    background: #F5F5F7;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.hero-select-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hero-select-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #86868B;
    font-size: 11px;
}

.hero-budget-group label {
    font-size: 12px;
    color: #86868B;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
}

.hero-slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border-radius: 99px;
    z-index: 1;
}

.hero-slider-wrapper input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    background: none;
    pointer-events: none;
    z-index: 2;
    height: 100%;
    top: 0;
    margin: 0;
}

.hero-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('//cdn.noleggiamoauto.it/images/icon2-thumb.png') center/contain no-repeat;
    cursor: pointer;
    margin-top: -7px;
    position: relative;
    z-index: 3;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.hero-slider-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('//cdn.noleggiamoauto.it/images/icon2-thumb.png') center/contain no-repeat;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.hero-budget-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #1D1D1F;
    margin-top: 10px;
}

.hero-client-toggle {
    display: flex;
    gap: 8px;
}

.hero-client-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid #E5E5E5;
    background: white;
    color: #1D1D1F;
    font-family: 'Outfit', sans-serif;
}

.hero-client-btn:hover {
    border-color: #ccc;
}

.hero-client-btn.active {
    background: #1D1D1F;
    color: white;
    border-color: #1D1D1F;
}

.hero-client-btn i {
    font-size: 13px;
}

.hero-search-btn {
    width: 100%;
    padding: 14px 24px 14px 36px;
    background: url('//cdn.noleggiamoauto.it/images/buttonRicerca.svg') no-repeat center / 100% 100%;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.hero-search-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.hero-image-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.hero-car-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-car-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: none;
    position: relative;
    z-index: 1;
}

.hero-car-shadow {
    width: 70%;
    max-width: 380px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    margin-top: -10px;
    border-radius: 50%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
    padding: 16px 32px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000;
    line-height: 1;
    font-family: 'Impact', 'TTNormsPro', sans-serif;
    letter-spacing: -0.5px;
}

.hero-stat-num i {
    font-size: 0.85rem;
    color: #000000;
    margin-left: 2px;
}

.hero-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #1D1D1F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Brand strip below hero */
.hero-brands-strip {
    background: rgba(245, 245, 247, 0.8);
    padding: 16px 0;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-brands-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.hero-brands-inner::-webkit-scrollbar {
    display: none;
}

.hero-brand-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hero-brand-item:hover {
    opacity: 1;
}

.hero-brand-item img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.hero-brand-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===========================
   OFFERTE DEL MESE
   =========================== */
#offerteGrid {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

#offerteGrid .guest-card {
    border: 3px solid var(--primary-blue);
}

.offerte-mese-info-card {
    background: var(--primary-blue);
    border-radius: 24px;
    padding: 28px 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.offerte-mese-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.offerte-mese-info-card h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: white;
}

.offerte-mese-arrow {
    width: auto;
    height: auto;
    padding: 8px 19px;
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.offerte-mese-arrow:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offerte-mese-arrow i {
    display: none;
}

.offerte-mese-arrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 14px;
    background: url('//cdn.noleggiamoauto.it/images/right-arrow-blue.svg') no-repeat center/contain;
}

.offerte-mese-icon-wrap {
    flex: 1;
    position: relative;
}

.offerte-mese-icon-img {
    --icon-size: 278px;
    --icon-x: -19px;
    --icon-y: 3px;
    width: var(--icon-size);
    height: var(--icon-size);
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.25;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--icon-x)), calc(-50% + var(--icon-y)));
}

.offerte-mese-info-card p {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
    margin-top: 16px;
}

/* Homepage: section header between offerte and parco auto */
.home-section-header {
    margin-top: 60px;
    margin-bottom: 32px;
}

.home-section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1D1D1F;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.home-section-header p {
    font-size: 0.95rem;
    color: #86868B;
    margin: 0;
}

/* Homepage: "Visualizza tutte le auto" button */
.btn-view-all-cars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-view-all-cars:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Offerte: pill arrow button outside boxed area */
.offerte-mese-more-btn {
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 5;
}

.offerte-mese-more-btn i {
    color: white;
    font-size: 16px;
}

.offerte-mese-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* ===========================
   CTA DISCOVER
   =========================== */
.cta-discover-section {
    padding: 50px 0;
    background: white;
    text-align: center;
}

.cta-discover-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-discover-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0 0 36px 0;
    line-height: 1.2;
}

.cta-discover-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px 18px 52px;
    border-radius: 0;
    border: none;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.cta-btn-filled {
    background-image: url('//cdn.noleggiamoauto.it/images/buttonScopriAuto.svg');
    color: white;
}

.cta-btn-filled:hover {
    filter: brightness(0.85);
    transform: translateY(-2px);
}

.cta-btn-outline {
    background-image: url('//cdn.noleggiamoauto.it/images/buttonComeFunziona.svg');
    color: #0068ff;
}

.cta-btn-outline:hover {
    background-image: url('//cdn.noleggiamoauto.it/images/buttonRichiediPreventivo.svg');
    color: white;
    transform: translateY(-2px);
}

/* ===========================
   COME FUNZIONA (4 Steps)
   =========================== */
.come-funziona-section {
    padding: 50px 0;
    background: #ffffff;
}

.come-funziona-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.come-funziona-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
}

.come-funziona-icon {
    display: inline-block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background-color: #2d63b5;
    -webkit-mask-image: url(//cdn.noleggiamoauto.it/images/icon.svg);
    mask-image: url(//cdn.noleggiamoauto.it/images/icon.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.come-funziona-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1D1D1F;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.come-funziona-subtitle {
    font-size: 1rem;
    color: #86868B;
    margin: 0;
    max-width: 600px;
}

.come-funziona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.come-funziona-card {
    background: #2d63b5;
    border-radius: 16px;
    padding: 28px 24px;
    border: none;
    transition: all 0.3s;
}

.come-funziona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(45, 99, 181, 0.3);
}

.come-funziona-num {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
    font-family: 'TTNormsPro', 'Outfit', sans-serif;
}

.come-funziona-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-family: 'TTNormsPro', 'Outfit', sans-serif;
}

.come-funziona-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    font-family: 'TTNormsPro', 'Outfit', sans-serif;
}

/* ===========================
   SERVIZI INCLUSI
   =========================== */
.servizi-section {
    padding: 80px 0;
    background: #000000;
    color: white;
}

.servizi-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.servizi-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.servizi-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 40px 0;
}

.servizi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.servizi-pill {
    background: white;
    border: none;
    color: #1D1D1F;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.servizi-pill:hover {
    background: #f0f0f0;
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner-section {
    padding: 80px 20px;
    background: #ffffff;
}

.cta-banner-section .cta-banner-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cta-banner-inner {
    background: #000000;
    border-radius: 16px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-banner-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: none;
    flex-shrink: 0;
}

.cta-banner-inner h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px 14px 40px;
    background: url('//cdn.noleggiamoauto.it/images/buttonRichiediPreventivo.svg') no-repeat center / 100% 100%;
    color: white;
    border-radius: 0;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-banner-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* ===========================
   NUMERO VERDE
   =========================== */
.numero-verde-section {
    padding: 40px 0 0;
    background: #ffffff;
}

.numero-verde-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.numero-verde-label {
    font-size: 1.1rem;
    color: #86868B;
    margin: 0;
    font-weight: 600;
}

.numero-verde-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1D1D1F;
}

.numero-verde-link:hover .numero-verde-number {
    color: var(--primary-blue);
}

.numero-verde-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.numero-verde-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1D1D1F;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    transition: color 0.2s;
}

/* Footer styles now in layout.css */

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        min-height: auto;
        padding-top: 20px;
    }

    .hero-form-col {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image-col {
        justify-content: center;
    }

    .hero-car-img {
        width: 80%;
        max-width: 400px;
    }

    .hero-stats {
        gap: 24px;
        padding: 14px 24px;
    }

    .offerte-mese-inner {
        flex-direction: column;
    }

    .offerte-mese-info-card {
        flex: none;
        width: 100%;
    }

    .come-funziona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 16px 0 0;
    }

    .hero-inner {
        gap: 24px;
        padding: 0 16px;
    }

    .hero-form-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    /* Touch-friendly: min 48px input/select */
    .hero-search-group input,
    .hero-select-group select {
        padding: 14px 16px 14px 42px;
        font-size: 15px;
        min-height: 48px;
    }

    .hero-select-group select {
        padding: 14px 36px 14px 16px;
    }

    .hero-search-btn {
        min-height: 52px;
        font-size: 15px;
    }

    .hero-client-btn {
        min-height: 44px;
        font-size: 14px;
    }

    .hero-brands-inner {
        justify-content: flex-start;
        gap: 20px;
    }

    .cta-discover-title {
        font-size: 1.6rem;
    }

    .cta-discover-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .come-funziona-title {
        font-size: 1.6rem;
    }

    .come-funziona-grid {
        grid-template-columns: 1fr;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .servizi-title {
        font-size: 1.5rem;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .cta-banner-left {
        flex-direction: column;
    }

    .cta-banner-inner h2 {
        font-size: 1.3rem;
    }

    .numero-verde-number {
        font-size: 1.4rem;
    }

    .offerte-nav-prev,
    .offerte-nav-next {
        display: none;
    }

    .offerte-mese-more-btn {
        display: none;
    }

}

@media (max-width: 480px) {
    .hero-section {
        padding: 12px 0 0;
    }

    .hero-inner {
        gap: 20px;
        padding: 0 12px;
    }

    .hero-form-col {
        max-width: 100%;
    }

    .hero-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .hero-form {
        gap: 12px;
    }

    .hero-form-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .hero-apophis-badge {
        margin-bottom: 14px;
    }

    .hero-car-img {
        width: 100%;
        max-width: 320px;
    }

    .hero-stats {
        gap: 12px;
        padding: 14px 12px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .hero-stat {
        flex: 1 1 30%;
        min-width: 80px;
        text-align: center;
    }

    .hero-stat-num {
        font-size: 1.15rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .come-funziona-card {
        padding: 24px 20px;
    }

    .come-funziona-num {
        font-size: 2rem;
    }

    .servizi-pill {
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .cta-discover-title {
        font-size: 1.3rem;
    }

    .numero-verde-inner {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 375px) {
    .hero-form-card {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-search-group input,
    .hero-select-group select {
        font-size: 14.5px;
    }

    .hero-stat-num {
        font-size: 1.05rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }
}

/* ===========================
   SQUIRCLE - Homepage elements
   =========================== */
@supports (background: paint(squircle)) {
    .hero-form-card {
        border-radius: 0 !important;
        --squircle-radius: 24;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

    .hero-stats {
        border-radius: 0 !important;
        --squircle-radius: 14;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

    .offerte-mese-info-card {
        border-radius: 0 !important;
        --squircle-radius: 24;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

    .come-funziona-card {
        border-radius: 0 !important;
        --squircle-radius: 16;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

    .servizi-pill {
        border-radius: 0 !important;
        --squircle-radius: 14;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

    .cta-banner-inner {
        border-radius: 0 !important;
        --squircle-radius: 16;
        --squircle-smooth: 0.8;
        -webkit-mask-image: paint(squircle);
        mask-image: paint(squircle);
    }

}

/* Badge Apophis nell'hero principale */
.hero-apophis-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-apophis-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.hero-apophis-badge img {
    height: 22px;
    width: auto;
    display: block;
}

.hero-apophis-badge span {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
}

@media (max-width: 600px) {
    .hero-apophis-badge {
        padding: 6px 14px 6px 10px;
    }

    .hero-apophis-badge img {
        height: 18px;
    }

    .hero-apophis-badge span {
        font-size: 0.68rem;
    }
}
