/* ==========================================================================
   1. VARIABILI E RESET 
   ========================================================================== */

/* Font metrics override per Font Awesome per prevenire CLS */
@font-face {
    font-family: "Font Awesome 6 Free";
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
    size-adjust: 105%;
    ascent-override: 85%;
    descent-override: 20%;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #cbd5e1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Navbar sizing for consistent spacing and anchor offset */
    --nav-height-desktop: 100px;
    --nav-height-mobile: 72px;
    --nav-mobile-inset: 16px; /* spazio extra su mobile tra navbar e contenuto */
}

/* Reset e stili base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset stili iOS */
input,
textarea,
select,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-family: "Segoe UI", system-ui;
}

input[type="radio"] {
    -webkit-appearance: radio;  
    -moz-appearance: radio;
    appearance: radio;
}

input[type="checkbox"] {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. LAYOUT BASE
   ========================================================================== */
body {
    font-family: "Segoe UI", system-ui;
    background: var(--background);
    color: var(--text-color);
    padding: 2rem;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: calc(var(--nav-height-desktop) + 2rem);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
    margin-top: 2rem;
}

.content-section {
    background-color: #f8fafc;
    padding: 4rem 2rem;
    margin-top: 2rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Configuratore */
.configurator {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(59, 130, 246, 0.1);
    border: 2px solid var(--primary-color);
    transition: box-shadow 0.3s ease;
    width: 95%; /* O qualsiasi larghezza */
    margin: 0 auto; /* 0 sopra/sotto, auto a destra/sinistra */
    
}

/* Titolo principale */
h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.style-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.style-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}



.format-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* Navbar (aggiornata: usa variabile primary e rimane full-width su desktop) */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height-desktop); /* più spessa */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem; /* leggermente più grande per far risaltare il brand */
}

/* Aumenta la dimensione dell'icona del logo nella navbar per maggiore visibilità */
.nav-brand i {
    font-size: 1.9rem;
    line-height: 1; /* evita overflow verticale */
}

/* Il brand è un link: mantieni il colore e rimuovi underline/effetti indesiderati */
.nav-brand {
    text-decoration: none;
}
.nav-brand,
.nav-brand span,
.nav-brand i {
    color: var(--primary-color);
}
.nav-brand:link,
.nav-brand:visited,
.nav-brand:hover,
.nav-brand:active {
    color: var(--primary-color);
    text-decoration: none;
}
.nav-brand:focus {
    outline: 2px solid rgba(59,130,246,0.25); /* indicatore di focus accessibile */
    outline-offset: 2px;
}

/* Link container desktop */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Link style with smooth underline */
.nav-item a {
    position: relative;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 220ms cubic-bezier(.2,.9,.2,1);
}

/* animated underline using transform (very smooth) */
.nav-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1);
    opacity: 0.95;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-color);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    transform: scaleX(1);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hamburger bars use --primary-color */
.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), top 260ms;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================================================
   3. COMPONENTI GENERATORE QR
   ========================================================================== */


/* Preview */
.preview-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
    height: fit-content;
    border: 2px solid var(--primary-color);
}

/* Input e Form Elements */
textarea {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    resize: none !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    font-family: "Segoe UI", system-ui;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.color-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}


/* spazi della homepage*/

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}



/* selettori colore */

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.gradient-start-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #000000;
}

#gradient-start {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gradient-end {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.gradient-end-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #000000;
}

#qr-color {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.style-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.style-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}



.format-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.qrcode-placeholder {
    background: var(--card-bg);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 1/1;
}

/* Rendiamo il canvas responsivo per evitare che imponga larghezze fisse al layout */
.qrcode-placeholder canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 420px; /* aumenta la larghezza massima della preview */
    display: block;
}


.preview-message {
    text-align: center;
    color: var(--border-color);
}

.preview-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-top: 15px;
}

#logo-options {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
}

#logo-options label {
    font-weight: normal;
}

#logo-size {
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}



