/* RESET DI SICUREZZA */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* IMMAGINI RESPONSIVE */
img, svg {
    max-width: 100%;
    height: auto;
}

/* LOGO */
.logo {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1000;
}

.imglogo {
    width: 130px;
    max-width: 35vw;
    height: auto;
}

/* MAPPA */
#map {
    height: 600px;
    width: 100%;
}

/* TESTO */
.justyfy {
    text-align: justify;
}

.menuText {
    font-weight: bold;
}

.mappe {
    text-align: center;
}

/* ROOT COLORS */
:root {
    --bg-body: #f5f7fa;
    --bg-panel: #ffffff;
    --accent: #1c5c73;
    --accent-soft: #e0eef3;
    --accent-strong: #0f3d4d;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --border-soft: #dde3ea;
    --badge-bg: #0f766e;
    --badge-text: #ecfdf5;
    --danger: #b91c1c;
    --warning: #92400e;
}

/* BODY */
body {
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* PAGE WRAPPER */
.page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* HERO */
header.hero {
    background: linear-gradient(135deg, #062b3a 0%, #14526b 40%, #1ea3b3 100%);
    color: #f9fafb;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.8rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.14) 0, transparent 55%),
                radial-gradient(circle at 90% 100%, rgba(15,118,110,0.3) 0, transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .hero-inner {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
        align-items: center;
    }
}

/* HERO ELEMENTS */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.hero-kicker-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.42);
}

.hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 0.6rem;
    color: white;
}

@media (min-width: 720px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    margin: 0 0 0.9rem;
    color: #e5e7eb;
    font-size: 0.97rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hero-tag {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(226,232,240,0.4);
    font-size: 0.72rem;
    color: #e5e7eb;
    background: rgba(15,23,42,0.45);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(15,23,42,0.75);
    color: #bbf7d0;
    margin-bottom: 0.9rem;
}

.hero-badge-icon {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: #22c55e;
}

.hero-note {
    font-size: 0.8rem;
    color: #e5e7eb;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* HERO SIDE */
.hero-side {
    background: radial-gradient(circle at 0 0, rgba(15,23,42,0.6), transparent 60%),
                radial-gradient(circle at 100% 100%, rgba(15,118,110,0.8), transparent 65%);
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(15,23,42,0.55);
    box-shadow: 0 18px 45px rgba(15,23,42,0.55);
}

.hero-side-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #e5e7eb;
    margin: 0 0 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    font-size: 0.78rem;
    color: #e5e7eb;
}

.hero-side-item {
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(148,163,184,0.5);
}

/* MAIN LAYOUT */
main {
    margin-top: 1.9rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    main {
        grid-template-columns: minmax(0, 2.15fr) minmax(0, 1.3fr);
    }
}

@media (max-width: 960px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* PANELS */
.panel {
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 1.4rem;
    border: 1px solid #e1e7ef;
    box-shadow: 0 14px 30px rgba(15,23,42,0.04);
}

/* TWO COLUMN GRID */
.two-col {
    display: grid;
    gap: 1.2rem;
}

@media (min-width: 720px) {
    .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* KEYDATA GRID */
.keydata-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.keydata-item {
    padding: 0.45rem 0.55rem;
    border-radius: 0.6rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.82rem;
}

/* CALLOUTS */
.callout {
    border-radius: 0.75rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.84rem;
    margin-top: 0.7rem;
}

.callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.callout-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

/* QUICK ACCESS MENU */
.quick-access-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.quick-access-list li {
    margin: 0.4rem 0;
}

.quick-access-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: var(--accent-strong);
    text-decoration: none;
    max-width: 100%;
}

.qa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* TABLE RESPONSIVE */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.6rem;
    border: 1px solid #e5e7eb;
    word-wrap: break-word;
}

/* SIDE SECTIONS */
.side-section {
    border-radius: 0.9rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: left;
}
