/* ============================================================
   WellCAM — UNICAM  |  style.css
   Colori: blu #222C4A · rosso #E2001A · bianco #FFF · grigio #F5F5F5
   Tipografia: Titillium web (titoli) · system-ui (corpo)
   Mobile-first, breakpoint 768px
   ============================================================ */

/* ===== Variabili ===== */
:root {
    --blue:         #222C4A;
    --blue-dark:    #1a2238;
    --red:          #E2001A;
    --white:        #FFFFFF;
    --gray-light:   #F5F5F5;
    --gray-mid:     #E0E0E0;
    --text:         #1A1A1A;
    --text-muted:   #5A5A5A;

    /* Colori aree tematiche */
    --c-hospitality: #1B6CA8;
    --c-wellness:    #2E7D52;
    --c-bike:        #C45C10;
    --c-beverage:    #6B3A7D;
    --c-food:        #8B6400;

    --header-h: 68px;
    --max-w:    1200px;
    --radius:   6px;
    --shadow:   0 2px 10px rgba(0,0,0,0.09);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
    font-family: 'Titillium web', sans-serif, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ===== Tipografia ===== */
h1, h2, h3, h4 {
    font-family: 'Titillium web', sans-serif;
    line-height: 1.2;
    color: var(--blue);
}
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 0.7rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-bottom: 0.45rem; }
h4 { font-size: 1.04rem; margin-bottom: 0.35rem; }

p { margin-bottom: 0.7rem; }
p:last-child { margin-bottom: 0; }

/* ===== Container ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Pulsanti ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: background 0.18s, border-color 0.18s;
    cursor: pointer;
    text-align: center;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover,
.btn-red:focus { background: #b5001a; border-color: #b5001a; outline: none; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--blue);
    height: var(--header-h);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.header-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-title {
    font-family: 'Titillium web', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.header-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.22s, opacity 0.22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.main-nav.nav-open { display: block; }

.main-nav ul { display: flex; flex-direction: column; }
.main-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.15s;
}
.main-nav a:hover { color: var(--white); }

/* Nav desktop */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .main-nav {
        display: block;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
    }
    .main-nav ul { flex-direction: row; gap: 0.1rem; align-items: center; }
    .main-nav a {
        padding: 0.45rem 0.7rem;
        border-bottom: none;
        border-radius: 4px;
        font-size: 0.88rem;
    }
    .main-nav a:hover { background: rgba(255,255,255,0.1); }
}

/* ===== HERO ===== */
.hero {
    background: var(--blue);
    color: var(--white);
    padding: 5rem 0 4.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3.2rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-payoff {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    line-height: 1.55;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pills {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.pill {
    padding: 0.35rem 1.1rem;
    border: 1.5px solid rgba(255,255,255,0.38);
    border-radius: 100px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.04em;
}

/* ===== Sezioni comuni ===== */
.section         { padding: 4.5rem 0; }
.section-white   { background: var(--white); }
.section-gray    { background: var(--gray-light); }
.section-blue    { background: var(--blue); color: var(--white); }

.section-blue h2,
.section-blue h3,
.section-blue h4 { color: var(--white); }
.section-blue p  { color: rgba(255,255,255,0.78); }

.section-header {
    margin-bottom: 2.75rem;
    max-width: 700px;
}
.section-intro {
    font-size: 1.04rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.section-header-light .section-intro { color: rgba(255,255,255,0.72); }
.section-header-wide { max-width: 100%; }

/* ===== Griglia aree ecosistema ===== */
.area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 480px)  { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(5, 1fr); } }

.area-card {
    padding: 1.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.18s, transform 0.18s;
}
.area-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); transform: translateY(-2px); }

.area-card[data-area="hospitality"] { border-top-color: var(--c-hospitality); }
.area-card[data-area="wellness"]    { border-top-color: var(--c-wellness); }
.area-card[data-area="bike"]        { border-top-color: var(--c-bike); }
.area-card[data-area="beverage"]    { border-top-color: var(--c-beverage); }
.area-card[data-area="food"]        { border-top-color: var(--c-food); }

.area-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Titillium web', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}
.area-card[data-area="hospitality"] .area-icon { background: var(--c-hospitality); }
.area-card[data-area="wellness"]    .area-icon { background: var(--c-wellness); }
.area-card[data-area="bike"]        .area-icon { background: var(--c-bike); }
.area-card[data-area="beverage"]    .area-icon { background: var(--c-beverage); }
.area-card[data-area="food"]        .area-icon { background: var(--c-food); }