#logo-size {
    appearance: none; /* Rimuove lo stile di default */
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 20 20"><path d="M5.23 7.21a.75.75 0 011.06.02L10 11.186l3.71-3.954a.75.75 0 011.08 1.04l-4.25 4.526a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}


/* ==========================================================================
   4. SOTTOMENU GENERATORI
   ========================================================================== */

.generators-menu-wrapper {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 0rem;
    padding: 0 2rem;
}

.generators-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.generator-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hover unificato per tutti i pulsanti non attivi */
.generator-tab:not(.active):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.05);
}

/* Stato attivo unificato */
.generator-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.generator-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.generator-tab:not(.active):hover i {
    transform: scale(1.1);
}

/* Focus state per accessibilità */
.generator-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}







/* ==========================================================================
   5. COMPONENTI UI
   ========================================================================== */



.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-top: 15px;
}

/* Cards e Features */
.feature-card,
.use-case-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.use-case {
    /* Nome classe mantenuto */
    background: white;
    border-radius: 0.75rem; /* Coerenza */
    padding: 1.5rem;
    box-shadow: var(--shadow); /* Coerenza */
    border-top: 4px solid var(--primary-color); /* Coerenza */
}

.use-case h3 {
    margin-top: 0;
    margin-bottom: 1rem; /* Spazio sotto titolo */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2b6cb0; /* Blu scuro per titoli card */
    font-size: 1.2rem; /* Dimensione titolo card */
}

.use-case ul {
    padding-left: 1.2rem; /* Indentazione lista */
    margin-bottom: 0; /* Rimuovi margine inferiore se è l'ultimo elemento */
}

.use-case li {
    margin-bottom: 0.5rem;
    color: var(--text-color); /* Coerenza */
}

 /* STATISTICHE */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 600px;
}

.stat-card {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin: 1rem 0;
}

.stat-label {
    color: #64748b;
    font-size: 1.1rem;
}


/* Sezione Come Funziona */

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
}

.info-section p {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.steps-container {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    position: relative;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    padding: 1rem;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(150px + 1rem);
    top: 100%;
    width: 2px;
    height: 4rem;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.step-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 8px 16px rgba(59, 130, 246, 0.1);
    position: relative;
    background: white;
    padding: 1rem;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.step-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.step-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.step-content {
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.3;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3),
                0 0 0 8px white,
                0 0 0 10px rgba(59, 130, 246, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    margin: 0 auto;
    z-index: 2;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4),
                0 0 0 8px white,
                0 0 0 10px rgba(59, 130, 246, 0.2);
}

.step-content p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Linea di progressione */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: calc(50% - 1px);
    width: 2px;
    height: 4rem;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transform: translateX(-50%);
}

