/**
 * GrantRadar — Marketing CSS
 * Stili per le pagine pubblicitarie pubbliche.
 * Riusa le variabili di fogliostile.css
 */

/* ===============================================
   BRAND COLORS — Override per le pagine marketing
   Il brand GrantRadar usa l'arancione vivace del logo,
   diverso dal gold di fogliostile.css
   =============================================== */
:root {
    --gr-orange:       #e85520;
    --gr-orange-dark:  #c44214;
    --gr-orange-light: #f06b38;
    --gr-amber:        #f0a020;
}

/* ===============================================
   RESET MARKETING (override body di fogliostile)
   =============================================== */
/* Azzera il padding di html/body impostato da fogliostile.css */
html:has(body.marketing-page) {
    padding: 0 !important;
    margin: 0 !important;
}

body.marketing-page {
    background: var(--white);
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px;
    /* Override colori brand per le pagine marketing:
       usa il brand orange di GrantRadar al posto del gold di fogliostile */
    --primary-color:   var(--gr-orange);
    --primary-dark:    var(--gr-orange-dark);
    --primary-light:   var(--gr-orange-light);
    --secondary-color: var(--gr-orange-dark);
    --shadow-primary:  0 10px 25px rgba(232, 85, 32, 0.3);
    --border-color-focus: var(--gr-orange);
}

/* ===============================================
   HERO BANNER — testata.png full-width
   =============================================== */
.hero-banner {
    width: 100%;
    line-height: 0;
    background: linear-gradient(to bottom, rgb(223, 85, 47) 0%, rgb(228, 100, 52) 100%);
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    max-height: 160px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Skip link — visibile solo al focus (accessibilità) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--gr-blue);
    color: #fff;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* Nasconde l'h1 visivamente ma lo mantiene per screen reader e SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===============================================
   HERO CTA STRIP — sotto testata.png
   =============================================== */
.hero-cta-strip {
    background: linear-gradient(135deg, var(--gr-orange) 0%, #c44214 100%);
    padding: 40px var(--spacing-xl);
    text-align: center;
}

.hero-cta-sub {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto var(--spacing-xl);
}

.hero-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: rgba(255,255,255,0.08);
}

.btn-cta-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.9);
    text-decoration: none;
    color: var(--white);
}

.hero-cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ===============================================
   STATS BAR
   =============================================== */
.stats-bar {
    background: var(--gray-900);
    padding: 22px 0;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 40px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gr-amber);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* ===============================================
   PHOTO SPLIT — immagine + testo affiancati
   =============================================== */
.photo-split {
    display: grid;
    gap: var(--spacing-2xl);
    align-items: center;
}

.photo-split-right {
    grid-template-columns: 1fr 1fr;
}

.photo-split-left {
    grid-template-columns: 1fr 1fr;
}

/* Per photo-split-left: immagine a sinistra, testo a destra */
.photo-split-left .photo-split-img { order: 1; }
.photo-split-left .photo-split-text { order: 2; }

.photo-split-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
}

.photo-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-split-img:hover img {
    transform: scale(1.03);
}

.photo-split-text .section-eyebrow {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.photo-split-text .section-title {
    margin-bottom: var(--spacing-md);
}

.photo-split-text > p {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

/* ===============================================
   ICON LISTS (buono/cattivo)
   =============================================== */
.icon-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
}

.icon-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list-good li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 800;
}

.icon-list-bad li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: 800;
}

/* ===============================================
   SECTION BRAND LIGHT
   =============================================== */
.section-brand-light {
    background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%);
    border-top: 1px solid rgba(232, 85, 32, 0.1);
    border-bottom: 1px solid rgba(232, 85, 32, 0.1);
}