.area-card h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 0.4rem; }
.area-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== Blocchi livello ===== */
.level-block {
    margin-bottom: 3rem;
    padding: 2.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.level-block:last-child { margin-bottom: 0; }

.level-block-dark {
    background: var(--blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.level-block-dark h3,
.level-block-dark h4 { color: var(--white); }
.level-block-dark p  { color: rgba(255,255,255,0.78); }
.level-block-dark .level-description { color: rgba(255,255,255,0.65); }

.level-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.level-badge {
    display: inline-block;
    padding: 0.22rem 0.85rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    width: fit-content;
}
.level-badge-red { background: var(--red); }

.access-badge {
    display: inline-block;
    padding: 0.18rem 0.7rem;
    background: rgba(226,0,26,0.1);
    color: var(--red);
    border: 1px solid rgba(226,0,26,0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}
.access-badge-outline {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.3);
}

.level-description {
    color: var(--text-muted);
    font-size: 0.93rem;
    max-width: 640px;
    margin-top: 0.25rem;
}

/* ===== Griglia card corsi ===== */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 640px)  { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Card corso base ===== */
.course-card {
    padding: 1.4rem;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.course-card h4 {
    font-size: 1.03rem;
    color: var(--blue);
}

.course-subtitle {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
}

.course-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.58;
    flex: 1;
    margin: 0;
}

.course-card-top {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.course-area-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.14rem 0.55rem;
    border-radius: 100px;
    background: var(--blue);
    color: var(--white);
}
.course-area-tag[data-area="hospitality"] { background: var(--c-hospitality); }
.course-area-tag[data-area="wellness"]    { background: var(--c-wellness); }
.course-area-tag[data-area="bike"]        { background: var(--c-bike); }
.course-area-tag[data-area="beverage"]    { background: var(--c-beverage); }
.course-area-tag[data-area="food"]        { background: var(--c-food); }

.open-badge-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.14rem 0.55rem;
    border-radius: 100px;
    border: 1.5px solid var(--blue);
    color: var(--blue);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.83rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid var(--gray-mid);
}
.meta-item { color: var(--text-muted); }
.meta-sep  { color: var(--gray-mid); }

.course-price {
    font-family: 'Titillium web', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--red);
}

/* Card percorsi avanzati */
.course-card-advanced {
    background: var(--gray-light);
    border-left: 4px solid var(--blue);
}

.course-composition {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    background: rgba(34,44,74,0.07);
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
}

/* Card master — sfondo scuro */
.course-card-master {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
}
.course-card-master h4          { color: var(--white); }
.course-card-master .course-meta { border-top-color: rgba(255,255,255,0.18); }

.master-crediti {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.65rem;
    border-radius: 100px;
    background: var(--red);
    color: var(--white);
    width: fit-content;
    margin-bottom: 0.3rem;
}

.course-composition-light {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.82);
}

.course-price-light {
    color: #ffb3bb;
}

/* ===== Griglia certificazioni ===== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-card {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cert-icon {
    font-size: 2rem;
    color: var(--blue);
    display: block;
    margin-bottom: 0.9rem;
}

.cert-card h3 { font-size: 1.08rem; margin-bottom: 0.65rem; }
.cert-card p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

.cert-levels {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.7rem;
    border-radius: 100px;
    background: var(--blue);
    color: var(--white);
}

.kreativeu-box {
    padding: 1.5rem 2rem;
    background: var(--red);
    border-radius: var(--radius);
    color: var(--white);
}
.kreativeu-box strong {
    display: block;
    font-family: 'Titillium web', sans-serif;
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}
.kreativeu-box p { color: rgba(255,255,255,0.86); font-size: 0.9rem; margin: 0; }

/* ===== Tabella prezzi ===== */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
    min-width: 600px;
}

.price-table th {
    background: var(--blue);
    color: var(--white);
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.price-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--gray-mid);
    vertical-align: middle;
    color: var(--text);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) td { background: var(--gray-light); }

.table-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
}

.price-col {
    font-family: 'Titillium web', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

/* All Inclusive */
.allinclusive-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--blue);
    border-radius: var(--radius);
    color: var(--white);
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .allinclusive-box { flex-direction: row; align-items: flex-start; gap: 2rem; }
}

.allinclusive-price {
    font-family: 'Titillium web', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    line-height: 1;
}

.allinclusive-content h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.6rem; }
.allinclusive-content p  { color: rgba(255,255,255,0.78); font-size: 0.9rem; }

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.7rem 1rem;
    background: rgba(0,0,0,0.04);
    border-left: 3px solid var(--gray-mid);
    border-radius: 0 4px 4px 0;
    margin: 0;
}