/* Animazione di entrata */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.tips {
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.tips h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips ul {
    margin-left: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.tips li {
    margin-bottom: 0.5rem;
}



/* Contenitore principale della guida */


/* Box dei singoli consigli */
.tips-box {
    background: #f0f7ff; /* Sfondo azzurro chiaro */
    padding: 1.5rem; /* Spaziatura interna */
    border-radius: 0.75rem; /* Bordi arrotondati */
    border-left: 4px solid var(--primary-color); /* Bordo sinistro blu */
    margin-bottom: 1.5rem; /* Spaziatura tra i box */
}

/* Ultimo box non ha margine inferiore */
.tips-box:last-child {
    margin-bottom: 0;
}

/* Titolo dei consigli */
.tips-box h3 {
    color: var(--primary-color); /* Colore blu primario */
    margin-bottom: 1rem; /* Spaziatura sotto il titolo */
    display: flex; /* Allineamento icona-testo */
    align-items: center; /* Centra verticalmente */
    gap: 0.5rem; /* Spazio tra icona e testo */
    font-size: 1.1rem; /* Dimensione del font */
}

/* Lista dei consigli */
.tips-box ul {
    margin-left: 1.25rem; /* Indentazione lista */
    color: var(--text-color); /* Colore testo dal tuo tema */
    line-height: 1.8; /* Interlinea aumentata */
    padding-left: 0.5rem; /* Piccolo padding aggiuntivo */
}

/* Singoli elementi della lista */
.tips-box li {
    margin-bottom: 0.5rem; /* Spaziatura tra gli elementi */
    position: relative;
    padding-left: 1rem; /* Spazio per eventuali bullet personalizzati */
}

/* Pseudo-elemento per bullet personalizzato (opzionale) */
.tips-box li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.features-section,
.use-cases-section,
.stats-section,
.other-generators-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.generators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.generator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(59, 130, 246, 0.1);
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.generator-card:hover::before {
    transform: translateX(100%);
}

.generator-card.whatsapp {
    background: var(--card-bg);
    border-color: #25D366;
}

.generator-card.maps {
    background: var(--card-bg);
    border-color: #4285F4;
}

.generator-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.generator-card.whatsapp .generator-icon {
    color: #25D366;
}

.generator-card.maps .generator-icon {
    color: #4285F4;
}

.generator-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.generator-card p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.try-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: var(--background);
    border-radius: 100px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.generator-card.whatsapp .try-now {
    color: #25D366;
    border-color: #25D366;
}

.generator-card.maps .try-now {
    color: #4285F4;
    border-color: #4285F4;
}

.generator-card:hover {
    transform: translateY(-5px);
}

.generator-card:hover .try-now {
    background: rgba(255, 255, 255, 0.3);
}

.generator-card:hover .try-now i {
    transform: translateX(4px);
}

.try-now i {
    transition: transform 0.3s ease;
}


.features-grid,
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card,
.use-case-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(59,130,246,0.07);
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.12);
    border-color: #3b82f6;
}

.feature-card i,
.use-case-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.feature-card h3,
.use-case-card h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1rem;
}

.use-case-card li {
    padding: 0.5rem 0;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case-card li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(59,130,246,0.07);
    border: 2px solid #e2e8f0;
}

.stat-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0;
}

.stat-label {
    color: #64748b;
    font-size: 1.1rem;
}


/* Modifica il colore del pulsante attivo per le mappe */