/* ===============================================
   NAVIGATION
   =============================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    min-height: 68px;
    gap: var(--spacing-lg);
    box-sizing: border-box;
}

.nav-logo {
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(5px);
    gap: 10px;
}

.nav-logo img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gr-orange);
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

.nav-logo:hover {
    text-decoration: none;
    transform: none;
}

.nav-logo:hover img {
    transform: none;
    border: none;
}

.nav-logo:hover .nav-logo-text {
    color: var(--white);
}

/* Lista nav: stretch fa sì che ogni <li> occupi i 68px interi */
.nav-links {
    display: flex;
    align-items: stretch;
    height: 68px;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* <li> è un container flex centrato a 68px — la <a> resta button-sized al centro */
.nav-links li {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 8px 11px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    line-height: 1;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: none;
    box-shadow: inset 0 -2px 0 var(--primary-color);
    text-decoration: none;
    transform: none;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
    /* box-shadow non altera le dimensioni del box, a differenza di border */
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

.nav-cta {
    flex-shrink: 0;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white) !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(232, 85, 32, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 85, 32, 0.5);
    text-decoration: none;
    color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    z-index: 999;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-mobile .btn-nav-cta {
    display: block;
    text-align: center;
    margin-top: var(--spacing-md);
    padding: 12px;
    border-bottom: none;
}

/* ===============================================
   CONTAINER
   =============================================== */
.marketing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 40%, #5c2d00 100%);
    color: var(--white);
    padding: 100px var(--spacing-xl) 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(184, 134, 11, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(204, 102, 51, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(184, 134, 11, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.4);
    color: #f0b429;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    text-shadow: none;
}

.hero h1 span {
    background: linear-gradient(135deg, #f0b429 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: var(--white);
    color: var(--gr-orange-dark);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
    text-decoration: none;
    color: var(--gr-orange-dark);
    background: #fff8f5;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

.hero-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f0b429;
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    display: block;
}

/* ===============================================
   SEZIONI GENERALI
   =============================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--spacing-2xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gr-orange);
    margin-bottom: var(--spacing-sm);
}

.section-dark .section-eyebrow {
    color: #f0b429;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-dark .section-title {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ===============================================
   PROBLEMA / SOLUZIONE
   =============================================== */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.problem-box, .solution-box {
    padding: 36px;
    border-radius: var(--radius-xl);
}

.problem-box {
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.solution-box {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.06) 0%, rgba(204, 102, 51, 0.06) 100%);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.problem-box h3 {
    color: #dc2626;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.solution-box h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.problem-list, .solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #7f1d1d;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.08);
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

.solution-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.08);
}

.solution-list li:last-child {
    border-bottom: none;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* ===============================================
   CARDS GRIGLIA
   =============================================== */
.cards-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
}

.feature-card:hover {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.12);
    transform: translateY(-3px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 85, 32, 0.1) 0%, rgba(196, 66, 20, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Badge Prossimamente */
.badge-soon {
    display: inline-block;
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ===============================================
   STEPS — COME FUNZIONA
   =============================================== */
.steps-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    position: relative;
}

.steps-simple::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--gr-orange), var(--gr-orange-dark));
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 4px 16px rgba(232, 85, 32, 0.35);
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Steps dettagliati */
.steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.step-detail {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.step-detail:last-child {
    border-bottom: none;
}

.step-detail-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(232, 85, 32, 0.3);
}

.step-detail-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.step-detail-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.step-detail-content ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0;
}

.step-detail-content ul li {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-detail-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ===============================================
   FULLWIDTH PHOTO STRIP
   =============================================== */
.fullwidth-photo {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    max-height: 360px;
}

.fullwidth-photo img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===============================================
   TARGET PHOTO CARDS — per-chi.php
   =============================================== */
.target-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Versione a 4 colonne compatte per la homepage */
.target-photo-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.target-photo-grid-4 .target-photo-card-img {
    height: 160px;
}

.target-photo-grid-4 .target-photo-card-body {
    padding: 18px 20px;
}

.target-photo-grid-4 .target-photo-card-body h3 {
    font-size: 1rem;
}

.target-photo-grid-4 .target-photo-card-body p {
    font-size: 0.825rem;
}

/* Versione a 5 colonne compatte per la homepage */
.target-photo-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.target-photo-grid-5 .target-photo-card-img,
.target-photo-grid-6 .target-photo-card-img,
.target-photo-grid-7 .target-photo-card-img {
    height: 120px;
}

.target-photo-grid-5 .target-photo-card-body,
.target-photo-grid-6 .target-photo-card-body,
.target-photo-grid-7 .target-photo-card-body {
    padding: 14px 16px;
}

.target-photo-grid-5 .target-photo-card-body h3,
.target-photo-grid-6 .target-photo-card-body h3,
.target-photo-grid-7 .target-photo-card-body h3 {
    font-size: 0.95rem;
}

.target-photo-grid-5 .target-photo-card-body p,
.target-photo-grid-6 .target-photo-card-body p,
.target-photo-grid-7 .target-photo-card-body p {
    font-size: 0.8rem;
}

/* Versione a 6 colonne — homepage con il target "comuni" incluso */
.target-photo-grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
}

/* Versione a 7 colonne — homepage con anche "scrittori di bandi" */
.target-photo-grid-7 {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 1100px) {
    .target-photo-grid-7 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .target-photo-grid-7 { grid-template-columns: repeat(2, 1fr); }
}

.target-photo-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.target-photo-card:hover {
    box-shadow: 0 12px 40px rgba(232, 85, 32, 0.12);
    transform: translateY(-4px);
    border-color: rgba(232, 85, 32, 0.25);
}

.target-photo-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.target-photo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.target-photo-card:hover .target-photo-card-img img {
    transform: scale(1.05);
}

.target-photo-card-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.target-photo-card-body {
    padding: 28px;
}

.target-photo-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.target-photo-card-body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.target-photo-card-body p:last-child {
    margin-bottom: 0;
}

.target-photo-card-example {
    font-size: 0.825rem !important;
    color: var(--text-light) !important;
    background: var(--gray-50);
    border-left: 3px solid var(--gr-orange);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: var(--spacing-md) !important;
}

.target-photo-card-example strong {
    color: var(--gr-orange);
}

/* ===============================================
   TARGET CARDS (versione semplice — homepage)
   =============================================== */
.target-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all var(--transition-normal);
    text-align: left;
}

