/*
Theme Name: Antonio Vario Portfolio
Author: Antonio Vario
Description: Tema portfolio one-page style per consulente digitale & web designer.
Version: 1.5
Text Domain: antoniovario
*/

/* ==========================
   RESET & BASE
   ========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, sans-serif;
    background: #f3f4ff;
    color: #0f172a;
    line-height: 1.6;
}

/* ==========================
   LAYOUT BASE
   ========================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.section {
    padding: 5.5rem 0;
    background: #f9fafb;
}

.section--tight {
    padding: 4rem 0;
}

/* sezione con fondo leggermente diverso per dare ritmo */
.section--alt {
    background: #eff3ff;
    position: relative;
}

/* strip orizzontale a tutta larghezza */
.section--strip {
    padding: 3.2rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: #e3e7ff;
}

.section__header {
    margin-bottom: 2.8rem;
}

.section__header--center {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.8rem;
}

.section__kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #6366f1;
    margin-bottom: 0.8rem;
}

.section__title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.9rem;
}

.section__subtitle {
    max-width: 65ch;
    color: #4b5563;
    font-size: 0.98rem;
}

/* ==========================
   TYPOGRAFIA
   ========================== */

h1,
h2,
h3,
h4 {
    margin: 0 0 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0 0 0.95rem;
    color: #111827;
    font-size: 0.96rem;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 3px;
}

/* ==========================
   BOTTONI GENERALI
   ========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

/* CTA primaria – gradiente lineare pulito */
.btn--primary {
    color: #020617;
    background: linear-gradient(
        90deg,
        #22c55e 0%,
        #16c987 40%,
        #0ea5e9 100%
    );
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.5);
    padding-inline: 1.7rem;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(16, 185, 129, 0.6);
}

/* CTA secondaria più leggibile sul dark */
.btn--ghost {
    background: rgba(241, 245, 249, 0.96);
    border-color: transparent;
    color: #020617;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.55);
    padding-inline: 1.4rem;
    font-weight: 600;
}

.btn--ghost:hover {
    background: #e5f0ff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.65);
}

/* CTA secondaria specifica per la HERO */
.hero__cta-secondary {
    background: rgba(241, 245, 249, 0.98) !important;
    color: #020617 !important;
    border-color: transparent !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6) !important;
}

.hero__cta-secondary:hover {
    background: #e5f0ff;
    color: #020617;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75);
}

.hero__cta-secondary:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 3px;
}

/* ==========================
   HEADER
   ========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.98),
        rgba(2, 6, 23, 0.98)
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* leggermente più margine ai lati solo per l'header */
.site-header .container {
    max-width: 1120px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 0.8rem 0;
}

/* BRANDING */

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.86rem;
    color: #0b1120;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.55),
        0 10px 18px rgba(15, 23, 42, 0.65);
}

.site-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

.site-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* NAV DESKTOP */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation.desktop-nav {
    flex: 1 1 auto;
    justify-content: center;
}

.main-navigation.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.main-navigation.desktop-nav a {
    font-size: 0.86rem;
    color: #e5e7eb;
    position: relative;
}

.main-navigation.desktop-nav a:hover {
    color: #ffffff;
}

.main-navigation.desktop-nav .current-menu-item > a::after,
.main-navigation.desktop-nav .current_page_item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
}

/* CTA DESKTOP (visibile solo su desktop) */

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.3rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}

/* MENU TOGGLE MOBILE (default: nascosto) */

.menu-toggle {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    color: #e5e7eb;
    gap: 0.4rem;
    align-items: center;
    cursor: pointer;
    transform: translateY(1px);
}

.menu-toggle-icon {
    width: 14px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 14px;
    height: 2px;
    border-radius: inherit;
    background: inherit;
}

.menu-toggle-icon::before {
    top: -4px;
}

.menu-toggle-icon::after {
    top: 4px;
}

.menu-toggle:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 3px;
    box-shadow: none;
}

/* NAV MOBILE */

    .main-navigation--mobile {
        display: none;
        background: radial-gradient(circle at 0 0, #02091f 0, #020617 60%);
        border-top: 1px solid rgba(148, 163, 184, 0.3);
    }

    .main-navigation--mobile.open {
        display: block;
    }

    .main-navigation--mobile ul {
        list-style: none;
        margin: 0;
        padding: 0.75rem 1.8rem;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    
    .main-navigation--mobile a {
        display: block;
        padding: 0.55rem 0;
        font-size: 1.02rem;
        color: #e5e7eb;
        border-bottom: none !important;
    }

    .main-navigation--mobile a:hover {
        color: #ffffff;
    }

    .main-navigation--mobile li a {
        position: relative;
    }

    .main-navigation--mobile li a::after {
        content: "";
        display: block;
        width: 28%; 
        max-width: 110px;
        height: 1px;
        margin-top: 0.3rem;
        background: linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.45),
            rgba(148, 163, 184, 0.05)
        );
    }

    .main-navigation--mobile li:last-child a::after {
        display: none;
    }
    