/* Stili CTA */
.cta-container {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-text {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2),
                inset 0 -3px 0 rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

/* ==========================================================================
   5. FOOTER fatto e finito !non toccare!
   ========================================================================== */

.main-footer {
    background: #1a202c;
    color: #e2e8f0;
    padding-top: 4rem;
    margin-top: 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links h3 {
    /* Selettore più specifico per il titolo */
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none; /* Rimuovi bullet points */
    padding-left: 0; /* Rimuovi padding di default */
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #3b82f6; /* Considera var(--primary-color) o un colore dedicato */
    transform: translateX(5px);
}

.footer-bottom {
    background: #0f141e;
    padding: 1.5rem 0; /* Modificato per coerenza */
    border-top: 1px solid #2d3748;
    text-align: center;
    width: 100%; /* Assicura che prenda tutta la larghezza */
}

.footer-bottom p {
    /* Applicato a p dentro footer-bottom */
    margin: 0; /* Rimuovi margini di default del paragrafo */
    color: #a0aec0; /* Colore per il testo del copyright */
}

.footer-links .fa-home {
    color: var(--primary-color);
}
.footer-links .fa-shield-alt {
    color: #68d391;
}
.footer-links .fa-file-contract {
    color: #f6ad55;
}
.footer-links .fa-question-circle {
    color: #63b3ed;
}
.footer-links .fa-newspaper {
    color: #f687b3;
}
.footer-links .fa-book-open {
    color: #b794f4;
}
.footer-links .fa-envelope {
    color: #f6ad55;
}
.footer-links .fa-cookie {
    color: #ff7300;
}
.footer-links .fa-user-shield {
    color: #68d391;
}
.footer-links .fa-address-book {
    color: #ff2020;
}

/* ==========================================================================
   6. UTILITIES E HELPERS
   ========================================================================== */
.hidden {
    display: none;
}

.site-hr {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 6rem auto;
    width: 100%;
    max-width: 1200px;
    opacity: 0.5;
}

.hidden-input {
    display: none;
}

.site-hr {
    border: none;
    border-top: 2px dashed #cbd5e1;
    margin: 40px auto;
    width: 100%;
    max-width: 1200px;
    opacity: 0.7;
}


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    body {
        padding: 0;
        padding-top: calc(var(--nav-height-mobile) + 1rem);
        padding-bottom: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--nav-height-mobile);
        border-radius: 0;
        padding: 0 1rem;
    }

    .nav-toggle { 
        display: block; 
        z-index: 1100; 
    }
    
    .nav-links {
        position: absolute;
        top:var(--nav-height-mobile);
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 1rem 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    .nav-item a::after { 
        display: none; 
    }

    .hamburger {
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        top: 6px;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    html { 
        scroll-padding-top: var(--nav-height-mobile); 
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    textarea {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        resize: none !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        font-size: 16px;
        line-height: 1.5;
        padding: 10px;
    }

    #qr-content {
        font-size: 16px !important;
    }

    .style-options {
        grid-template-columns: 1fr;
    }

    .preview-section {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.5rem;
    }

    .primary-btn,
    .secondary-btn {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
    }

    button,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="color"],
    input[type="file"],
    select,
    textarea {
        font-size: 16px !important;
    }

    #qr-content {
        min-height: 100px !important;
        height: 100px !important;
        max-height: 100px !important;
        resize: none !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        line-height: 1.5;
        padding: 10px;
    }

    .full-article {
        padding: 1.5rem 0.5rem; /* Ridotto padding per mobile */
    }

    .configurator {
        padding: 1.5rem;
        border-radius: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .input-group {
        margin-bottom: 1.5rem;
    }

    #logo-options {
        margin-top: 1rem;
        padding: 1rem;
        background: var(--background);
        border-radius: 0.5rem;
    }

    #logo-size {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        font-size: 16px;
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        background-color: white;
        cursor: pointer;
    }

    .article-header h1 {
        font-size: 1.8rem; /* Coerenza con h1 globale mobile */
    }

    .article-content h2 {
        font-size: 1.5rem;
        flex-direction: column; /* Stack icona e testo verticalmente */
        align-items: flex-start; /* Allinea a sinistra */
        gap: 0.5rem;
    }
    .article-content h3 {
        font-size: 1.25rem; /* Dimensione h3 mobile */
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem; /* Ridotto gap */
        align-items: center; /* Centra meta items */
    }

    .article-stats {
        grid-template-columns: 1fr; /* Stack stats verticalmente */
    }

    .article-container {
        padding: 20px 15px;
    }
    
    .article-card {
        padding: 40px 30px;
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .article-content {
        font-size: 1rem;
    }
       
    
    .info-section {
        margin-top: 2rem;
    }
    
    .step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-number {
        margin-top: 0;
    }

    
    
    .tips-box {
        padding: 1.25rem; /* Riduci padding su mobile */
    }
    
    

    .features-section,
    .use-cases-section,
    .stats-section,
    .content-section {
        padding: 2rem 0;
        margin: 0;
        width: 100%;
    }

    .steps-container {
        padding: 0 1rem;
        margin: 2rem auto;
        max-width: 100%;
    }

    .section-description {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .features-grid,
    .use-cases-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .generators-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-box {
        padding: 1.5rem;
    }

    .section-spacing {
        padding: 4rem 0;
    }
    
    .section-spacing-sm {
        padding: 3rem 0;
    }
    
    .section-spacing-lg {
        padding: 6rem 0;
    }
    
    .mb-section {
        margin-bottom: 4rem;
    }
    
    .mt-section {
        margin-top: 4rem;
    }
    
    .my-section {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    
    .container-spacing {
        padding: 0 1rem;
    }

    .style-options {
        grid-template-columns: 1fr;
    }

    .format-options {
        flex-direction: column;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea {
        font-size: 16px;
    }

    .generators-menu-wrapper {
        padding: 0;
        margin-top: 0.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .generators-menu-tabs {
        gap: 0.6rem;
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        padding: 0 1rem;
        scroll-behavior: smooth;
    }

    .generator-tab {
        padding: 0.65rem 1.15rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .generator-tab i {
        font-size: 1rem;
    }

    /* Sezione Come Funziona */
    .steps-section {
        padding: 40px 15px;
    }

    .steps-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .step-content {
        width: 100%;
    }

    .step-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .step-image {
        width: 100%;
        max-width: 300px;
        margin: 15px 0;
        order: -1;
    }

}


/* Extra small devices */
@media screen and (max-width: 375px) {
    .steps-section {
        padding: 30px 10px;
    }

    .step {
        padding: 15px 10px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-image {
        max-width: 250px; /* Aumentata da 150px a 250px */
    }

    .content-section {
        padding: 2rem 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .content-section .container {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .other-generators-section,
    .features-section,
    .tips-section,
    .stats-section,
    .use-cases-section {
        padding: 2rem 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .generators-grid,
    .features-grid,
    .tips-grid,
    .stats-grid {
        padding: 0 1rem;
    }

    .main-footer {
        padding: 2rem 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .footer-container {
        padding: 0 1rem;
    }
}


 @media (max-width: 480px) {
    .article-cta .cta-button {
        display: block;
        margin: 0.75rem auto 0;
        width: calc(100% - 40px);
        max-width: 360px;
        padding: 14px 20px;
        box-sizing: border-box;
         }

    .generators-menu-wrapper {
        padding: 0 0.75rem;
        margin-top: 1rem;
    }

    .generators-menu-tabs {
        gap: 0.6rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .generator-tab {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 220px;
    }

    .generator-tab i {
        font-size: 1.05rem;
    }
     
}


@media (max-width: 640px) {
    .generators-menu-wrapper {
        padding: 0 1rem;
        margin-top: 1.2rem;
    }

    .generators-menu-tabs {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .generator-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

    .generator-tab i {
        font-size: 1.1rem;
    }
}


/* Tablet - fino a 1024px */
@media (max-width: 1024px) {
    .generators-menu-wrapper {
        padding: 0 1.5rem;
    }

    .generators-menu-tabs {
        gap: 0.8rem;
    }

    .generator-tab {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }

    .generator-tab i {
        font-size: 1.1rem;
    }
}



.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3),
                inset 0 -3px 0 rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   8. ANIMAZIONI
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#qr-content:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.primary-btn:hover,
.secondary-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}


.custom-upload-button:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}


#logo-size:focus {
    border-color: #2563eb;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
    outline: none;
}

#phone-prefix:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}


#phone-number:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

#whatsapp-message:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}


/* Animazioni di base */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animazione per le cards con delay */
.feature-card,
.stat-card,
.use-case-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

.feature-card.visible,
.stat-card.visible,
.use-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animazione numeri statistiche */
.stat-number {
    transition: all 0.8s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item.active a {
    color: #2563eb;
}

.nav-item.active a::after {
    width: 100%;
}



/* ==========================================================================
   9. FAQ
   ========================================================================== */


.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color); /* Coerenza */
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    /* Rimuovi bordo per l'ultimo elemento */
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: var(--primary-color); /* Coerenza */
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* Allinea freccia a destra */
    align-items: center;
}

.faq-question::after {
    /* Cambiato :before con :after per la freccia */
    content: "\f078"; /* Esempio FontAwesome down arrow, assicurati che FA sia caricato */
    font-family: "Font Awesome 6 Free"; /* Specifica famiglia FontAwesome */
    font-weight: 900; /* Per icone solide FA */
    margin-left: 0.5rem; /* Spazio a sinistra della freccia */
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    /* Stile per freccia quando aperto */
    transform: rotate(180deg);
}

.faq-answer {
    padding-left: 0; /* Rimosso padding se la domanda è già indentata o per layout pulito */
    margin-top: 1rem; /* Aumentato spazio */
    color: var(--text-color); /* Coerenza */
    line-height: 1.7; /* Migliore leggibilità */
    /* display: none; (Gestisci visibilità con JS) */
}



/* ==========================================================================
   10. BLOG
   ========================================================================== */


.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color); /* Coerenza con testo generico */
    margin-bottom: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: white;
    border-radius: 0.75rem; /* Leggermente più arrotondato */
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s; /* Aggiunta transizione per box-shadow */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Ombra più pronunciata su hover */
}

.blog-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-header img {
    transform: scale(1.05);
}

.blog-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color); /* Coerenza */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    line-height: 1.2;
    font-size: 0.9rem; /* Dimensione base */
}

.blog-card-date .day {
    font-size: 1.5em; /* Relativo al font-size del parent */
    font-weight: bold;
    display: block;
}

.blog-card-date .month {
    font-size: 0.9em; /* Relativo al font-size del parent */
    text-transform: uppercase;
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Assicura che il body prenda lo spazio disponibile */
    display: flex; /* Per allineare il meta in basso */
    flex-direction: column; /* Per allineare il meta in basso */
}

.blog-card h2 {
    /* Titolo della card */
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color); /* Coerenza */
}

.blog-excerpt {
    color: #4a5568; /* Colore secondario per testo */
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Fa sì che l'excerpt occupi spazio prima del meta */
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: #718096; /* Grigio per meta-informazioni */
    font-size: 0.9rem;
    margin-top: auto; /* Spinge il meta in fondo al .blog-card-body */
}

.blog-read-more {
    display: block; /* Già presente */
    text-align: center;
    padding: 1rem;
    background: #f7fafc; /* Sfondo leggero */
    color: var(--primary-color); /* Coerenza */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border-top: 1px solid var(--border-color); /* Separatore leggero */
}

.blog-read-more:hover {
    background: var(--primary-color); /* Coerenza */
    color: white;
}

.article-content .article-image img {
    /* Rende responsive le immagini dentro i div .article-image */
    max-width: 100%;
    height: auto;
    display: block; /* Utile per rimuovere spazi extra sotto l'immagine e per centrare con margin auto */
    margin-left: auto; /* Centra l'immagine se è più piccola del contenitore */
    margin-right: auto; /* Centra l'immagine se è più piccola del contenitore */
    border-radius: 0.5rem; /* Opzionale: aggiunge un po' di arrotondamento come alle altre immagini */
}




/* ==========================================================================
   11. ARTICLE PAGE
   ========================================================================== */



.article-header {
    /* Già definito, se serve specificità usa .full-article .article-header */
    margin-bottom: 2rem; /* Ridotto leggermente */
    text-align: center;
}

.article-header h1 {
    font-size: 2.2rem; /* Coerenza con h1 globale mobile */
    color: var(--text-color);
    margin: 1rem 0; /* Ridotto margine */
    line-height: 1.3;
}

.article-breadcrumb {
    margin-bottom: 1.5rem; /* Coerenza */
    text-align: left; /* Mantenuto */
}

.article-breadcrumb a {
    color: var(--primary-color); /* Coerenza */
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}





.article-featured-image {
    width: 100%;
    border-radius: 0.75rem; /* Coerenza con blog-card */
    margin: 2rem 0; /* Aumentato margine */
    box-shadow: var(--shadow); /* Coerenza */
    max-height: 450px;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem; /* Buona leggibilità */
    line-height: 1.8; /* Aumentata per leggibilità */
    color: var(--text-color); /* Coerenza */
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem; /* Spaziatura consistente */
    color: var(--text-color); /* Coerenza */
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.article-content h2 i {
    color: var(--primary-color); /* Coerenza */
    font-size: 1.4rem; /* Dimensione icona relativa a h2 */
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem; /* Spaziatura consistente */
    color: #2c5282; /* Blu scuro per sottotitoli */
}

.article-content p {
    margin-bottom: 1.5rem; /* Coerenza */
    /* color ereditato da .article-content */
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem; /* Indentazione standard */
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content a {
    /* Stile per link nel contenuto */
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}
.article-content a:hover {
    color: var(--secondary-color);
}

/* COMPONENTI SPECIALI ARTICOLO (mantenuti e armonizzati) */
.article-highlight {
    /* Riadattato nome da .tool-card per specificità */
    background: #ebf8ff; /* Azzurro chiaro */
    border-left: 4px solid var(--primary-color); /* Coerenza */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0; /* Arrotondamento asimmetrico */
}

.article-highlight h3 {
    margin-top: 0;
    color: #2b6cb0; /* Blu più scuro per contrasto */
}

.article-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; /* Ridotto gap */
    margin: 3rem 0;
}

.stat-item {
    background: var(--background); /* Coerenza */
    border: 1px solid var(--border-color); /* Coerenza */
    border-radius: 0.75rem; /* Coerenza */
    padding: 1.8rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; /* Coerenza */
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Ombra più definita */
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color); /* Coerenza */
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4a5568;
    font-size: 0.95rem;
}

.article-qr-example {
    background: var(--background); /* Coerenza */
    border: 1px dashed var(--border-color); /* Coerenza */
    border-radius: 0.75rem; /* Coerenza */
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

/* CALL TO ACTION ARTICOLO (mantenuto e armonizzato) */
.article-cta {
    background: linear-gradient(
        135deg,
        #ebf8ff,
        #bee3f8
    ); /* Gradiente leggero */
    border-radius: 0.75rem; /* Coerenza */
    padding: 2.5rem;
    margin: 4rem 0 2rem; /* Aggiunto margine inferiore */
    text-align: center;
    border: 1px solid #bee3f8; /* Bordo sottile per definizione */
}

.article-cta h3 {
    margin-top: 0;
    color: #2b6cb0; /* Blu scuro */
    font-size: 1.5rem; /* Dimensione adeguata per CTA */
}

.article-cta .primary-btn {
    /* Usa la classe .primary-btn esistente */
    display: inline-flex; /* Per centrare se necessario e per gap icona */
    width: auto; /* Sovrascrivi width: 100% se non desiderato qui */
    margin-top: 1.5rem;
    padding: 1rem 2rem; /* Padding standard per bottoni CTA */
    font-size: 1.1rem;
}

/* TABELLA DI CONFRONTO (mantenuto e armonizzato) */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto; /* Necessario per responsività tabelle */
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem; /* Dimensione testo tabella */
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color); /* Coerenza */
}

.comparison-table th {
    background-color: #2b6cb0; /* Blu scuro per header tabella */
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--background); /* Coerenza per righe alternate */
}

 /* LAYOUT PRINCIPALE */

