/* ============================================
   PIA.BRUSCHI.COM - STYLE.CSS NUOVO
   Design moderno, accessibile, conversion-oriented
   ============================================ */

/* === RESET & VARIABILI === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

strong {
    font-weight: 600;
    color: var(--dark);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 800px;
}

.section {
    padding: 80px 0;
}

.section.bg-light {
    background: var(--light);
}

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

/* === HEADER === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark);
}

.brand .logo {
    width: 48px;
    height: 48px;
}

.brand strong {
    display: block;
    font-size: 18px;
}

.brand small {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.main-nav .btn-nav {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
}

.main-nav .btn-nav:hover {
    background: var(--primary-dark);
    border-bottom-color: transparent;
}

.mobile-toggle {
    display: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 16px 24px;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--light);
}

.mobile-nav a.btn-nav {
    margin: 12px 24px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    border: none;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--dark);
    }
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
}

.hero .badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero h1 strong {
    color: var(--secondary);
}

.hero .lead {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

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

.hero-stats strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.hero-stats strong .info-asterisk-inline {
    font-size: 32px;
}

.hero-stats span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .lead {
        font-size: 18px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* === SECTION HEADER === */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.label {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header .subtitle {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
}

/* === GRID === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 968px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.content-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 968px) {
    .content-2col {
        grid-template-columns: 1fr;
    }
}

/* === FEATURE CARD === */
.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* === CARDS === */
.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.card dl {
    display: grid;
    gap: 12px;
}

.card dt {
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card dd {
    font-size: 16px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.card dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* === BADGES === */
.badges {
    margin-top: 24px;
}

.badge-ente {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin: 4px;
}

/* === CHECKLIST === */
.checklist {
    list-style: none;
    margin: 24px 0;
}

.checklist li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

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

.checklist li span {
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.highlight-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

/* === ALERT BOX === */
.alert-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}

.alert-warning strong {
    color: #92400e;
    display: block;
    margin-bottom: 12px;
}

.alert-warning ul {
    list-style: none;
    margin-top: 12px;
}

.alert-warning li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.alert-warning li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #f59e0b;
    font-weight: 700;
}

/* === INFO BOX === */
.info-box {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 40px;
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

/* === TABLE === */
.table-compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 32px 0;
}

.table-compare thead {
    background: var(--dark);
    color: var(--white);
}

.table-compare th,
.table-compare td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table-compare th {
    font-weight: 700;
}

.table-compare th.highlight {
    background: var(--primary);
}

.table-compare th small {
    display: block;
    font-weight: 400;
    opacity: 0.9;
    font-size: 13px;
    margin-top: 4px;
}

.table-compare tbody tr:hover {
    background: var(--light);
}

@media (max-width: 768px) {
    .table-compare {
        font-size: 14px;
    }
    
    .table-compare th,
    .table-compare td {
        padding: 12px 8px;
    }
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 80px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-number {
    position: absolute;
    left: -80px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 0 0 8px var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style: none;
    margin: 16px 0;
}

.timeline-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.timeline-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 40px;
    }
    
    .timeline:before {
        left: 15px;
    }
    
    .timeline-number {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* === CTA BOX === */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 60px;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    list-style: none;
    position: relative;
    padding-right: 48px;
}

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

.faq-item summary:after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.faq-item[open] summary:after {
    content: '−';
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--gray-700);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer ul {
    list-style: none;
    margin: 16px 0;
}

.faq-answer li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.faq-answer li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

/* === FORM === */
.form-pia {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
}

.char-count {
    float: right;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
}

.g-recaptcha {
    margin: 24px 0;
}

@media (max-width: 640px) {
    .form-pia {
        padding: 32px 24px;
    }
}

/* === DOCS GRID === */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
}

.doc-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 32px;
}

.doc-card strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.doc-card small {
    display: block;
    color: var(--gray-600);
    font-size: 13px;
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 32px;
}

/* Bandiera italiana animata */
.waving-flag {
    display: inline-block;
    font-size: 1em;
    margin-left: 0.4rem;
    animation: flagWave 1.5s ease-in-out infinite;
    transform-origin: left center;
}

/* Bandiera SVG animata */
.waving-flag-svg {
    display: inline-block;
    width: 1.2em;
    height: 0.9em;
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: flagWave 1.5s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes flagWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(12deg);
    }
    75% {
        transform: rotate(-12deg);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--gray-300);
}

.footer-col p strong {
    color: var(--white);
}

