/* ============================================
   CalcolaCodiceFiscalee.it - Main Stylesheet
   Modern Italian Design with Flag Colors
   ============================================ */

:root {
    /* Italian Flag Colors */
    --italia-green: #009246;
    --italia-red: #CE2B37;
    --italia-white: #ffffff;
    
    /* Modern Color Palette */
    --primary: #009246;
    --primary-dark: #007a3a;
    --primary-light: #00a84f;
    --accent: #CE2B37;
    --accent-dark: #a8222c;
    --accent-light: #e63946;
    
    /* Neutrals */
    --dark: #1a1a1a;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #cbd5e0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    
    /* Backgrounds */
    --bg-light: #f8fafb;
    --bg-card: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 146, 70, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 146, 70, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 146, 70, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 146, 70, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-900);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.875rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }

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

a:hover {
    color: var(--accent);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    color: var(--dark);
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    background: var(--italia-green);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.logo-icon::before {
    display: none;
}

.logo-text {
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #009246;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-700);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--italia-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

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

.hero-section {
    background: var(--italia-green);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    display: none;
}

.hero-section::after {
    display: none;
}

.hero-contact {
    padding: 4rem 0 3rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
}

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

/* ============================================
   CALCULATOR SECTION
   ============================================ */

.calculator-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.calculator-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    border: 1px solid var(--gray-300);
}

.card-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h2 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
}

.card-header p {
    color: var(--text-gray);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ============================================
   FORM STYLES
   ============================================ */

.cf-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Urbanist', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.comune-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.comune-dropdown.active {
    display: block;
}

.comune-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.comune-item:last-child {
    border-bottom: none;
}

.comune-item:hover {
    background: var(--light-bg);
    color: var(--primary-navy);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

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

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

.btn-full {
    width: 100%;
}

/* ============================================
   MODAL / POPUP STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2.5rem 2.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-gray);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--italia-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.modal-title {
    text-align: center;
    color: var(--dark);
    font-size: 2rem;
    margin: 0 0 0.75rem;
    padding: 0 3rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1rem;
    margin: 0;
    padding: 0 2rem 2rem;
}

.modal-body {
    padding: 0 2.5rem 2.5rem;
}

.result-display {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.75rem;
    border: 2px solid var(--primary);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.result-value {
    font-family: 'Courier New', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.15em;
    word-break: break-all;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dati-estratti {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dato-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: var(--transition-fast);
}

.dato-item:hover {
    background: var(--gray-100);
    border-left-color: var(--primary-dark);
}

.dato-item.note {
    background: var(--gray-100);
    border-left-color: var(--accent);
}

.dato-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

.dato-value {
    color: var(--gray-700);
    font-size: 0.9375rem;
    text-align: right;
}

/* Hide old inline results */
.risultato {
    display: none !important;
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-section {
    padding: 5rem 0;
}

.info-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-block {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.content-block h2 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-gold);
}

.content-block h3 {
    color: var(--accent-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.content-block ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.875rem;
    line-height: 1.7;
}

.faq-item {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary);
    transition: var(--transition-fast);
}

.faq-item:hover {
    background: var(--gray-100);
    border-left-color: var(--primary-dark);
}

.faq-item h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    color: var(--dark);
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

.sidebar-card.highlight {
    background: var(--italia-green);
    color: var(--white);
    border: none;
}

.sidebar-card.highlight h3 {
    color: var(--white);
}

.sidebar-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.tool-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--gray-900);
    font-weight: 500;
    border: 1px solid transparent;
}

.tool-links a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tool-links svg {
    flex-shrink: 0;
    transition: var(--transition);
}

.tool-links a:hover svg {
    transform: scale(1.1);
}

/* ============================================
   MONTHS TABLE
   ============================================ */

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

.table-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.table-card h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.table-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.mesi-table {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.mese-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.mese-row:hover:not(.header) {
    background: var(--accent-light);
}

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

.mese-row.header {
    background: var(--italia-green);
    color: var(--white);
    font-weight: 700;
}

.mese-cell {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.mese-cell.lettera {
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--gray-100);
}

.mese-row:nth-child(even):not(.header) {
    background: #fafbfc;
}

.note-box,
.example-box {
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.note-box h3,
.example-box h4 {
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.note-box ul {
    margin-top: 1rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-page {
    padding: 4rem 0;
    background: var(--light-bg);
}

.legal-content {
    background: var(--white);
    padding: 4rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-note {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    border-top: 3px solid var(--italia-green);
}

.footer::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    color: var(--italia-green);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .calculator-card {
        padding: 2rem 1.5rem;
        margin-top: -3rem;
        border-radius: 20px;
    }
    
    .card-header h2 {
        font-size: 1.875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mese-row {
        grid-template-columns: 1fr;
    }
    
    .mese-cell {
        padding: 1rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 0;
    }
    
    .modal-title {
        font-size: 1.75rem;
        padding: 0 2.5rem;
    }
    
    .modal-subtitle {
        padding: 0 1.5rem 1.5rem;
    }
    
    .modal-body {
        padding: 0 1.5rem 2rem;
    }
    
    .result-value {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
    
    .result-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-card {
        padding: 1.5rem 1rem;
    }
    
    .card-header {
        margin-bottom: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.625rem;
    }
    
    .result-value {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding: 0 2rem;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: -3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.email-icon {
    background: var(--italia-green);
    color: var(--white);
}

.support-icon {
    background: var(--italia-red);
    color: var(--white);
}

.location-icon {
    background: var(--gray-700);
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.contact-card p {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-card .text-muted {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.contact-form-card h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.form-subtitle {
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Urbanist', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--accent);
}

.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}