.article-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}
        
.article-card {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #3b82f6;
    padding: 60px;
    margin: 40px 0;
}


/* HEADER ARTICOLO */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px dashed #cbd5e1;
}

.back-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.back-link:hover {
    color: #2563eb;
}

.article-title {
    font-size: 2.5rem;
    color: #3b82f6;
    margin: 30px 0;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #64748b;
    margin: 30px 0;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: #3b82f6;
}

/* CONTENUTO ARTICOLO */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
    max-width: 700px;
    margin: 0 auto;
}

.article-section {
    margin: 50px 0;
}

.section-title {
    font-size: 1.8rem;
    color: #3b82f6;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-button {
    background: #3b82f6;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    margin-top: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.cta-button:hover {
    background: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}



/* ==========================================================================
   12. GENERATORE WHATSAPP
   ========================================================================== */

.prefix-input-wrapper {
    position: relative;
    width: 100%;
}

#phone-prefix{
    font-family: 'Segoe UI';
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#phone-number{
    font-family: 'Segoe UI';
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#whatsapp-message{
font-family: 'Segoe UI';
width: 100%;
padding: 12px;
border-radius: 8px;
border: 2px solid #cbd5e1;
 outline: none;
transition: border-color 0.3s, box-shadow 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 resize: none !important; /* Disabilita ridimensionamento */
    max-height: 120px !important; /* Altezza massima fissa */
    overflow-y: auto; /* Abilita scroll verticale se necessario */
}