.target-card:hover {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.12);
    transform: translateY(-3px);
}

.target-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.target-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.target-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Vantaggi */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 20px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-lg);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--success-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===============================================
   PRICING TABLE
   =============================================== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.pricing-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-300);
    border-radius: 50px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.pricing-save-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 40px rgba(184, 134, 11, 0.2);
    transform: scale(1.03);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-3px);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(232, 85, 32, 0.4);
}

.pricing-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--spacing-sm);
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    min-height: 3.75rem;
}

.pricing-price {
    margin-bottom: var(--spacing-lg);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-currency {
    font-size: 1.2rem;
    font-weight: 700;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
    color: var(--text-secondary);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 4px;
}

.pricing-annual-note {
    font-size: 0.8rem;
    color: var(--success-color);
    margin-top: 4px;
    display: block;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-lg) 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-xl);
}

.pricing-features li {
    padding: 7px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.btn-pricing-outline {
    border: 2px solid var(--gr-orange);
    color: var(--gr-orange);
    background: transparent;
}

.btn-pricing-outline:hover {
    background: rgba(232, 85, 32, 0.06);
    text-decoration: none;
    color: var(--gr-orange-dark);
}

.btn-pricing-filled {
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-pricing-filled:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 85, 32, 0.45);
    text-decoration: none;
    color: var(--white);
}