/* ===== Target grid ===== */
.target-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 640px)  { .target-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .target-grid { grid-template-columns: repeat(3, 1fr); } }

.target-card {
    padding: 1.6rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.18s, transform 0.18s;
}
.target-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.11); transform: translateY(-2px); }

.target-number {
    font-family: 'Titillium web', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.target-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }

.target-need {
    font-size: 0.83rem;
    font-style: italic;
    color: var(--text-muted);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gray-mid);
    margin-bottom: 0.6rem;
}

.target-card p:last-child { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== Sezione contatti ===== */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
@media (min-width: 768px) { .contact-inner { grid-template-columns: 1fr 1fr; align-items: center; } }

.contact-info p      { color: rgba(255,255,255,0.78); margin-bottom: 0.5rem; }
.contact-info strong { color: var(--white); }

.contact-link {
    color: rgba(255,255,255,0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-link:hover { color: var(--white); }

.contact-hours {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.contact-cta p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--blue); color: var(--white); padding-top: 3rem; }

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }

.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }

.footer-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-title  { font-family: 'Titillium web', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-subtitle { font-size: 0.76rem; color: rgba(255,255,255,0.5); margin-bottom: 0.65rem; }
.footer-payoff {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.6);
    max-width: 380px;
    line-height: 1.58;
    margin: 0;
}

.footer-nav h4 {
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-nav a  { color: rgba(255,255,255,0.65); font-size: 0.86rem; transition: color 0.15s; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom { padding: 1.1rem 0; }
.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    text-align: center;
    margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--white); }

/* ===== Immagine hero ===== */
.hero-visual {
    margin-top: 3rem;
    line-height: 0;
}

.hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* ===== Immagini di sezione ===== */
.section-figure {
    margin-bottom: 2.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    line-height: 0;
}

.section-figure img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* ===== Focus accessibilità ===== */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ===== Responsive mobile fine-tune ===== */
@media (max-width: 767px) {
    .section    { padding: 3rem 0; }
    .hero       { padding: 3.5rem 0 3rem; }
    .level-block { padding: 1.5rem; }
}

@media (max-width: 400px) {
    .header-subtitle { display: none; }
    .header-title    { font-size: 1.2rem; }
}

/* ====================================
   WELLCAM MODALS
==================================== */

.area-link {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
    font-weight: 600;
}

.area-card h3 {
    margin-bottom: 0.5rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.75);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: all .25s ease;

    z-index: 99999;
}

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

.modal-content {
    position: relative;

    width: 90vw;
    height: 90vh;

    background: #fff;
    border-radius: 10px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

/*
.modal-content h2 {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #ddd;
    margin: 0;
}
*/

.modal-content h2 {
    padding: 1.2rem 2rem;
    margin: 0;
    color: #fff;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    font-size: 2rem;
    cursor: pointer;

    color: var(--blue);
}

.modal-close:hover {
    color: var(--red);
}

body.modal-open {
    overflow: hidden;
}

/* Header colorati come le card */

.modal-hospitality h2 {
    background: var(--c-hospitality);
}

.modal-wellness h2 {
    background: var(--c-wellness);
}

.modal-bike h2 {
    background: var(--c-bike);
}

.modal-beverage h2 {
    background: var(--c-beverage);
}

.modal-food h2 {
    background: var(--c-food);
}

.modal-hospitality {
    border-top: 8px solid var(--c-hospitality);
}

.modal-wellness {
    border-top: 8px solid var(--c-wellness);
}

.modal-bike {
    border-top: 8px solid var(--c-bike);
    --modal-color: var(--c-bike)
}

.modal-beverage {
    border-top: 8px solid var(--c-beverage);
}

.modal-food {
    border-top: 8px solid var(--c-food);
}

.modal-close {
    color: #fff;
}

.modal-close:hover {
    color: rgba(255,255,255,.8);
}

/* ===============================
   TABELLE MODALI WELLCAM
================================ */

.modal-intro {
    margin-bottom: 2rem;
}

.modal-intro p {
    font-size: 1rem;
    line-height: 1.7;
}

.modal-table-wrapper {
    overflow-x: auto;
}

.modal-course-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.modal-course-table thead th {
    background: lightgray;
    padding: 14px 16px;
    text-align: center;
    font-size: .95rem;
}

.modal-course-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.modal-course-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.modal-course-table tbody tr:hover {
    background: #eef5fb;
}

.modal-course-table tbody td:first-child {
    text-align: center;
}

.table-section td {
    font-weight: 700;
    text-align: center;
    padding: 14px;
    border-bottom: none;
}