#qr-content::placeholder,
#whatsapp-message::placeholder {
    font-family: inherit;
    color: #64748b; /* opzionale, per coerenza visiva */
    opacity: 1;
}



/* ==========================================================================
   13. GENERATORE MAPPE
   ========================================================================== */

/* Stili specifici per il generatore di mappe */
.location-input-group {
    display: none;
}

.location-input-group.active {
    display: block;
}

#coordinates,
#address {
    font-family: "Segoe UI", system-ui;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    resize: none;
    min-height: 60px;
    margin-bottom: 0.5rem;
}

#coordinates:focus,
#address:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

small {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}



.sectionfaq-home {
    margin: 0px;
}























/* Stili per la sezione Consigli Utili */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tips-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}



.tips-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tips-icon i {
    font-size: 24px;
    color: white;
}

.tips-box:hover .tips-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.tips-box h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tips-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-box li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tips-box li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.85rem;
}

.tips-box.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tips-box.cta-box h3,
.tips-box.cta-box p {
    color: white;
}

.tips-box.cta-box .tips-icon {
    background: white;
}

.tips-box.cta-box .tips-icon i {
    color: var(--primary-color);
}

.tips-box.cta-box .primary-btn {
    background: white;
    color: var(--primary-color);
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.tips-box.cta-box .primary-btn:hover {
    background: transparent;
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tips-box.cta-box .primary-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tips-box.cta-box .primary-btn:hover i {
    transform: translateX(4px);
}




/* Spacing utilities */
.section-spacing {
    padding: 6rem 0;
}

.section-spacing-sm {
    padding: 4rem 0;
}

.section-spacing-lg {
    padding: 8rem 0;
}

/* Margin utilities */
.mb-section {
    margin-bottom: 6rem;
}

.mt-section {
    margin-top: 6rem;
}

.my-section {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

/* Container spacing */
.container-spacing {
    padding: 0 2rem;
}

/* Grid spacing */
.grid-spacing {
    gap: 2.5rem;
    margin-top: 4rem;
}





     

/* ==========================================================================
   14. GENERATORE vCard
   ========================================================================== */




/* ==========================================================================
   VCARD CSS - Stili identici a style.css
   ========================================================================== */

/* Input e Form Elements */
/* rimossa duplicazione */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-family: "Segoe UI", system-ui;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.color-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 2rem;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #000000;
}




.style-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.style-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}

.format-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.format-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* Stili specifici per bottoni tipo di posizione */
.location-type-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}