.footer-col a {
    color: var(--gray-300);
}

.footer-col a:hover {
    color: var(--primary);
}

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

.footer-col li {
    padding: 8px 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 32px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 8px 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* === COOKIE BANNER === */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
}

#cookieBanner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

#cookieBanner p {
    margin: 0;
}

#cookieBanner button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

#cookieBanner button:hover {
    background: var(--primary-dark);
}

@media (max-width: 640px) {
    #cookieBanner .container {
        flex-direction: column;
        text-align: center;
    }
}

/* === UTILITIES === */
.center {
    text-align: center;
}

.intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.link-arrow {
    font-weight: 600;
    color: var(--primary);
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ====================================
   NUOVI STILI - VERSIONE OTTOBRE 2025
   ==================================== */

/* === SOCIAL BAR === */
.social-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.social-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--gray-700);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icons a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .social-icons {
        gap: 12px;
    }
    
    .social-icons a {
        width: 44px;
        height: 44px;
    }
    
    .social-icons svg {
        width: 20px;
        height: 20px;
    }
}

/* === QR SCROLL BUTTON === */
/* === BARRA AZIONI RAPIDE BOTTOM === */
.action-bar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    backdrop-filter: blur(8px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

.action-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* Colori specifici per ogni bottone */
.action-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.action-whatsapp:hover {
    background: linear-gradient(135deg, #1ed760 0%, #0e7361 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.action-call {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.action-call:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.action-scroll {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-scroll:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.action-qr {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.action-qr:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Mobile: icone più piccole, meno padding */
@media (max-width: 768px) {
    .action-bar-bottom {
        padding: 10px 8px;
        gap: 4px;
    }
    
    .action-btn {
        padding: 8px 10px;
        min-width: 60px;
        gap: 2px;
    }
    
    .action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .action-label {
        font-size: 9px;
    }
}

/* Very small screens: solo icone, no testo */
@media (max-width: 400px) {
    .action-btn {
        min-width: 50px;
        padding: 10px 8px;
    }
    
    .action-label {
        display: none;
    }
    
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* === QR POPUP === */
.qr-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.qr-popup.active {
    display: flex;
}

.qr-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.qr-popup-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray-600);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.qr-popup-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.qr-popup-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.qr-popup-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.qr-popup-code {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    display: inline-block;
}

.qr-popup-code img {
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

.qr-popup-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Aggiornamento stili footer per telefono corretto */
.site-footer a[href^="tel"] {
    font-weight: 600;
    color: var(--primary-light);
}

.site-footer a[href^="tel"]:hover {
    color: var(--white);
}

@media (max-width: 640px) {
    .qr-popup-content {
        padding: 32px 24px;
    }
    
    .qr-popup-content h3 {
        font-size: 20px;
    }
    
    .qr-popup-code {
        padding: 20px;
    }
    
    .qr-popup-code img {
        width: 180px;
        height: 180px;
    }
}

/* === TOOLTIP ASTERISCO === */
.info-asterisk {
    position: relative;
    cursor: help;
    font-size: 0.7em;
    color: var(--secondary);
    margin-left: 2px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.info-asterisk::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    width: max-content;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1000;
    line-height: 1.4;
}

.info-asterisk::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 8px solid transparent;
    border-top-color: var(--dark);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.info-asterisk:hover::before,
.info-asterisk:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .info-asterisk::before {
        max-width: 250px;
        font-size: 13px;
        left: auto;
        right: 0;
        transform: translateX(0) scale(0);
    }
    
    .info-asterisk:hover::before {
        transform: translateX(0) scale(1);
    }
    
    .info-asterisk::after {
        left: auto;
        right: 20px;
    }
}

/* === AGGIORNAMENTO QR SCROLL BUTTON === */
.qr-scroll-button {
    width: 90px;
    height: 90px;
    padding: 10px;
}

.qr-hand-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 2px;
}

.qr-scroll-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: -2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .qr-scroll-button {
        width: 75px;
        height: 75px;
    }
    
    .qr-hand-icon {
        width: 42px;
        height: 42px;
    }
    
    .qr-scroll-text {
        font-size: 9px;
    }
}

/* === ICONE SOCIAL A COLORI === */
.social-icons a {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition);
}

.social-icons a:hover::before {
    opacity: 1;
}

