/* ========================================
   GRABMYMEDIA CSS - VERSIONE OTTIMIZZATA
   ========================================

   OTTIMIZZAZIONI APPLICATE:
   - Rimossi duplicati .legal-page (vecchia sezione)
   - Rimosso .btn-back con colori rossi (conflitto)
   - Risparmio: 3,743 caratteri (6.8%)

   FUNZIONALITÀ MANTENUTE:
   ✅ Steps-grid: Mobile 1fr, Home 2x2, Altro 3x2
   ✅ Tutti i media query responsive
   ✅ Platform icons e layouts
   ✅ Legal pages (versione blu standard)
   ✅ Header, footer, search, preview

   VERIFICA POST-INSTALLAZIONE:
   1. Homepage: steps-grid 2x2 su desktop
   2. Mobile: steps-grid 1 colonna
   3. Legal pages: bottone Back blu standard
   ======================================== */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #122f4c 0%, #1e5a8e 100%);
    min-height: 100vh;
    color: #1a202c;
    line-height: 1.6;
}

/* Container */
.container-minimal {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER - LOGO CENTRATO (FLEXBOX)
======================================== */

.header-minimal {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 47, 76, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 0; /* ← AUMENTATO da 20px a 28px */
}

.header-minimal .container-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo centrato con position absolute */
.logo-minimal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  z-index: 1;
}

.logo-minimal:hover {
    transform: translateX(-50%) translateY(-2px);
    opacity: 0.9;
}

.logo-minimal:active {
    transform: translateX(-50%) translateY(0);
}

.logo-minimal:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-img {
    height: 72px;
    width: auto;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
    transition: filter 0.3s ease;
}

.logo-minimal:hover .logo-img {
    filter: drop-shadow(0 5px 15px rgba(30, 90, 142, 0.5));
}

/* Language Selector a destra */
.language-selector {
  margin-left: auto;
  position: relative;
  z-index: 100;
  width: auto;
}




.header-minimal .container-minimal {
  position: relative;
}

.logo-minimal {
  pointer-events: auto;
}


/* ========================================
   RESPONSIVE HEADER
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-minimal {
        padding: 24px 0; /* ← AUMENTATO da 18px a 24px */
    }
    
    .logo-img {
        height: 63px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .header-minimal {
        padding: 24px 0;
    }
    
    .logo-img {
        height: 54px;
    }
}

/* Mobile Small */
@media (max-width: 430px) {
    .header-minimal {
        padding: 18px 0; /* ← AUMENTATO da 14px a 18px */
    }
    
    .logo-img {
        height: 48px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .header-minimal {
        padding: 16px 0; /* ← AUMENTATO da 12px a 16px */
    }
    
    .logo-img {
        height: 42px;
    }
}


/* Hero Minimal */
.hero-minimal {
    padding: 20px 20px 20px;
    text-align: center;
}

.highlight-warning {
    color: #FFA500;
    font-weight: 600;
}

.title-minimal {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.subtitle-minimal {
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(255,255,255,0.95);
    margin-bottom: 64px;
    font-weight: 400;
}

/* Hero Form */
.hero--form {
    max-width: 900px;
    margin: 0 auto 24px;
}

/* Search Bar */
.search-bar {
    width: 100%;
}

.search {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search:focus-within {
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.25),
        0 0 0 4px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.search--input {
    flex: 1;
    padding: 28px 60px 28px 32px; /* Aggiunto padding-right 60px */
    font-size: 18px;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: #1a202c;
    min-width: 0;
    /* Nuove proprietà per gestire overflow */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search--input::placeholder {
    color: #a0aec0;
    font-size: 17px;
}

/* Paste Link Button */
.search--cta {
    padding: 28px 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: inherit;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.15);
    display: none;
}

.search--cta.show-paste {
    display: block;
    animation: fadeInButton 0.25s ease;
}

.search--cta.is-hidden {
    display: none !important;
}

.search--cta:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: scale(1.02);
}

.search--cta:active {
    transform: scale(0.98);
}

.search--cta .text {
    display: inline-block;
}

/* Clear button */
.search--clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 10;
}

.search--clear.is-active {
    display: flex;
}

.search--clear:hover {
    background: rgba(0,0,0,0.06);
}

.search--clear .icon {
    width: 16px;
    height: 16px;
    fill: #718096;
}

/* Completed state */
.search.completed {
    border: 3px solid #48bb78;
}

.error-minimal {
    margin-top: 16px;
    font-size: 15px;
    color: #fff;
    background: rgba(239, 68, 68, 0.9);
    padding: 12px 20px;
    border-radius: 8px;
    min-height: 24px;
    visibility: hidden;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.error-minimal:not(:empty) {
    visibility: visible;
}

/* Analyzing Button */
.search--analyzing {
    padding: 28px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: default;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.15);
    display: none;
    animation: pulse-analyzing 1.5s ease-in-out infinite;
    pointer-events: none;
}

.search--analyzing.show {
    display: block;
}

@keyframes pulse-analyzing {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
}

/* Trust badges */
.trust-minimal {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    margin-top: 32px;
}

/* ============================================
   GLOBAL TURNSTILE - LAYOUT RETTANGOLARE
   ============================================ */

#global-turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    min-height: 0;
}