/* CTA in fondo al menu mobile */

    .mobile-menu-cta {
        padding: 0 0 1.6rem 1.6rem;
        display: block;
        justify-content: left;
        align-items: center;
    }

    .mobile-menu-cta .btn {
        font-size: 0.9rem;
        padding: 0.55rem 1rem;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
    }

    .mobile-menu-cta .btn.btn--primary {
        width: auto;
        max-width: 180px;
        font-size: 0.9rem;
        padding: 0.6rem 1.3rem;
        border-radius: 1.3rem;
        box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
    }



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

.hero {
    position: relative;
    padding: 5.2rem 0 4rem;
    background: radial-gradient(circle at 0 0, #02091f 0, #020617 60%);
    color: #e5e7eb;
    overflow: hidden;
}

.hero__bg-shape {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.18), transparent 60%);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: flex-start;
}

.hero__content {
    position: relative;
}

.hero__kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.9rem;
}

.hero__title {
    font-size: clamp(2.3rem, 4vw, 3.3rem);
    margin-bottom: 1.1rem;
}

.hero__subtitle {
    max-width: 40rem;
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 1.7rem;
}

/* badge */

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #cbd5f5;
    background: rgba(15, 23, 42, 0.85);
    white-space: nowrap;
}

.pill--outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.8);
    color: #1e293b;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

/* colonna laterale hero */

.hero__side {
    position: relative;
}

.hero-highlight {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 1.7rem 1.5rem;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), #020617 65%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.hero-highlight__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5b4fc;
    margin-bottom: 0.8rem;
}

.hero-highlight__list {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.hero-highlight__list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-highlight__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
}

.hero-highlight__note {
    font-size: 0.82rem;
    color: #cbd5f5;
    opacity: 0.9;
}

/* ==========================
   STRIP “PER CHI È”
   ========================== */

.strip__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4f46e5;
}

.strip__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.strip__text {
    max-width: 60ch;
    font-size: 0.96rem;
}

/* ==========================
   GRID / CARD / FEATURE
   ========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem;
}

.card-grid--portfolio {
    margin-top: 0.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e5e7f5;
    padding: 1.6rem 1.6rem 1.5rem;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card--soft {
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.card__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.card__title {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.card__meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Sezione risultati: card più "importanti" */
#cosa-cambia .feature {
    position: relative;
    border-color: #cdd4ff;
}

/* piccolo badge icona in alto a sinistra */
#cosa-cambia .feature::before {
    content: "✓";
    position: absolute;
    top: 1.1rem;
    left: 1.3rem;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    background: radial-gradient(circle at 0 0, #22c55e, #0ea5e9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

/* per non far "sovrapporre" il contenuto al badge */
#cosa-cambia .feature__title {
    padding-left: 1.9rem;
}

#cosa-cambia .feature p {
    padding-left: 1.9rem;
}

/* Prima card servizi: "servizio principale" */
#servizi-home .card-grid .card:first-child {
    border-color: #36d399;
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.22);
}

/* Portfolio: card leggermente diverse dal resto */
#portfolio-home .card {
    border-color: #cdd4ff;
}

/* FEATURE GRID */

.feature-grid {
    display: grid;
    gap: 1.9rem;
}

.feature-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
    border-radius: 1.5rem;
    border: 1px solid #e5e7f5;
    padding: 1.6rem 1.6rem 1.4rem;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06);
}

.feature__title {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

/* ==========================
   STEPS (Come lavoreremo insieme)
   ========================== */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(148, 163, 184, 0.9);
    display: flex;
    flex-direction: column;
    gap: 2.1rem;
}

.steps__content {
    padding-top: 0.2rem;
}

.steps__item {
    position: relative;
    padding-left: 2.6rem;
}

.steps__badge {
    position: absolute;
    left: -0.8rem;
    top: 0.1rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #020617;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.85);
}