/* Stili specifici per bottoni stile QR */
.qr-style-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}

.qrcode-placeholder {
    background: var(--card-bg);
    border-radius: 1.5rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
}

.preview-message {
    text-align: center;
    color: var(--border-color);
}

.preview-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin-top: 15px;
}

.primary-btn:hover,
.secondary-btn:hover {
    background-color: #2563eb;
}
      
.custom-upload-button {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    text-align: center;
    margin-top: 10px;
}

.custom-upload-button:hover {
    background-color: #2563eb;
}

#logo-size {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 20 20"><path d="M5.23 7.21a.75.75 0 011.06.02L10 11.186l3.71-3.954a.75.75 0 011.08 1.04l-4.25 4.526a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

#logo-size:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hidden {
    display: none !important;
}













/* ==========================================================================
   GENERATORS MENU - STILI PER IL MENU GENERATORI- sottomenu
   ========================================================================== */

.generators-menu-wrapper {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 0rem;
    padding: 0 2rem;
}

.generators-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.generator-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}



/* Hover unificato per tutti i pulsanti non attivi */
.generator-tab:not(.active):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.05);
}

/* Stato attivo unificato */
.generator-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.generator-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.generator-tab:not(.active):hover i {
    transform: scale(1.1);
}

/* Focus state per accessibilità */
.generator-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}



/* Nuove opzioni personalizzazione */
.gradient-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.gradient-colors {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}


.gradient-colors .color-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gradient-colors label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.finder-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.finder-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.finder-btn.active {
    border-color: var(--primary-color);
    background: #e0f2fe;
    box-shadow: var(--shadow);
}


/* Menu a discesa con stile personalizzato (es. sicurezza Wi‑Fi) */
.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 20 20"><path d="M5.23 7.21a.75.75 0 011.06.02L10 11.186l3.71-3.954a.75.75 0 011.08 1.04l-4.25 4.526a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.styled-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    outline: none;
}