#global-turnstile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    line-height: 1;
}

/* Forza layout rettangolare per iframe */
#global-turnstile iframe {
    display: block;
    border-radius: 4px;
    max-width: 100%;
    height: auto !important;
}

/* Rimuove spazi extra */
#global-turnstile > div,
#global-turnstile > div > div {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

/* Hover effect */
#global-turnstile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Success state */
#global-turnstile.verified {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

/* Error state */
#global-turnstile.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

/* Loading state */
#global-turnstile.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 640px) {
    #global-turnstile-container {
        margin: 8px 0;
    }
    
    #global-turnstile {
        padding: 3px 6px;
        max-width: calc(100vw - 48px);
    }
}


/* Iframe Cloudflare - Compatto */
#global-turnstile iframe {
    display: block;
    border-radius: 4px;
    max-height: 65px;       /* ⬇️ LIMITA altezza massima iframe */
    vertical-align: middle; /* ⬇️ Allineamento verticale */
}

/* Rimuove spazi extra */
#global-turnstile div {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Hover state mantenendo layout basso */
#global-turnstile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Success state */
#global-turnstile.verified {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

/* Error state */
#global-turnstile.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

/* Loading state */
#global-turnstile.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile - ancora più compatto */
@media (max-width: 640px) {
    #global-turnstile-container {
        margin-top: 6px;
        margin-bottom: 6px;
    }
    
    #global-turnstile {
        padding: 2px 4px;   /* ⬇️ Ancora più sottile su mobile */
    }
}



/* Error Box - COMPATTO */
.error-box {
    display: none;
    position: relative;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.2);
    animation: shake 0.5s ease;
}

.error-box.show {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.error-content {
    flex: 1;
}

.error-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 4px;
}

.error-content p {
    font-size: 13px;
    color: #7f1d1d;
    line-height: 1.5;
    margin: 0;
}