.steps__title {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

/* ==========================
   BLOCCO CTA FINALE E FAQ
   ========================== */

.section-cta {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 3rem;
    margin-top: 3rem;
}

.section-cta--portfolio {
    margin-top: 2.8rem;
}

.section-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-cta__title {
    font-size: 1.3rem;
}

.section-cta__subtitle {
    max-width: 60ch;
    font-size: 0.96rem;
    color: #4b5563;
}

/* FAQ + CTA finale */

.faq-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.faq-cta__main {
    position: relative;
    z-index: 1;
}

.faq-cta__faq {
    border-radius: 1.5rem;
    border: 1px solid #e5e7f5;
    padding: 1.6rem 1.6rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* FAQ details/summary */

.faq {
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.7rem 0;
}

.faq:last-of-type {
    border-bottom: none;
}

.faq > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 500;
    color: #111827;
}

.faq > summary::-webkit-details-marker {
    display: none;
}

.faq > summary::after {
    content: "+";
    float: right;
    font-size: 1.1rem;
    color: #9ca3af;
    transition: transform 0.15s ease;
}

.faq[open] > summary::after {
    transform: rotate(45deg);
}

.faq p {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    color: #4b5563;
}

/* ==========================
   PORTFOLIO / TESTIMONIAL
   ========================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.testimonial {
    border-radius: 1.5rem;
    border: 1px solid #e5e7f5;
    padding: 1.5rem 1.6rem;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06);
}

.testimonial__text {
    font-size: 0.94rem;
    margin-bottom: 0.7rem;
}

.testimonial__meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #020617;
}

/* ==========================
   BLOG / ARCHIVE / SINGLE
   ========================== */

.post-list {
    display: grid;
    gap: 1.9rem;
}

.post-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.post-card-meta {
    font-size: 0.82rem;
    color: #6b7280;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-header h1 {
    font-size: 1.9rem;
}

.single-post-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ==========================
   PAGINE LEGALI
   ========================== */

.legal-page {
    max-width: 70ch;
}

/* ==========================
   FOOTER
   ========================== */

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.85);
    background: #020617;
    padding: 2rem 0 2.4rem;
    font-size: 0.82rem;
    color: #9ca3af;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
}

.footer-nav a {
    color: #9ca3af;
}

.footer-nav a:hover {
    color: #e5e7eb;
}

/* 404 */

.not-found {
    text-align: center;
    padding: 4.5rem 0 5.2rem;
}

.not-found h1 {
    font-size: 2rem;
}

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

/* <= 960px: tablet + mobile largo */
@media (max-width: 960px) {
    
    /* Header mobile */
    
    .site-header .container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
    
    /* Logo mobile */
    
    .brand-mark {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
        filter: brightness(0.95) saturate(0.9);
    }


    .site-title {
        font-size: 1rem;
        font-weight: 600;
        color: #f1f5f9;
    }
    
    .site-tagline {
        font-size: 0.78rem;
        line-height: 1.25;
        max-width: 11.5rem;
        white-space: normal;
    }


    .site-tagline__secondary {
        display: none;
    }


    /* Header: nascondo nav desktop + CTA, mostro menu toggle */
    
    .main-navigation.desktop-nav {
        display: none;
    }
    
    .header-cta {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex;
    }
    
    /* HERO layout */
   
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .hero__side {
        max-width: 520px;
    }

    /* Griglie */
   
    .feature-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-cta {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* <= 768px: mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 4.2rem;
        padding-bottom: 3.4rem;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .hero__title {
        font-size: 1.9rem;
        line-height: 1.15;
    }
    
    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.3rem;
    }
  
    .hero__badges {
        margin-bottom: 0.9rem; 
        row-gap: 0.35rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 1.3rem;
    }

    .hero__actions .btn--primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero__actions .btn--ghost {
        font-size: 0.9rem;
    }


    .section {
        padding: 4rem 0;
    }

    .section-cta {
        padding-top: 2.7rem;
        margin-top: 2.7rem;
    }

    .feature-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Bottoni full-width solo fuori dall'header */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .site-header .btn {
        width: auto;
        justify-content: center;
    }

    .site-header .container {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }
}

/* === Mobile: 380px */

@media (max-width: 380px) {
    .site-tagline {
        white-space: normal;
        line-height: 1.25;
        max-width: 160px;
    }
}

/* === FIX CTA SECONDARIA HERO ===================== */

body.home .hero__actions a.btn.btn--ghost {
    background: rgba(241, 245, 249, 0.98) !important;
    color: #020617 !important;
    border-color: transparent !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6) !important;
    padding-inline: 1.6rem;
}

body.home .hero__actions a.btn.btn--ghost:hover {
    background: #e5f0ff !important;
    color: #020617 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75) !important;
}

body.home .hero__actions a.btn.btn--ghost:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 3px;
}