/* Colori specifici per ogni social */
.social-icons a:nth-child(1) { background: #1877f2; } /* Facebook */
.social-icons a:nth-child(2) { background: #0a66c2; } /* LinkedIn */
.social-icons a:nth-child(3) { background: #1da1f2; } /* Twitter */
.social-icons a:nth-child(4) { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); } /* Instagram */
.social-icons a:nth-child(5) { background: #ff0000; } /* YouTube */
.social-icons a:nth-child(6) { background: #e60023; } /* Pinterest */
.social-icons a:nth-child(7) { background: #fffc00; } /* Snapchat */
.social-icons a:nth-child(8) { background: #0088cc; } /* Telegram */
.social-icons a:nth-child(9) { background: #25d366; } /* WhatsApp */
.social-icons a:nth-child(10) { background: #00457c; } /* PayPal */
.social-icons a:nth-child(11) { background: #9b59b6; } /* Podcast */
.social-icons a:nth-child(12) { background: #1db954; } /* Spotify */
.social-icons a:nth-child(13) { background: #35465c; } /* Tumblr */

.social-icons a svg {
    filter: brightness(0) invert(1);
}

.social-icons a:nth-child(7) svg {
    filter: brightness(0); /* Snapchat nero su giallo */
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.1);
}

/* === TOOLTIP INLINE (su testo esteso) === */
.info-asterisk-inline {
    position: relative;
    cursor: help;
    color: var(--secondary);
    font-weight: 700;
    border-bottom: 2px dotted var(--secondary);
    transition: var(--transition);
}

.info-asterisk-inline:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.info-asterisk-inline::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1000;
    line-height: 1.5;
    text-align: center;
}

.info-asterisk-inline::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 8px solid transparent;
    border-top-color: var(--dark);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.info-asterisk-inline:hover::before,
.info-asterisk-inline:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Fix per Hero h1 */
.hero h1 .info-asterisk-inline {
    color: inherit;
}

.hero h1 .info-asterisk-inline strong {
    color: var(--secondary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .info-asterisk-inline::before {
        max-width: 220px;
        font-size: 13px;
        left: 50%;
        right: auto;
    }
}

/* === FIX SNAPCHAT ICON === */
.social-icons a:nth-child(7) {
    background: #fffc00; /* Giallo Snapchat */
    border: 2px solid #000;
}

.social-icons a:nth-child(7) svg {
    filter: brightness(0); /* Nero su giallo */
}

.social-icons a:nth-child(7):hover {
    background: #fff500;
    box-shadow: 0 8px 20px rgba(255, 252, 0, 0.4);
}

/* === FIX QR HAND ICON (non più bianca) === */
.qr-hand-icon {
    filter: none !important; /* Rimuovo filter bianco */
}

/* === SNAPCHAT ICON FIX DEFINITIVO === */
.social-icons a:nth-child(7) {
    background: #FFFC00 !important; /* Giallo Snapchat */
    border: none !important;
}

.social-icons a:nth-child(7) svg {
    filter: none !important;
    fill: #000000 !important; /* Nero */
}

.social-icons a:nth-child(7):hover {
    background: #FFF000 !important;
    box-shadow: 0 8px 20px rgba(255, 252, 0, 0.5) !important;
}

/* === SEZIONE SIMULATORE === */
.simulator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gray-200);
}

.simulator-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.simulator-icon {
    font-size: 96px;
    text-align: center;
}

.simulator-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.simulator-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-700);
}

.simulator-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--gray-200);
}

.simulator-cta .btn {
    font-size: 18px;
    padding: 16px 40px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .simulator-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .simulator-icon {
        font-size: 72px;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .simulator-card {
        padding: 40px 24px;
    }
}

/* === FORM WIZARD === */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--transition);
}

.wizard-step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.wizard-step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.wizard-step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

.wizard-step.active .step-label {
    color: var(--primary);
}

.wizard-panel {
    display: none;
    animation: fadeInUp 0.3s ease-out;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

fieldset.wizard-panel {
    border: none;
    padding: 0;
    margin: 0;
}

legend.wizard-panel-title {
    width: 100%;
    float: none;
    padding: 0;
}

.wizard-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-panel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
}

.wizard-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.wizard-buttons .btn {
    min-width: 140px;
}

@media (max-width: 768px) {
    .wizard-progress {
        margin-bottom: 32px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .wizard-progress::before {
        left: 40px;
        right: 40px;
        top: 20px;
    }
    
    .wizard-buttons {
        flex-direction: column;
    }
    
    .wizard-buttons .btn {
        width: 100%;
    }
}