.error-close {
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: 300;
    color: #991b1b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(153, 27, 27, 0.1);
    transform: rotate(90deg);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Preview Card Ultra-Compact */
.preview-card-compact {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
    margin-bottom: 20px;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.preview-info-compact {
    min-width: 0;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.preview-source {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottoni CTA - Rossi */
.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 180px;
}

.download-form-inline {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.download-form-inline[style*="display: none"] {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

.btn-download-compact {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-download-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-download-compact:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-download-compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    animation: none !important;
}

.btn-download-compact:disabled:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.7);
    }
}

.btn-download-compact.btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse-red 2s ease-in-out infinite;
}

.btn-download-compact.btn-primary:hover {
    animation: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Preview Minimal Section - FIX NO OVERLAP */
#preview {
    scroll-margin-top: 120px;
}

.preview-minimal {
    background: #f7fafc;
    padding: 60px 24px 40px;
    margin-top: -80px;
    border-radius: 40px 40px 0 0;
    animation: fadeIn 0.5s ease;
}

.preview-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    padding: 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.download-card {
    padding: 40px 32px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.card-hint {
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
}

.cf-turnstile {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.btn-download {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: #667eea;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-download:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102,126,234,0.3);
}

.btn-download:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: #e63946;
}

.btn-primary:hover {
    background: #c71c2b;
    box-shadow: 0 8px 16px rgba(230,57,70,0.3);
}

/* Footer Minimal */
.footer-minimal {
    background: #f7fafc; /* ← Grigio chiaro invece di bianco puro */
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-minimal p {
    font-size: 14px;
    color: #4a5568; /* ← GRIGIO SCURO (visibile!) */
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-links a {
    font-size: 14px;
    color: #667eea; /* ← BLU/VIOLA (brand color) */
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* SEO Sections */
.seo-section {
    background: #fff;
    padding: 80px 24px;
}

.seo-section:nth-child(even) {
    background: #f7fafc;
}

.seo-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.seo-intro {
    font-size: 18px;
    color: #4a5568;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ========================================
   PLATFORM ICONS - ALTEZZA METÀ LARGHEZZA (2:1)
======================================== */

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.platforms-section .platform-card {
    background: #f7fafc;
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(30, 90, 142, 0.2);
    border-color: #667eea;
}

/* ICONE DESKTOP: 216x108px */
.platform-icon-svg {
    width: 216px;
    height: 108px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon-svg {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.platform-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.platform-icon {
    display: none;
}

.platform-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.platform-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }
    
    .platform-card {
        padding: 36px 28px;
    }
    
    .platform-icon-svg {
        width: 160px;
        height: 80px;
        margin-bottom: 24px;
        padding: 16px 20px;
        border-radius: 16px;
    }
    
    .platform-card h3 {
        font-size: 20px;
    }
    
    .platform-card p {
        font-size: 15px;
    }
}

/* Mobile Large (430px - 767px) */
@media (max-width: 767px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .platform-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .platform-icon-svg {
        width: 160px;
        height: 80px;
        margin-bottom: 20px;
        padding: 14px 18px;
        border-radius: 16px;
    }
    
    .platform-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .platform-card p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Mobile Small (< 430px) */
@media (max-width: 430px) {
    .platform-card {
        padding: 28px 20px;
    }
    
    .platform-icon-svg {
        width: 144px;
        height: 72px;
        margin-bottom: 18px;
        padding: 12px 16px;
        border-radius: 14px;
    }
    
    .platform-card h3 {
        font-size: 18px;
    }
    
    .platform-card p {
        font-size: 14px;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 360px) {
    .platforms-grid {
        gap: 16px;
    }
    
    .platform-card {
        padding: 24px 18px;
    }
    
    .platform-icon-svg {
        width: 136px;
        height: 68px;
        margin-bottom: 16px;
        padding: 10px 14px;
        border-radius: 12px;
    }
}

/* ========================================
   STEPS-GRID - VERSIONE FINALE MOBILE-FIXED
   ======================================== */

/* BASE */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

/* MOBILE 1 COLONNA - SPECIFICITÀ MASSIMA */
@media (max-width: 767px) {
  body.home .steps-grid,
  body:not(.home) .steps-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* DESKTOP HOMEPAGE 2x2 */
@media (min-width: 768px) {
  body.home .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

/* DESKTOP ALTRE PAGINE 3x2 */
@media (min-width: 768px) {
  body:not(.home) .steps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* Step cards styling */
.step-card { text-align: center; padding: 24px; }
.step-number {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 28px; font-weight: 800;
  color: #fff; box-shadow: 0 8px 16px rgba(102,126,234,0.3);
}
.step-card h3 { font-size: 20px; font-weight: 700; color: #1a202c; margin-bottom: 12px; }
.step-card p { font-size: 15px; color: #4a5568; line-height: 1.7; }





.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 16px rgba(102,126,234,0.3);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px 24px;
    text-align: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    padding: 24px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item summary {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    list-style: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 16px;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
}

/* Lazy Loading Sections */
.seo-section.lazy-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.seo-section.lazy-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

.seo-section.lazy-section:not(.loaded) {
    visibility: hidden;
    height: auto;
    overflow: hidden;
}

.seo-section.lazy-section.loaded {
    visibility: visible;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.preview-thumb-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .header-minimal {
        padding: 14px 0;
    }

    .logo-img {
        height: 63px;
    }

    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }

    .platform-card {
        padding: 36px 28px;
    }

    /* Icone intermedie: 160x160px (2.5x) */
    .platform-icon-svg {
        width: 160px;
        height: 160px;
        margin-bottom: 24px;
        padding: 20px;
    }

    .platform-card h3 {
        font-size: 20px;
    }

    .platform-card p {
        font-size: 15px;
    }
}

/* Mobile Large (430px - 767px) */
@media (max-width: 767px) {
    .header-minimal {
        padding: 12px 0;
    }

    .logo-img {
        height: 54px;
    }

    .hero-minimal {
        padding: 80px 24px 40px;
    }
	
	.highlight-warning {
    color: #FFA500;
    font-weight: 500;
	}

    .title-minimal {
        font-size: 36px;
    }

    .subtitle-minimal {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .search {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .search--input {
        width: 100%;
        padding: 18px 60px 18px 20px;
        font-size: 15px;
        border-radius: 12px 12px 0 0;
		text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .search--cta,
    .search--analyzing {
        width: 100%;
        padding: 18px 24px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-radius: 0 0 12px 12px;
    }

    .search--clear {
        right: 16px;
        top: 18px;
        transform: none;
    }

    .trust-minimal {
        flex-direction: column;
        gap: 12px;
    }

    /* Platform Cards Mobile - ICONE 2X */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .platform-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    /* ICONE MOBILE: 160x160px (2x) */
    .platform-icon-svg {
        width: 160px;
        height: 160px;
        margin-bottom: 20px;
        padding: 18px;
        border-radius: 20px;
    }

    .platform-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .platform-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Preview Card Mobile */
    .preview-card-compact {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .preview-thumb {
        width: 60px;
        height: 60px;
    }

    .preview-actions {
        grid-column: 1 / -1;
        width: 100%;
        align-items: stretch;
        min-width: auto;
    }

    .btn-download-compact {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .preview-title {
        font-size: 14px;
    }

    .error-box {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }

    .error-icon {
        font-size: 28px;
        margin: 0 auto;
    }

    .error-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .preview-card {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 32px 24px;
    }

    .seo-section {
        padding: 60px 24px;
    }

    .seo-title {
        font-size: 28px;
    }

    .seo-intro {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    #preview {
        scroll-margin-top: 100px;
    }
}

/* Mobile Small (< 430px) */
@media (max-width: 430px) {
    .logo-img {
        height: 48px;
    }

    .header-minimal {
        padding: 22px 0;
    }

    .search--input {
        font-size: 14px;
        padding: 16px 50px 16px 18px;
    }

    .search--cta,
    .search--analyzing {
        font-size: 15px;
        padding: 16px 20px;
    }

    .search--clear {
        right: 12px;
        top: 16px;
        padding: 8px;
    }

    .search--clear .icon {
        width: 14px;
        height: 14px;
    }

    .platform-card {
        padding: 28px 20px;
    }

    /* Icone: 144x144px (2x) */
    .platform-icon-svg {
        width: 144px;
        height: 144px;
        margin-bottom: 18px;
        padding: 16px;
    }

    .platform-card h3 {
        font-size: 18px;
    }

    .platform-card p {
        font-size: 14px;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 360px) {
    .logo-img {
        height: 42px;
    }
	
	.header-minimal {
        padding: 20px 0;
    }

    .platforms-grid {
        gap: 16px;
    }

    .platform-card {
        padding: 24px 18px;
    }

    /* Icone: 136x136px */
    .platform-icon-svg {
        width: 136px;
        height: 136px;
        margin-bottom: 16px;
    }
}


/* ========================================
   LANGUAGE SELECTOR - SAVEMP3 STYLE
======================================== */

.language-selector {
    position: relative;
    margin-left: auto;
    z-index: 100;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-button:active {
    transform: translateY(0);
}

.lang-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Flag Icon principale */
.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Language Code */
.lang-code {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Chevron Icon */
.chevron-icon {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lang-button.active .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(18, 47, 76, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Scrollbar personalizzato */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Language Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-option.active {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: #60a5fa;
    font-size: 16px;
}

/* Flag Icons nel dropdown */
.flag-icon-sm {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.lang-option span {
    flex: 1;
}

/* Animation fadeIn */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADER LAYOUT AGGIORNATO
======================================== */

.header-minimal .container-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Mobile */
@media (max-width: 767px) {
    .lang-button {
        padding: 6px 10px;
        gap: 5px;
    }
    
    .flag-icon {
        width: 20px;
        height: 14px;
    }
    
    .lang-code {
        font-size: 13px;
    }
    
    .chevron-icon {
        width: 12px;
        height: 12px;
    }
    
    .lang-dropdown {
        min-width: 180px;
        right: -12px;
        max-height: 320px;
    }
    
    .lang-option {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .flag-icon-sm {
        width: 20px;
        height: 14px;
    }
}

/* Extra Small */
@media (max-width: 430px) {
    .lang-button {
        padding: 5px 8px;
    }
    
    .lang-code {
        display: none; /* Nascondi codice lingua su mobile piccolo */
    }
    
    .lang-dropdown {
        min-width: 160px;
    }
}

/* Legal Disclaimer nel footer */
.legal-disclaimer {
    font-size: 13px;
    color: #4a5568;
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 24px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.legal-disclaimer strong {
    color: #1a202c;
    font-weight: 600;
}

.legal-disclaimer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-disclaimer a:hover {
    border-bottom-color: #667eea;
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .legal-disclaimer {
        font-size: 12px;
        padding: 14px 16px;
        text-align: center;
    }
}

/* ========================================
   LEGAL PAGES (Terms, Privacy, DMCA)
======================================== */

.legal-page {
    background: #fff;
    min-height: calc(100vh - 200px);
    padding: 60px 24px 80px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 14px;
    color: #718096;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 16px;
}

.legal-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 8px;
}

.legal-section strong {
    color: #1a202c;
    font-weight: 600;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-section a:hover {
    border-bottom-color: #667eea;
}

/* Summary Box */
.legal-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #667eea;
    padding: 24px;
    border-radius: 8px;
    margin: 40px 0;
}

.legal-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.legal-summary p {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
}

/* Back Link */
.legal-back {
    margin-top: 48px;
    text-align: center;
}

.legal-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #667eea;
    transition: all 0.2s;
}

.legal-back a:hover {
    background: #667eea;
    color: #fff;
}

/* Contact Info Box */
.contact-box {
    background: #f7fafc;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 24px;
}

.contact-box p {
    margin: 0;
    line-height: 2;
}

/* Responsive */
@media (max-width: 767px) {
    .legal-page {
        padding: 40px 20px 60px;
    }
    
    .legal-page h1 {
        font-size: 28px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 17px;
    }
    
    .legal-section p,
    .legal-section ul li {
        font-size: 15px;
    }
    
    .legal-summary {
        padding: 20px 16px;
    }
}


/* ========================================
   CONTACT PAGE - GRID CARDS
======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.contact-email:hover {
    background: #667eea;
    color: #fff;
}

.response-time {
    font-size: 13px;
    color: #718096;
    font-style: italic;
    margin: 0;
}

/* Responsive Contact Grid */
@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 28px 20px;
    }
    
    .contact-icon {
        font-size: 40px;
    }
    
    .contact-card h3 {
        font-size: 18px;
    }
    
    .contact-email {
        font-size: 15px;
        padding: 8px 16px;
    }
}


/* ═══════════════════════════════════════════════════════
   COMPATIBILITY ALIASES - CONVERSION PAGES
   ════════════════════════════════════════════════════════ */

/* Header aliases */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 47, 76, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
    line-height: 0;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logo-icon {
    font-size: 32px;
    line-height: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-left: 8px;
}

/* Hero aliases */
.hero {
    padding: 60px 20px;
    text-align: center;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Search Box aliases */
.search-box {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 900px;
    margin: 0 auto 24px;
}

.search-box:focus-within {
    box-shadow:
        0 30px 80px rgba(0,0,0,0.25),
        0 0 0 4px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.url-input {
    flex: 1;
    padding: 28px 32px;
    font-size: 18px;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: #1a202c;
    min-width: 0;
}

.url-input::placeholder {
    color: #a0aec0;
    font-size: 17px;
}

.btn-convert {
    padding: 28px 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: inherit;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.btn-convert:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: scale(1.02);
}

.btn-convert:active {
    transform: scale(0.98);
}

/* Features grid aliases */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.feature-content h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Footer aliases */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
}



/* ═══════════════════════════════════════════════════════
   RESPONSIVE - CONVERSION PAGES
   ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .search-box {
        flex-direction: column;
        padding: 8px;
    }
    
    .url-input {
        width: 100%;
        padding: 18px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .btn-convert {
        width: 100%;
        padding: 18px 24px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-radius: 0 0 12px 12px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .header {
        padding: 16px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
}



/* Platform Cards - Clickable Links */
.platform-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.platform-card:hover h3 {
    color: #FF5A5F;
}

.platform-card article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Assicura che il CSS esistente per .platform-card funzioni ancora */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}



/* Title Highlight - Professional Yellow */
.title-minimal .title-highlight {
    color: #FFA500;
    font-weight: 700;
}


.9rem;
}


/* ============================================
   LEGAL PAGES (Terms, Privacy, DMCA, Contact)
   ============================================ */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #222;
    line-height: 1.2;
}

.legal-page h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #555;
    font-size: 1.05rem;
}

.legal-page ul {
    margin: 1.2rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.legal-page ul li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
}

.legal-page ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #FF5A5F;
    font-weight: bold;
    font-size: 1.3rem;
}

.legal-page strong {
    color: #222;
    font-weight: 600;
}

.legal-page em {
    color: #777;
    font-size: 0.95rem;
    display: block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.legal-page a {
    color: #FF5A5F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-page a:hover {
    color: #FF385C;
    text-decoration: underline;
}



/* Contact page specifico */
.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #FF5A5F;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #FF5A5F;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 1.5rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-page h2 {
        font-size: 1.4rem;
    }
    
    .legal-page p {
        font-size: 1rem;
    }
}


/* ========== LEGAL PAGES STYLING ========== */

/* Bottone Back to Home - Colori standard neutrali */
.btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: white !important;
}

/* Legal page styling */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.legal-page p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.legal-page ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #4a5568;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.legal-page strong {
    color: #667eea;
}

.legal-page em {
    color: #718096;
}

/* Homepage 2x2 steps-grid - SPECIFICO */
.home .steps-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Altre pagine mantengono 3 colonne */
@media (min-width: 768px) {
  .steps-grid:not(.home .steps-grid) {
    grid-template-columns: repeat(3, 1fr);
  }
}



