/* Variabili Colori - Palette Aggiornata */
:root {
    --primary-color: #8b023c;
    --primary-hover: #6a012d;
    --text-dark: #1f345c;
    --text-light: #5a6b8c;
    --bg-light: #fffaf5;
    --bg-dark: #1f345c;
    --white: #ffffff;
    --cream: #fffaf5;
}

/* Reset e Stili Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Tipografia */
h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: -20px auto 40px auto;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

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

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

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

.btn-small {
    padding: 10px 16px;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Layout Sezioni */
section {
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Header & Navigazione SPA */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(31, 52, 92, 0.08);
}

.logo img {
    height: 50px;
}

.nav-area,
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-cta {
    color: white;
    margin-left: 20px;
    padding: 10px 20px;
}

.nav-cta-icon {
    display: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Gestione Sottopagine */
.subpage {
    display: none;
    animation: fadeIn 0.5s ease;
}

.subpage.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-light);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cards & Blocchi */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 52, 92, 0.05);
}

/* Focus Box (Esempio Pratico) */
.focus-box {
    background-color: #f0f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 0 12px 12px 0;
    margin-top: 30px;
}

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

/* Supporto */
.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

.support-panel {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 52, 92, 0.05);
    padding: 30px;
}

.support-contact-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0 0;
}

.support-contact-item {
    background: #f0f4f8;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 16px 18px;
}

.support-contact-item span {
    color: var(--text-light);
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.support-contact-item a {
    color: var(--text-dark);
    font-weight: 700;
}

.support-actions {
    display: grid;
    gap: 14px;
}

.support-actions .btn {
    width: 100%;
}

.thankyou-section {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px;
}

.thankyou-panel {
    width: min(100%, 720px);
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(31, 52, 92, 0.08);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 15px rgba(31, 52, 92, 0.05);
}

.thankyou-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--primary-color);
    color: var(--cream);
    font-size: 2rem;
    font-weight: 700;
}

.thankyou-panel h1 {
    font-size: 2.4rem;
}

.thankyou-panel p {
    max-width: 560px;
    margin: 0 auto 28px auto;
}

.thankyou-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Acquisizione */
.lead-form-section {
    background-color: var(--primary-color);
    color: var(--cream);
    padding: 30px 20px;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1100px;
}

.lead-form-section h2,
.lead-form-section p,
.lead-form-section .subtitle {
    color: var(--cream);
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

.form-container p {
    color: var(--text-dark);
}


.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d8e0;
    border-radius: 6px;
    font-size: 1rem;
}

.lead-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.micro-copy {
    font-size: 0.8rem;
    color: rgba(255, 250, 245, 0.8);
    text-align: center;
    margin-top: 15px;
    display: block;
}

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    display: none;
    color: var(--text-light);
}

.faq-question.active+.faq-answer {
    display: block;
}

/* Tabelle Calendario */
.city-table-list,
.table-container {
    display: grid;
    gap: 18px;
}

.city-table-group {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 52, 92, 0.05);
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 1px solid rgba(31, 52, 92, 0.08);
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 52, 92, 0.05);
}

.city-table-media {
    min-height: 100%;
    background: #e2e8f0;
}

.city-table-media img,
.city-table-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: block;
    object-fit: cover;
}

.city-table-image-placeholder {
    background: linear-gradient(135deg, rgba(139, 2, 60, 0.18), rgba(31, 52, 92, 0.18));
}

.city-table-content {
    padding: 24px;
}

.city-table-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.city-table-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.city-table-header p {
    margin-bottom: 0;
}

.city-table-items {
    display: grid;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.table-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.table-link {
    transition: background-color 0.3s ease;
}

.table-link:hover {
    background-color: rgba(31, 52, 92, 0.04);
}

.table-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.table-image {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 72px;
    background: #e2e8f0;
}

.table-image-placeholder {
    background: linear-gradient(135deg, rgba(139, 2, 60, 0.18), rgba(31, 52, 92, 0.18));
}

.table-city {
    color: var(--text-dark);
}

.table-name {
    color: var(--text-dark);
}

.table-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 2px;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table-details-form-link {
    width: 100%;
    margin: 0 0 12px 0;
}

.selected-table-panel {
    background: #f0f4f8;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    text-align: left;
}

.selected-table-panel span {
    display: block;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.selected-table-panel strong {
    display: block;
    color: var(--text-dark);
    margin-top: 2px;
}

.status-avail {
    color: #10B981;
    font-weight: 600;
}

.status-soldout {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--cream);
    padding: 60px 20px 20px 20px;
    text-align: center;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

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

    header {
        position: sticky;
        display: flex;
        padding: 12px 16px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        display: block;
        height: 38px;
    }

    .nav-area {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        background: var(--bg-light);
        box-shadow: 0 6px 10px rgba(31, 52, 92, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
    }

    .nav-cta {
        margin-left: 0;
        display: grid;
        width: 42px;
        height: 42px;
        padding: 0;
        place-items: center;
        border-radius: 50%;
    }

    .nav-cta-label {
        display: none;
    }

    .nav-cta-icon {
        display: block;
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .city-table-group {
        grid-template-columns: 1fr;
    }

    .city-table-media img,
    .city-table-image-placeholder {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .city-table-header {
        flex-direction: column;
        gap: 8px;
    }

    .support-layout {
        grid-template-columns: 1fr;
    }

    .thankyou-panel {
        padding: 34px 22px;
    }

    .thankyou-panel h1 {
        font-size: 2rem;
    }

    .thankyou-actions .btn {
        width: 100%;
    }

    .table-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .table-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .table-actions .btn {
        flex: 1 1 150px;
    }
}