.pricing-trial-note {
    text-align: center;
    margin-top: var(--spacing-xl);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-trial-note strong {
    color: var(--primary-color);
}

/* ===============================================
   FAQ ACCORDION
   =============================================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

details[open] .faq-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 var(--spacing-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* ===============================================
   CHI SIAMO
   =============================================== */
.team-section {
    background: linear-gradient(135deg, rgba(232, 85, 32, 0.05) 0%, rgba(196, 66, 20, 0.03) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(232, 85, 32, 0.12);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.value-card {
    text-align: center;
    padding: 28px;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   CONTATTI
   =============================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(204, 102, 51, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-item-text span,
.contact-item-text a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--white);
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--gr-orange) 0%, var(--gr-orange-dark) 100%);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 3px 12px rgba(232, 85, 32, 0.3);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(232, 85, 32, 0.5);
}

.form-privacy-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta-section {
    background: linear-gradient(135deg, var(--gr-orange-dark) 0%, var(--gr-orange) 60%, var(--gr-orange-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.cta-section .marketing-container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-2xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: 48px;
}

.footer-brand .nav-logo-text {
    font-size: 1.5rem;
}

.footer-brand p {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-col .footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 400;
}

.footer-col ul li a:hover {
    color: #f0b429;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-copyright {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 400;
}

.footer-legal a:hover {
    color: #f0b429;
    text-decoration: none;
}

/* ===============================================
   PAGE HEADER (pagine interne)
   =============================================== */
.page-hero {
    background: linear-gradient(135deg, var(--gr-orange-dark) 0%, var(--gr-orange) 60%, var(--gr-orange-light) 100%);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.page-hero .marketing-container {
    position: relative;
    z-index: 1;
}

/* Eyebrow nei page-hero: bianco su sfondo arancione */
.page-hero .section-eyebrow {
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    text-shadow: none;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   PERCHÉ GRANTRADAR section
   =============================================== */
.differentiators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.differentiators-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diff-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.diff-list li:last-child {
    border-bottom: none;
}

.diff-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.differentiators-visual {
    background: linear-gradient(135deg, rgba(232, 85, 32, 0.05) 0%, rgba(196, 66, 20, 0.04) 100%);
    border: 1px solid rgba(232, 85, 32, 0.15);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.comparison-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px 0;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    font-size: 0.875rem;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comp-label {
    flex: 1;
    color: var(--text-secondary);
}

.comp-others {
    width: 80px;
    text-align: center;
    color: #dc2626;
    font-size: 0.8rem;
}

.comp-gr {
    width: 80px;
    text-align: center;
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.comp-header {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===============================================
   IL NOSTRO APPROCCIO section
   =============================================== */
.approach-section {
    background: linear-gradient(135deg, #fff5f0 0%, #fff0e8 100%);
    border-top: 1px solid rgba(232, 85, 32, 0.1);
    border-bottom: 1px solid rgba(232, 85, 32, 0.1);
}

.approach-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.approach-point {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 85, 32, 0.12);
    text-align: center;
}

.approach-point-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

.approach-point h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.approach-point p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 60px var(--spacing-lg) 50px;
    }

    .hero-stats {
        gap: var(--spacing-xl);
    }

    .section {
        padding: 56px 0;
    }

    .marketing-container {
        padding: 0 var(--spacing-lg);
    }

    .hero-banner img {
        max-height: 130px;
    }

    .hero-cta-strip {
        padding: 28px var(--spacing-lg);
    }

    .hero-cta-sub {
        font-size: 0.95rem;
    }

    .hero-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-ghost {
        text-align: center;
        justify-content: center;
    }

    .stats-bar-inner {
        gap: 0;
    }

    .stat-item {
        padding: 8px 16px;
    }

    .stat-sep {
        height: 24px;
    }

    .target-photo-grid,
    .target-photo-grid-4,
    .target-photo-grid-5,
    .target-photo-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .target-photo-grid-4 .target-photo-card-img,
    .target-photo-grid-5 .target-photo-card-img,
    .target-photo-grid-6 .target-photo-card-img {
        height: 130px;
    }

    .fullwidth-photo,
    .fullwidth-photo img {
        max-height: 220px;
        height: 220px;
    }

    .photo-split-right,
    .photo-split-left {
        grid-template-columns: 1fr;
    }

    .photo-split-left .photo-split-img { order: 1; }
    .photo-split-left .photo-split-text { order: 2; }

    .photo-split-img {
        aspect-ratio: 16/9;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .steps-simple {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .steps-simple::before {
        display: none;
    }

    .cards-grid-2,
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .approach-points {
        grid-template-columns: 1fr;
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-section {
        padding: 28px;
    }

    .contact-form-box {
        padding: 24px;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
    }

    .nav-inner {
        padding: 0 var(--spacing-lg);
    }

    .step-detail {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .target-photo-grid,
    .target-photo-grid-4,
    .target-photo-grid-5,
    .target-photo-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   LEGAL PAGES — privacy-policy, cookie-policy, contratto
   =============================================== */

.legal-page {
    max-width: 860px;
    margin: 3rem auto 0;
    padding: 0 1.5rem 4rem;
    line-height: 1.75;
    color: var(--text-primary, #222);
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary, #222);
}

.legal-page .legal-update {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    margin-top: 0;
    margin-bottom: 2.5rem;
}

/* Stampa: mostra solo l'articolo legale senza nav-bar marketing né footer.
   Vale per tutte le legal-page (privacy, cookie, contratto).
   Nota: .site-nav ha `position: sticky` a video; alcuni browser in stampa
   ignorano `display: none` su elementi sticky e lo riposizionano a metà
   pagina. Resettiamo anche `position: static` come safety. */
@media print {
    @page { margin: 14mm; }
    html, body { background: #fff !important; }
    body.marketing-page { padding: 0 !important; margin: 0 !important; }
    .site-nav,
    .site-nav *,
    .site-footer,
    .site-footer *,
    .skip-link,
    .nav-mobile,
    .nav-hamburger { display: none !important; visibility: hidden !important; position: static !important; height: 0 !important; }
    .site-nav { box-shadow: none !important; border: none !important; }
    .legal-page {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10.5pt;
        line-height: 1.5;
        color: #111 !important;
    }
    .legal-page h1 {
        font-size: 18pt;
        margin: 0 0 6pt;
        page-break-after: avoid;
    }
    .legal-page .legal-update {
        font-size: 9pt;
        margin-bottom: 14pt;
        color: #666 !important;
    }
    .legal-page h2 {
        font-size: 12.5pt;
        margin-top: 14pt;
        margin-bottom: 6pt;
        page-break-after: avoid;
        border-left-color: #999 !important;
    }
    .legal-page h3 {
        font-size: 11pt;
        margin-top: 10pt;
        margin-bottom: 4pt;
        page-break-after: avoid;
    }
    .legal-page p,
    .legal-page ul,
    .legal-page ol {
        margin-bottom: 6pt;
        orphans: 3;
        widows: 3;
    }
    .legal-page a {
        color: #111 !important;
        text-decoration: none !important;
    }
    /* Tabella cookie: mantiene leggibilità a stampa */
    .legal-page .cookie-table-wrap { box-shadow: none !important; overflow: visible !important; }
    .legal-page .cookie-table { font-size: 8.5pt; page-break-inside: auto; }
    .legal-page .cookie-table thead { display: table-header-group; }
    .legal-page .cookie-table thead th {
        background: #eee !important;
        color: #111 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .legal-page .cookie-table tr { page-break-inside: avoid; }
}

.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--gr-orange);
    color: var(--text-primary, #222);
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #333);
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
}

.legal-page a {
    color: var(--gr-orange);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--gr-orange-dark);
}

/* Wrapper per scroll orizzontale su mobile */
.legal-page .cookie-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0 2.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: #fff;
}

.cookie-table thead th {
    background: var(--gr-orange);
    color: #fff;
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.cookie-table tbody tr:hover {
    background: #fff4ef;
}

.cookie-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #ebebeb;
    vertical-align: top;
    line-height: 1.5;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

/* Prima colonna: nome cookie in monospace */
.cookie-table td:first-child {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: #444;
    word-break: break-word;
    min-width: 120px;
}

/* Colonna Scadenza e Tipo: non spezzare */
.cookie-table td:nth-child(4),
.cookie-table td:nth-child(5) {
    white-space: nowrap;
}

.cookie-table a {
    color: var(--gr-orange);
    text-decoration: none;
}

.cookie-table a:hover {
    text-decoration: underline;
}

/* ===============================================
   COOKIE BANNER (GDPR)
   =============================================== */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 980px;
    background: #fff;
    color: var(--gray-900);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    padding: 22px 26px;
    font-size: 0.95rem;
    line-height: 1.55;
    display: none;
}

.cookie-banner[data-open="1"] {
    display: block;
}

.cookie-banner__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gray-900);
}

.cookie-banner__text {
    margin: 0 0 16px;
    color: #444;
}

.cookie-banner__text a {
    color: var(--gr-orange);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-banner__actions .cookie-btn {
    flex: 0 0 auto;
}

.cookie-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gray-900);
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--gr-orange);
    outline-offset: 2px;
}

.cookie-btn--primary {
    background: var(--gr-orange);
    color: #fff;
    border-color: var(--gr-orange);
}

.cookie-btn--primary:hover {
    background: var(--gr-orange-dark);
    border-color: var(--gr-orange-dark);
}

.cookie-btn--secondary {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: var(--gray-900);
}

.cookie-btn--secondary:hover {
    background: #e5e7eb;
}

.cookie-btn--ghost {
    background: transparent;
    color: #555;
    border-color: transparent;
    text-decoration: underline;
    padding-left: 6px;
    padding-right: 6px;
}

.cookie-btn--ghost:hover {
    color: var(--gr-orange);
}

/* Pannello preferenze */
.cookie-prefs {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.cookie-banner[data-mode="prefs"] .cookie-prefs {
    display: block;
}

.cookie-banner[data-mode="prefs"] .cookie-banner__actions--main {
    display: none;
}

.cookie-pref {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cookie-pref__info {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-pref__name {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.cookie-pref__desc {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cookie-pref__toggle {
    flex: 0 0 auto;
    margin-top: 2px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s;
    cursor: pointer;
}

.cookie-switch__slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: var(--gr-orange);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-banner__actions--prefs {
    display: none;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner[data-mode="prefs"] .cookie-banner__actions--prefs {
    display: flex;
}

/* Link "Gestisci cookie" nel footer */
.footer-legal .cookie-manage-link {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.footer-legal .cookie-manage-link:hover {
    color: var(--gr-orange);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 18px 20px 20px;
    }

    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
