:root {
    --anagni-blu: #003366;
    --anagni-blu-chiaro: #0059b3;
    --anagni-blu-hover: #004080;
    --anagni-accento: #007acc;
    --anagni-accento-hover: #005fa3;
}

/* ========== STRUTTURA BASE ========== */

body {
    padding-bottom: 90px;
    background-color: #fff;
    color: #333;
}

.step {
    margin-top: 40px;
    text-align: left;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* ========== LANDING PAGE ========== */

.landing-container {
    max-width: 800px;
    margin: 60px auto 100px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.landing-title {
    color: var(--anagni-blu);
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
}

.landing-section-title {
    color: var(--anagni-blu);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ========== BOTTONI ========== */

.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.big-button {
    padding: 18px;
    font-size: 1.1rem;
    background-color: var(--anagni-blu-chiaro);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.big-button:hover {
    background-color: var(--anagni-blu-hover);
}

.small-button {
    padding: 12px 24px;
    font-size: 1rem;
    background-color: var(--anagni-accento);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.small-button:hover {
    background-color: var(--anagni-accento-hover);
}

/* Variante con gradiente */
.small-button.accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--anagni-accento), var(--anagni-blu-chiaro));
    border-radius: 30px;
    padding: 10px 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-button.accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--anagni-accento-hover), var(--anagni-blu-hover));
}

/* ========== CHANGE TARGA SECTION ========== */

.change-targa-section {
    margin-top: 50px;
    background-color: #f0f6ff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.change-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
}

.change-icon {
    font-size: 2rem;
    color: var(--anagni-blu-chiaro);
    margin-right: 15px;
    flex-shrink: 0;
}

.change-content {
    flex: 1;
    min-width: 260px;
}

.change-targa-text {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
}

.change-targa-section .ui.divider {
    margin: 20px 0;
    border-top: 1px dashed #cce0ff;
}

/* ========== FOOTER ========== */

.fixed-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--anagni-blu);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.fixed-footer a {
    color: #b3d1ff;
    text-decoration: none;
}

.fixed-footer a:hover {
    text-decoration: underline;
}

/* ========== MEDIA QUERIES ========== */

@media (min-width: 600px) {
    .button-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .big-button {
        flex: 1 1 calc(50% - 10px);
    }
}

/* ========== SEZIONI (STEP) ========== */

#tipo_abbonamento_scelto,
#num_targhe,
#prodotto_scelto {
    color: var(--anagni-blu-chiaro);
}

/* STEP 1C */
#step_1c h3 {
    color: var(--anagni-blu);
    font-size: 1.3rem;
}

#step_1c .form {
    margin-top: 20px;
}

#step_1c .field label {
    font-weight: bold;
    margin-bottom: 5px;
}

#step_1c .ui.dropdown {
    width: 100%;
}

#step_1c .ui.button {
    margin-top: 15px;
    margin-right: 10px;
}

/* STEP 2C */
#step_2c h3.ui.header {
    font-size: 1.3rem;
    color: var(--anagni-blu);
    margin-bottom: 20px;
}

#step_2c .field label {
    font-weight: bold;
    color: #444;
}

#step_2c .ui.input input,
#step_2c input[type="text"] {
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 1px;
    max-width: 300px;
    width: 100%;
}

#step_2c .ui.button {
    margin-top: 15px;
    margin-right: 10px;
}

/* STEP 3, 3B, 4, 5 (struttura comune) */
#step_3 h3.ui.header,
#step_3b h3.ui.header,
#step_4 h3,
#step_5 h3,
#step_1r h3 {
    font-size: 1.3rem;
    color: var(--anagni-blu);
    margin-bottom: 20px;
}

#step_3 .field label,
#step_3b .field label,
#step_2c .field label,
#step_1r .field label {
    font-weight: bold;
    color: #444;
}

#step_3 .ui.input input,
#step_3b .ui.input input,
#step_3 input[type="text"],
#step_3b input[type="text"] {
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 1px;
}

#step_3 .ui.button,
#step_3b .ui.button,
#step_4 .ui.button,
#step_5 .ui.button,
#step_1r .ui.button {
    margin-top: 15px;
    margin-right: 10px;
}

/* Tabelle (step 4 e 1r) */
#step_4 table.ui.celled.table td:not(:has(strong)),
#step_1r table.ui.celled.table td:not(:has(strong)) {
    font-family: monospace;
    letter-spacing: 1px;
}

#step_4 table.ui.celled.table strong,
#step_1r table.ui.celled.table strong {
    color: var(--anagni-blu);
}

#step_4 table.ui.celled.table td[colspan="2"],
#step_1r table.ui.celled.table td[colspan="2"] {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: #e6ffff;
    color: var(--anagni-blu);
}

/* Messaggi */
#step_3b .ui.message {
    font-size: 0.95em;
    padding: 10px;
    border-left: 4px solid var(--anagni-accento);
    background-color: #f8f9fa;
}

/* Modali */
.ui.modal .header {
    color: var(--anagni-blu);
}
