:root {
    --manupe-orange: #f59a32;
    --manupe-cyan: #13b8ea;
    --manupe-dark: #0e0e0f;
    --manupe-black: #050505;
    --manupe-white: #ffffff;
    --manupe-light: #f6f8fb;
    --manupe-text: #1f2937;
    --manupe-muted: #667085;
    --manupe-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    --header-height: 144px;
    --sidebar-width: 290px;
    --container-max: 1400px;
    --transition: all 0.28s ease;
    --site-zoom: 1;
    font-size: calc(16px * var(--site-zoom));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--manupe-text);
    background: var(--manupe-cyan);
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

img,
svg,
iframe,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: clip;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.85rem;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(245, 154, 50, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    width: 100%;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.header-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-right {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.65rem;
    min-width: 0;
}

.header-right-top,
.header-right-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 0 auto;
    height: 100%;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    height: 100%;
    min-width: 0;
}

.brand-logo {
    width: calc(15rem + 5mm);
    max-width: calc(15rem + 5mm);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    transition: var(--transition);
}

.brand-services-logo {
    width: calc(15rem + 5mm);
    max-width: calc(15rem + 5mm);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
    transition: var(--transition);
}

.brand:hover .brand-logo,
.brand:hover .brand-services-logo {
    transform: scale(1.01);
}

/* =========================
   CERTIFICAZIONI / ABILITAZIONI
========================= */

.certifications-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    padding-left: 0.7rem;
    margin-left: 0.45rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.certifications-grid-mixed {
    display: grid;
    grid-template-columns: repeat(6, 3.9rem);
    grid-template-rows: repeat(2, 3.9rem);
    grid-template-areas:
        "iso9001 iso14001 runts mepa anac empty"
        "uni11034 unipdr125 runts consip mef empty";
    column-gap: 0.15rem;
    row-gap: 0.15rem;
    align-items: center;
    justify-items: center;
    width: auto;
    min-width: 0;
}

.cert-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.cert-iso9001 { grid-area: iso9001; }
.cert-uni11034 { grid-area: uni11034; }
.cert-iso14001 { grid-area: iso14001; }
.cert-unipdr125 { grid-area: unipdr125; }

.cert-runts {
    grid-area: runts;
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
    row-gap: 0.2rem;
    width: 100%;
    height: 100%;
    padding: 0;
}

.cert-runts .cert-logo-btn {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cert-mepa { grid-area: mepa; }
.cert-consip { grid-area: consip; }
.cert-anac { grid-area: anac; }
.cert-mef { grid-area: mef; }

.cert-spacer {
    grid-area: empty;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cert-logo-btn,
.social-logo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: var(--transition);
    flex: 0 0 auto;
    line-height: 0;
}

.cert-logo-btn:hover,
.social-logo-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.cert-logo-btn img {
    height: 3.2rem;
    width: auto;
    max-width: 3.8rem;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.26));
    transition: var(--transition);
}

.cert-runts .cert-logo-btn img {
    height: 2.9rem;
    width: auto;
    max-width: 4.2rem;
    object-fit: contain;
}

.cert-logo-btn:hover img,
.social-logo-btn:hover img {
    filter: drop-shadow(0 6px 14px rgba(19, 184, 234, 0.35));
}

/* =========================
   SOCIAL / ZOOM / CTA HEADER
========================= */

.socials-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.social-logo-btn img {
    height: 2.1rem;
    width: auto;
    max-width: 2.1rem;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.26));
    transition: var(--transition);
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.zoom-btn {
    min-width: 2.4rem;
    height: 1.55rem;
    padding: 0 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.zoom-btn:hover {
    background: rgba(19, 184, 234, 0.16);
    border-color: rgba(19, 184, 234, 0.34);
    transform: translateY(-1px);
}

.zoom-reset {
    min-width: 4rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0 1.6rem;
    border-radius: 999px;
    background: #f59a32;
    color: #111111;
    font-weight: 900;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(245, 154, 50, 0.34);
    transition: var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(245, 154, 50, 0.40);
}

.menu-toggle {
    display: none;
    width: 2.875rem;
    height: 2.875rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3125rem;
    flex: 0 0 auto;
}

.menu-toggle span {
    display: block;
    width: 1.375rem;
    height: 2px;
    background: var(--manupe-white);
    border-radius: 999px;
}

/* =========================
   LAYOUT
========================= */

.layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    width: 100%;
    min-width: 0;
}

.sidebar {
    background: linear-gradient(180deg, rgba(9, 9, 10, 0.98) 0%, rgba(18, 18, 20, 0.97) 100%);
    color: var(--manupe-white);
}

.desktop-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0.9rem;
    position: relative;
    top: 0;
    height: auto;
    min-height: 100%;
    overflow: visible;
    align-self: stretch;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.72rem 0.9rem;
    border-radius: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 0;
    word-break: break-word;
}

.nav-link:hover {
    background: #f59a32;;
    color: var(--manupe-white);
    border-color: rgba(19, 184, 234, 0.22);
    transform: translateX(3px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(19, 184, 234, 0.18), rgba(245, 154, 50, 0.16));
    color: var(--manupe-white);
    border-color: rgba(245, 154, 50, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(88vw, 340px);
    height: 100vh;
    height: 100dvh;
    z-index: 1200;
    padding: 1.375rem 1.125rem;
    transition: var(--transition);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.28);
    background: linear-gradient(180deg, rgba(9, 9, 10, 0.98) 0%, rgba(18, 18, 20, 0.97) 100%);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    gap: 1rem;
}

.mobile-sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--manupe-white);
    min-width: 0;
    word-break: break-word;
}

.close-menu {
    border: 0;
    background: transparent;
    color: var(--manupe-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: var(--transition);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 1.75rem;
}

.content-wrap {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    min-width: 0;
}

/* =========================
   PAGE CONTENT
========================= */

.page-section {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.75rem;
    box-shadow: var(--manupe-shadow);
    padding: 2.25rem;
    min-width: 0;
}

.page-section + .page-section {
    margin-top: 1.375rem;
}

.page-maintenance h1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    line-height: 1.2;
}

.maintenance-gif {
    width: 4rem;
    max-width: 4rem;
    height: auto;
    flex: 0 0 auto;
}

.section-heading {
    margin-bottom: 1.5rem;
    min-width: 0;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
    margin: 0;
    color: #0d1720;
    line-height: 1.12;
    font-weight: 900;
    word-break: break-word;
}

.section-heading h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    margin-bottom: 0.65rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(19, 184, 234, 0.10);
    color: #0b7fa2;
    border: 1px solid rgba(19, 184, 234, 0.18);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    max-width: 100%;
}

.section-lead {
    margin: 0;
    max-width: 56rem;
    color: var(--manupe-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    word-break: break-word;
}

.service-intro {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.service-intro p {
    margin: 0;
    color: var(--manupe-muted);
    line-height: 1.8;
    font-size: 1rem;
    word-break: break-word;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.375rem;
    min-width: 0;
}

.info-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: 1.375rem;
    padding: 1.5rem;
    border: 1px solid rgba(19, 184, 234, 0.10);
    box-shadow: 0 12px 24px rgba(13, 38, 59, 0.06);
    transition: var(--transition);
    min-width: 0;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(13, 38, 59, 0.10);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #0c1e2d;
    font-size: 1.15rem;
    word-break: break-word;
}

.info-card p {
    margin: 0;
    color: var(--manupe-muted);
    line-height: 1.7;
    word-break: break-word;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin: 0 0 1rem 0;
}

.card-action {
    margin-top: 1rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    min-width: 0;
}

.module-image-link {
    display: block;
    text-decoration: none;
}

.module-image-link img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

.feature-item {
    display: flex;
    align-items: center;
    min-height: 3.7rem;
    padding: 0.95rem 1.1rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(19, 184, 234, 0.10);
    box-shadow: 0 10px 20px rgba(13, 38, 59, 0.05);
    color: #0f1720;
    font-weight: 700;
    line-height: 1.45;
    min-width: 0;
    word-break: break-word;
}

.feature-item::before {
    content: "\2665";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-width: 3rem;
    margin-right: 0.7rem;
    color: var(--manupe-orange);
    font-size: 2rem;
    font-weight: 900;
}

.feature-item a {
    color: inherit;
    font-weight: inherit;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.page-actions-right {
    justify-content: flex-end;
}

.page-actions-center {
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.125rem;
    padding: 0 1.375rem;
    border-radius: 999px;
    font-weight: 800;
    transition: var(--transition);
    text-align: center;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--manupe-orange), #ffb357);
    color: #111;
    box-shadow: 0 14px 30px rgba(245, 154, 50, 0.28);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: var(--manupe-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.page-section:not(.cta-section) .btn-secondary {
    background: rgba(19, 184, 234, 0.08);
    color: #0f1720;
    border: 1px solid rgba(19, 184, 234, 0.24);
    box-shadow: none;
}

.page-section:not(.cta-section) .btn-secondary:hover {
    background: rgba(19, 184, 234, 0.14);
    color: #0f1720;
}

.btn-outline {
    background: transparent;
    color: #0f1720;
    border: 1px solid rgba(19, 184, 234, 0.22);
}

.btn-outline:hover {
    background: rgba(19, 184, 234, 0.08);
    transform: translateY(-1px);
}

.btn-small {
    min-height: 2.4rem;
    padding: 0 1rem;
    font-size: 0.82rem;
    line-height: 1;
}

.prima-oasi-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.prima-oasi-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.cta-section {
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(18, 18, 20, 0.90)),
        linear-gradient(135deg, rgba(19, 184, 234, 0.08), rgba(245, 154, 50, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-box {
    text-align: center;
    color: var(--manupe-white);
    max-width: 60rem;
    margin: 0 auto;
}

.cta-box h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    word-break: break-word;
}

.cta-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 1rem;
    word-break: break-word;
}

.footer-mini {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--manupe-muted);
    font-size: 0.95rem;
    word-break: break-word;
}

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

.pdf-modal,
.link-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.pdf-modal.show,
.link-modal.show {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-backdrop,
.link-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.pdf-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72vw, 900px);
    height: min(95vh, 1600px);
    height: min(95dvh, 1600px);
    transform: translate(-50%, -50%) scale(0.96);
    background: #ffffff;
    border-radius: 1.375rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    max-width: calc(100vw - 2rem);
    max-width: calc(100dvw - 2rem);
}

.link-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 1100px);
    height: min(86vh, 860px);
    height: min(86dvh, 860px);
    transform: translate(-50%, -50%) scale(0.96);
    background: #ffffff;
    border-radius: 1.375rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    max-width: calc(100vw - 1rem);
    max-width: calc(100dvw - 1rem);
}

.pdf-modal.show .pdf-modal-dialog,
.link-modal.show .link-modal-dialog {
    transform: translate(-50%, -50%) scale(1);
}

.pdf-modal-header,
.link-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0b0b0c, #1c1d22);
    color: #ffffff;
    border-bottom: 2px solid rgba(245, 154, 50, 0.18);
    min-width: 0;
}

.pdf-modal-header h2,
.link-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    min-width: 0;
    word-break: break-word;
}

.pdf-modal-close,
.link-modal-close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    flex: 0 0 auto;
}

.link-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.link-modal-open-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.375rem;
    padding: 0 0.875rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--manupe-orange), #ffb357);
    color: #111;
    font-weight: 700;
    white-space: nowrap;
    max-width: 100%;
}

.pdf-modal-body,
.link-modal-body {
    flex: 1;
    background: #eef3f8;
    min-height: 0;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.link-modal-body iframe {
    width: 100%;
    height: calc(100% - 48px);
    border: 0;
    background: #ffffff;
}

.link-modal-note {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-size: 0.92rem;
    color: #4b5563;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    word-break: break-word;
}

/* =========================
   MAP MODAL
========================= */

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.map-modal.show {
    opacity: 1;
    visibility: visible;
}

.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(4px);
}

.map-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 1100px);
    height: min(88vh, 860px);
    height: min(88dvh, 860px);
    transform: translate(-50%, -50%) scale(.96);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
    display: flex;
    flex-direction: column;
    transition: .25s ease;
    max-width: calc(100vw - 1rem);
    max-width: calc(100dvw - 1rem);
}

.map-modal.show .map-modal-dialog {
    transform: translate(-50%, -50%) scale(1);
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0b0b0c, #1c1d22);
    color: #fff;
    border-bottom: 2px solid rgba(245,154,50,.18);
    min-width: 0;
}

.map-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    min-width: 0;
    word-break: break-word;
}

.map-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.map-modal-open-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--manupe-orange), #ffb357);
    color: #111;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.map-modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.map-modal-body {
    flex: 1;
    background: #eef3f8;
    min-height: 0;
}

.map-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* =========================
   LARGE TABLETS / SMALL DESKTOP
========================= */

@media (max-width: 1360px) {
    :root {
        --header-height: 138px;
        --sidebar-width: 260px;
    }

    .site-header {
        gap: 0.7rem;
        padding: 0.55rem 0.75rem;
    }

    .header-left,
    .header-right {
        gap: 0.65rem;
    }

    .certifications-wrap {
        padding-left: 0.55rem;
        margin-left: 0.35rem;
    }

    .certifications-grid-mixed {
        grid-template-columns: repeat(6, 3.7rem);
        grid-template-rows: repeat(2, 3.7rem);
        column-gap: 0.15rem;
        row-gap: 0.15rem;
    }

    .cert-logo-btn img {
        height: 3.15rem;
        max-width: 3.75rem;
    }

    .cert-runts .cert-logo-btn img {
        height: 2.7rem;
        max-width: 4rem;
    }

    .brand-logo {
        width: calc(14rem + 5mm);
        max-width: calc(14rem + 5mm);
        height: auto;
    }

    .brand-services-logo {
        width: calc(14rem + 5mm);
        max-width: calc(14rem + 5mm);
        height: auto;
    }

    .socials-bar {
        gap: 0.7rem;
    }

    .header-cta {
        padding: 0 1.1rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 1180px) {
    :root {
        --header-height: 126px;
        --sidebar-width: 245px;
    }

    .site-header {
        gap: 0.7rem;
        padding: 0.55rem 0.75rem;
    }

    .brand-logo {
        width: calc(12.8rem + 5mm);
        max-width: calc(12.8rem + 5mm);
        height: auto;
    }

    .brand-services-logo {
        width: calc(12.8rem + 5mm);
        max-width: calc(12.8rem + 5mm);
        height: auto;
    }

    .certifications-wrap {
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
    }

    .certifications-grid-mixed {
        grid-template-columns: repeat(6, 3.55rem);
        grid-template-rows: repeat(2, 3.55rem);
        column-gap: 0.15rem;
        row-gap: 0.15rem;
        justify-content: start;
    }

    .cert-logo-btn img {
        height: 2.8rem;
        max-width: 3.35rem;
    }

    .cert-runts .cert-logo-btn img {
        height: 2.5rem;
        max-width: 3.75rem;
    }

    .social-logo-btn img {
        height: 2rem;
        max-width: 2rem;
    }

    .header-cta {
        min-height: 3rem;
        padding: 0 1rem;
        font-size: 0.82rem;
    }

    .desktop-sidebar {
        padding: 0.85rem 0.75rem;
    }

    .nav-link {
        min-height: 2.55rem;
        padding: 0.62rem 0.78rem;
        font-size: 0.95rem;
    }

    .page-section {
        padding: 1.6rem;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: auto;
    }

    .desktop-sidebar {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-header {
        min-height: 0;
        height: auto;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 0.875rem;
    }

    .header-left,
    .header-right {
        width: 100%;
    }

    .header-left {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-right {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-right-top,
    .header-right-bottom {
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.625rem;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-stack {
        min-width: 0;
    }

    .certifications-wrap {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow: visible;
    }

    .layout {
        min-height: auto;
    }

    .main-content {
        padding: 1rem;
    }

    .page-section {
        border-radius: 1.375rem;
    }

    .header-cta {
        min-height: 2.875rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .mobile-sidebar,
    .sidebar-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.625rem 0.75rem;
    }

    .header-left {
        gap: 0.625rem;
    }

    .header-right {
        gap: 0.625rem;
    }

    .header-right-top,
    .header-right-bottom {
        justify-content: flex-start;
        width: 100%;
    }

    .brand-logo {
        width: calc(10rem + 5mm);
        max-width: calc(10rem + 5mm);
        height: auto;
    }

    .brand-services-logo {
        width: calc(10rem + 5mm);
        max-width: calc(10rem + 5mm);
        height: auto;
    }

    .certifications-grid-mixed {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
        grid-template-areas:
            "iso9001 iso14001 runts"
            "uni11034 unipdr125 runts"
            "mepa anac empty"
            "consip mef empty";
        justify-items: center;
        width: 100%;
        column-gap: 0.55rem;
        row-gap: 0.55rem;
    }

    .cert-logo-btn img {
        height: 3.2rem;
        max-width: 100%;
    }

    .cert-runts .cert-logo-btn img {
        height: 2.7rem;
        max-width: 100%;
    }

    .socials-bar {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .social-logo-btn img {
        height: 2.25rem;
        max-width: 2.25rem;
    }

    .zoom-controls {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .zoom-btn {
        min-width: 2.5rem;
        height: 1.6rem;
        font-size: 0.6rem;
        padding: 0 0.85rem;
    }

    .header-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .main-content {
        padding: 0.875rem;
    }

    .page-section {
        padding: 1.25rem;
        border-radius: 1.125rem;
    }

    .section-lead,
    .service-intro p,
    .cta-box p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .cards-grid,
    .features-list {
        grid-template-columns: 1fr;
    }

    .page-actions {
        flex-wrap: wrap;
    }

    .prima-oasi-title-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .prima-oasi-logo {
        max-width: 130px;
    }

    .pdf-modal-dialog,
    .link-modal-dialog,
    .map-modal-dialog {
        width: calc(100vw - 1rem);
        width: calc(100dvw - 1rem);
        max-width: calc(100vw - 1rem);
        max-width: calc(100dvw - 1rem);
        border-radius: 1rem;
    }

    .pdf-modal-dialog {
        height: calc(100vh - 1rem);
        height: calc(100dvh - 1rem);
    }

    .link-modal-dialog,
    .map-modal-dialog {
        height: calc(100vh - 1rem);
        height: calc(100dvh - 1rem);
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 0.5rem 0.625rem;
        gap: 0.625rem;
    }

    .header-left {
        align-items: center;
    }

    .header-right {
        align-items: stretch;
    }

    .brand-logo {
        width: calc(8.5rem + 5mm);
        max-width: calc(8.5rem + 5mm);
        height: auto;
    }

    .brand-services-logo {
        width: calc(8.5rem + 5mm);
        max-width: calc(8.5rem + 5mm);
        height: auto;
    }

    .certifications-grid-mixed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "iso9001 iso14001"
            "uni11034 unipdr125"
            "runts runts"
            "mepa anac"
            "consip mef";
        column-gap: 0.6rem;
        row-gap: 0.5rem;
    }

    .cert-logo-btn img {
        height: 2.8rem;
        max-width: 100%;
    }

    .cert-runts .cert-logo-btn img {
        height: 2.45rem;
        max-width: 100%;
    }

    .socials-bar {
        justify-content: flex-start;
        width: 100%;
    }

    .social-logo-btn img {
        height: 2rem;
        max-width: 2rem;
    }

    .menu-toggle {
        width: 2.6rem;
        height: 2.6rem;
    }

    .page-section {
        padding: 1rem;
        border-radius: 1rem;
    }

    .section-kicker {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem;
    }

    .section-heading h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .section-heading h2 {
        font-size: 1.35rem;
    }

    .prima-oasi-logo {
        max-width: 115px;
    }

    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions .btn-primary,
    .page-actions .btn-secondary,
    .page-actions .btn-outline {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .brand-logo {
        width: calc(7.2rem + 5mm);
        max-width: calc(7.2rem + 5mm);
        height: auto;
    }

    .brand-services-logo {
        width: calc(7.2rem + 5mm);
        max-width: calc(7.2rem + 5mm);
        height: auto;
    }

    .cert-logo-btn img {
        height: 2.2rem;
    }

    .cert-runts .cert-logo-btn img {
        height: 2rem;
        max-width: 100%;
    }

    .social-logo-btn img {
        height: 1.85rem;
        max-width: 1.85rem;
    }

    .zoom-controls {
        width: 100%;
    }

    .zoom-btn,
    .zoom-reset {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        justify-content: center;
    }

    .pdf-modal-header h2,
    .link-modal-header h2,
    .map-modal-header h2 {
        font-size: 1rem;
    }
}

/* =========================
   CONTATTI
========================= */

.contacts-page {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.4rem;
}

.contacts-hero {
    background:
        radial-gradient(circle at top right, rgba(245, 154, 50, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(19, 184, 234, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 249, 255, 0.94));
}

.contacts-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: center;
}

.contacts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    background: rgba(19, 184, 234, 0.10);
    border: 1px solid rgba(19, 184, 234, 0.18);
    color: #0b7fa2;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.contacts-title {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    color: #0d1720;
    font-weight: 900;
}

.contacts-title .accent {
    color: var(--manupe-orange);
}

.contacts-lead {
    margin: 0;
    max-width: 58rem;
    color: var(--manupe-muted);
    font-size: 1.04rem;
    line-height: 1.78;
}

.contacts-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.contacts-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    transition: var(--transition);
    text-align: center;
}

.contacts-chip.primary {
    background: linear-gradient(135deg, var(--manupe-orange), #ffb357);
    color: #111;
    box-shadow: 0 12px 24px rgba(245, 154, 50, 0.26);
}

.contacts-chip.secondary {
    background: rgba(19, 184, 234, 0.08);
    border: 1px solid rgba(19, 184, 234, 0.2);
    color: #0f1720;
}

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

.contacts-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 184, 234, 0.12);
    box-shadow: 0 12px 30px rgba(13, 38, 59, 0.08);
    text-align: center;
}

.contacts-brand-logo {
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.contacts-brand-card p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

/* layout principale contatti */
.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(200px, 0.52fr);
    gap: 1.15rem;
    align-items: start;
}

.contacts-panel {
    background: rgba(233, 247, 253, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 1.75rem;
    box-shadow: var(--manupe-shadow);
    overflow: hidden;
    min-width: 0;
}

.contacts-panel-inner {
    padding: 1.7rem 1.45rem 1.55rem;
    min-width: 0;
}

.contacts-panel-title {
    margin: 0 0 0.45rem;
    color: #0d1720;
    font-size: clamp(1.7rem, 2.3vw, 2.55rem);
    line-height: 1.08;
    font-weight: 900;
    word-break: break-word;
}

.contacts-panel-text {
    margin: 0 0 1.35rem;
    color: var(--manupe-muted);
    line-height: 1.7;
    font-size: 1rem;
    word-break: break-word;
}

/* canali diretti */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.channel-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 118px;
    padding: 1.15rem 1.15rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(19, 184, 234, 0.08);
    box-shadow: 0 10px 24px rgba(13, 38, 59, 0.05);
    min-width: 0;
}

.channel-main-link {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.channel-icon {
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 1rem;
    background: rgba(246, 248, 251, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.channel-icon img {
    width: 2.45rem;
    height: 2.45rem;
    object-fit: contain;
}

.channel-content {
    min-width: 0;
}

.channel-label {
    display: block;
    margin-bottom: 0.18rem;
    color: #5a6576;
    font-size: 0.98rem;
    line-height: 1.25;
}

.channel-value {
    display: block;
    color: #16202d;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mini-copy-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 68px;
    height: 68px;
    padding: 0.4rem 0.5rem;
    border: 0;
    border-radius: 1rem;
    background: #e8eef4;
    color: #15202b;
    cursor: pointer;
    transition: var(--transition);
    flex: 0 0 auto;
}

.mini-copy-btn span {
    font-size: 1.1rem;
    line-height: 1;
}

.mini-copy-btn small {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
}

.mini-copy-btn:hover {
    transform: translateY(-1px);
    background: #dde7ef;
}

.site-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.2rem;
}

.site-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(19, 184, 234, 0.08);
    box-shadow: 0 10px 24px rgba(13, 38, 59, 0.05);
    color: #1f2937;
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contacts-inline-tools {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.inline-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 96px;
    padding: 1rem 1.15rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(19, 184, 234, 0.08);
    box-shadow: 0 10px 24px rgba(13, 38, 59, 0.05);
}

.inline-tool span {
    color: #243142;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inline-tool strong {
    color: #111827;
}

.copy-feedback {
    min-height: 1.3rem;
    margin-top: 0.65rem;
    color: #0b7fa2;
    font-weight: 800;
    font-size: 0.94rem;
}

.social-panel .contacts-panel-inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.social-panel .contacts-panel-text {
    margin-bottom: 1.5rem;
}

.social-grid-contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.2rem;
    row-gap: 2.4rem;
}

.social-card-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.social-card-contacts:hover {
    transform: translateY(-2px);
}

.social-card-contacts > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
}

.social-card-contacts img {
    width: 3.15rem;
    height: 3.15rem;
    object-fit: contain;
}

.social-card-contacts span {
    color: #0d1720;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* sedi */
.office-list {
    display: grid;
    gap: 1.15rem;
}

.office-card {
    padding: 1.25rem 1.25rem 1.15rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(19, 184, 234, 0.08);
    box-shadow: 0 10px 24px rgba(13, 38, 59, 0.05);
}

.office-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.office-card h3 {
    margin: 0;
    color: #0d1720;
    font-size: 1.18rem;
    line-height: 1.25;
    word-break: break-word;
}

.office-address {
    margin: 0.35rem 0 0;
    color: #475467;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.office-note {
    margin: 0.95rem 0 0;
    color: #475467;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.office-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.office-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: rgba(19, 184, 234, 0.08);
    border: 1px solid rgba(19, 184, 234, 0.18);
    color: #0f1720;
    font-weight: 800;
    text-align: center;
}

.office-map-btn {
    cursor: pointer;
}

/* bottom grid */
.contacts-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* form */
.contacts-form {
    display: grid;
    gap: 1rem;
}

.contacts-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-box {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.field-box label {
    color: #1f2937;
    font-weight: 800;
    font-size: 0.96rem;
}

.field-box input,
.field-box select,
.field-box textarea {
    width: 100%;
    border: 1px solid rgba(19, 184, 234, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    border-radius: 1rem;
    padding: 0.92rem 1rem;
    outline: none;
    transition: var(--transition);
}

.field-box input:focus,
.field-box select:focus,
.field-box textarea:focus {
    border-color: rgba(19, 184, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(19, 184, 234, 0.10);
}

.field-box textarea {
    min-height: 180px;
    resize: vertical;
}

.contacts-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.privacy-note {
    margin: 0;
    color: #667085;
    line-height: 1.65;
    max-width: 36rem;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--manupe-orange), #ffb357);
    color: #111;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(245, 154, 50, 0.26);
    transition: var(--transition);
}

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

/* dati istituzionali */
.istitutional-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: baseline;
}

.istitutional-main {
    font-weight: 900;
}

.istitutional-sub {
    color: #475467;
    font-weight: 700;
}

.istitutional-data-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.istitutional-data-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(246, 248, 251, 0.92);
    color: #344054;
    line-height: 1.6;
}

.istitutional-data-row strong {
    color: #111827;
}

.phones-row,
.emails-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* responsive */
@media (max-width: 1180px) {
    .contacts-grid {
        grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.68fr);
    }

    .contacts-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    }
}

@media (max-width: 991px) {
    .contacts-hero-grid,
    .contacts-grid,
    .contacts-bottom-grid {
        grid-template-columns: 1fr;
    }

    .channel-grid,
    .site-links,
    .contacts-form-row,
    .phones-row,
    .emails-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-panel-inner {
        padding: 1.2rem 1rem 1.1rem;
    }

    .channel-grid,
    .site-links,
    .contacts-form-row,
    .phones-row,
    .emails-row,
    .social-grid-contacts {
        grid-template-columns: 1fr;
    }

    .channel-card {
        min-height: 102px;
        padding: 1rem;
    }

    .channel-main-link {
        grid-template-columns: 3.35rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    .channel-icon {
        width: 3.15rem;
        height: 3.15rem;
    }

    .channel-icon img {
        width: 2rem;
        height: 2rem;
    }

    .mini-copy-btn {
        min-width: 58px;
        height: 58px;
    }

    .social-card-contacts img {
        width: 2.85rem;
        height: 2.85rem;
    }

    .office-card-top,
    .inline-tool {
        grid-template-columns: 1fr;
    }

    .contacts-form-footer {
        align-items: stretch;
    }

    .send-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .contacts-title {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .contacts-kicker {
        font-size: 0.76rem;
        padding: 0.45rem 0.75rem;
    }

    .contacts-lead,
    .contacts-panel-text,
    .office-note,
    .office-address,
    .privacy-note {
        font-size: 0.96rem;
        line-height: 1.62;
    }

    .contacts-chip {
        width: 100%;
    }

    .office-badge {
        width: 100%;
    }
}

.service-card-logo-btn {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.service-card-logo-btn .service-card-logo {
    margin: 0;
}

.service-card-logo-btn:hover .service-card-logo {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* =========================
   BACKEND HEADER STATS
========================= */

.back-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.85rem;
}

.back-header-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.back-header-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
}

.back-header-stat strong {
    color: inherit;
    font-weight: 900;
}

@media (max-width: 1360px) {
    .back-header-stat {
        min-height: 2.2rem;
        padding: 0 0.9rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 1180px) {
    .back-header-center {
        flex: 1 1 100%;
        width: 100%;
        padding: 0;
        order: 4;
    }

    .back-header-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .back-header-center {
        order: 3;
        width: 100%;
    }

    .back-header-stats {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .back-header-stats {
        gap: 0.5rem;
    }

    .back-header-stat {
        min-height: 2.05rem;
        padding: 0 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 560px) {
    .back-header-center {
        width: 100%;
    }

    .back-header-stats {
        justify-content: flex-start;
    }

    .back-header-stat {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .back-header-stat {
        width: 100%;
        justify-content: center;
    }
}
.utility-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.95fr);
    gap: 1rem;
}

.utility-stack {
    display: grid;
    gap: 1rem;
}

.utility-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.utility-inline-form .field-box {
    flex: 1 1 220px;
    min-width: 180px;
}

.utility-inline-form .field-box.utility-field-iva {
    flex: 0 0 108px;
    min-width: 108px;
    max-width: 108px;
}

.utility-inline-form .btn-primary,
.utility-inline-form .btn-outline {
    min-height: 2.85rem;
}

.utility-result-row {
    margin-top: 0.7rem;
}

.utility-calendar-table th,
.utility-calendar-table td {
    text-align: center;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-actions .btn-small {
    white-space: nowrap;
}

.utility-calendar-table td {
    border-radius: 0.7rem;
    transition: var(--transition);
}

.utility-calendar-table td:hover {
    background: rgba(19,184,234,0.08);
}

.utility-calculator-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: 1rem;
    align-items: start;
}

.utility-receipt-box {
    border-radius: 1rem;
    border: 1px solid rgba(19,184,234,0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,252,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    overflow: hidden;
}

.utility-receipt-head {
    padding: 0.8rem 1rem;
    font-weight: 900;
    color: var(--manupe-dark);
    border-bottom: 1px dashed rgba(0,0,0,0.12);
    background: rgba(245,154,50,0.08);
}

.utility-receipt-roll {
    max-height: 27rem;
    overflow: auto;
    padding: 0.9rem 1rem 1rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,0,0,0),
            rgba(0,0,0,0) 1.6rem,
            rgba(0,0,0,0.045) 1.6rem,
            rgba(0,0,0,0.045) 1.67rem
        );
}

.utility-receipt-empty {
    color: var(--manupe-muted);
    font-style: italic;
}

.utility-receipt-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0;
    border-bottom: 1px dotted rgba(0,0,0,0.08);
}

.utility-receipt-line strong {
    color: var(--manupe-dark);
}

.utility-calculator-box {
    border-radius: 1rem;
    border: 1px solid rgba(19,184,234,0.12);
    background: rgba(255,255,255,0.98);
    padding: 1rem;
}

.utility-calc-display {
    width: 100%;
    min-height: 3.25rem;
    text-align: right;
    font-size: 1.35rem;
    font-weight: 900;
    padding: 0 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(19,184,234,0.14);
    background: rgba(246,248,251,0.96);
    color: var(--manupe-dark);
}

.utility-calc-mini {
    margin-top: 0.55rem;
    color: var(--manupe-muted);
    font-size: 0.82rem;
}

.utility-calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.utility-calc-btn {
    min-height: 3.4rem;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
    transition: var(--transition);
}

/* NUMERI */
.utility-calc-btn.num {
    background: #f1f3f5;
    border: 1px solid #d6dbe1;
    color: #111;
}

/* OPERATORI */
.utility-calc-btn.op {
    background: #a9c9d3;
    border: 1px solid #9bbbc6;
    color: #111;
}

/* AZIONI C / DEL */
.utility-calc-btn.action {
    background: #e8d4b8;
    border: 1px solid #d8c2a2;
    color: #111;
}

/* HOVER */
.utility-calc-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
}


.utility-calc-btn.equal {
    background: linear-gradient(135deg, var(--manupe-orange), #ffb45f);
    color: #fff;
}

.utility-calc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}
.utility-calculator-box button:not(.utility-calc-btn) {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.7rem 0;
    border-radius: 12px;
}

@media (max-width: 1180px) {
    .utility-split-grid,
    .utility-calculator-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .utility-inline-form .field-box,
    .utility-inline-form .field-box.utility-field-iva {
        flex: 1 1 100%;
        max-width: none;
    }

    .utility-calc-keypad {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================= */
/* HOVER PREMIUM CARD DASHBOARD  */
/* ============================= */

.module-image-link img {
    transition: transform 0.3s ease;
}

.module-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.module-card:hover img {
    transform: scale(1.05);
}

.utility-calc-btn.equal {
    grid-column: span 4;
}

/* =========================
   GESTIONE EVENTI BACKEND
========================= */

.eventi-card-icon {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1rem;
    background: rgba(246, 248, 251, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.eventi-select-wrap {
    max-width: 780px;
    margin-bottom: 1.25rem;
}

.eventi-frame {
    width: 100%;
    height: 78vh;
    min-height: 680px;
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
}

.eventi-alert {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: rgba(245, 154, 50, 0.12);
    border: 1px solid rgba(245, 154, 50, 0.28);
    color: #7a4a12;
    font-weight: 800;
    margin-bottom: 1rem;
}


/* =========================
   GESTIONE EVENTI BACKEND
========================= */

.eventi-card-icon {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1rem;
    background: rgba(246, 248, 251, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 900;
    color: #183b7a;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.eventi-select-wrap {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.eventi-alert {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: rgba(245, 154, 50, 0.12);
    border: 1px solid rgba(245, 154, 50, 0.28);
    color: #7a4a12;
    font-weight: 800;
    margin-bottom: 1rem;
}

.opacity-disabled {
    opacity: 0.48;
    pointer-events: none;
    filter: grayscale(0.25);
}

.eventi-full-module {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.eventi-frame-actions {
    margin-bottom: 1rem;
}

.eventi-frame {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: calc(100vh - 230px) !important;
    min-height: 820px !important;
    border: 0 !important;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: var(--manupe-shadow);
}

.eventi-full-module .page-actions {
    margin-bottom: 1rem;
}

.eventi-full-module .btn-primary,
.eventi-full-module .btn-secondary,
.eventi-full-module .btn-outline {
    text-decoration: none;
}

@media (max-width: 991px) {
    .eventi-frame {
        height: calc(100vh - 190px) !important;
        min-height: 720px !important;
        border-radius: 1rem;
    }
}

@media (max-width: 560px) {
    .eventi-frame {
        height: calc(100vh - 170px) !important;
        min-height: 650px !important;
    }
}

/* =========================
   GESTIONE EVENTI - OVERRIDE
========================= */

/* HEADER PAGINA COMPATTO COME CAMBUSA */
.eventi-hero-compact.page-section {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 1.45rem auto 1.1rem auto !important;
    padding: 1.15rem 1.6rem !important;
    border-radius: 1.45rem !important;
}

.eventi-hero-compact .section-heading {
    margin: 0 !important;
}

.eventi-hero-compact .section-kicker {
    margin-bottom: 0.55rem !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem !important;
}

.eventi-hero-compact h1 {
    margin: 0 0 0.45rem 0 !important;
    font-size: clamp(1.85rem, 2.45vw, 2.75rem) !important;
    line-height: 1.04 !important;
}

.eventi-hero-compact .section-lead {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: clamp(0.88rem, 0.95vw, 1.03rem) !important;
    line-height: 1.35 !important;
}

/* SEZIONE CARD COMPATTA */
.eventi-section-compact.page-section {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto 1.4rem auto !important;
    padding: 1.35rem 1.6rem 1.55rem !important;
    border-radius: 1.45rem !important;
}

.eventi-section-compact .section-heading {
    margin-bottom: 1rem !important;
}

.eventi-section-compact .section-kicker {
    margin-bottom: 0.65rem !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem !important;
}

.eventi-section-compact h2 {
    margin: 0 0 0.4rem 0 !important;
    font-size: clamp(1.55rem, 2.15vw, 2.25rem) !important;
    line-height: 1.08 !important;
}

.eventi-section-compact .section-lead {
    margin: 0 !important;
    font-size: clamp(0.9rem, 0.95vw, 1.05rem) !important;
    line-height: 1.45 !important;
}

/* BOTTONI RITORNO */
.eventi-actions-compact {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto 1.1rem auto !important;
}

/* 4 CARD PER RIGA REALI */
.eventi-grid-4.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.05rem !important;
    align-items: stretch !important;
}

/* CARD UGUALI A GESTIONE ORDINI */
.eventi-card.info-card,
.eventi-card.service-card {
    min-height: 14.2rem !important;
    padding: 1.25rem 1.25rem 1.15rem !important;
    border-radius: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* ICONE DIMENSIONE CORRETTA */
.eventi-card .eventi-card-img,
.eventi-card-img {
    width: 4.4rem !important;
    height: 4.4rem !important;
    max-width: 4.4rem !important;
    max-height: 4.4rem !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 0 0.85rem 0 !important;
    padding: 0 !important;
}

/* TITOLO CARD */
.eventi-card h3 {
    margin: 0 0 0.55rem 0 !important;
    font-size: clamp(1rem, 1vw, 1.18rem) !important;
    line-height: 1.15 !important;
}

/* TESTO CARD */
.eventi-card p {
    margin-top: 0 !important;
    font-size: clamp(0.82rem, 0.86vw, 0.96rem) !important;
    line-height: 1.48 !important;
}

/* AZIONI CARD */
.eventi-card .card-action {
    margin-top: auto !important;
    padding-top: 0.85rem !important;
    display: flex !important;
    gap: 0.55rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* KPI */
.eventi-kpi-value {
    font-size: clamp(1.65rem, 2.1vw, 2.35rem) !important;
    font-weight: 900 !important;
    color: #0d1720 !important;
    margin: 0.15rem 0 0.45rem !important;
    line-height: 1 !important;
}

/* ALERT */
.eventi-alert {
    padding: 0.9rem 1.05rem !important;
    border-radius: 1rem !important;
    background: rgba(245, 154, 50, 0.12) !important;
    border: 1px solid rgba(245, 154, 50, 0.28) !important;
    color: #7a4a12 !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
}

/* DISABILITATE */
.opacity-disabled {
    opacity: 0.48 !important;
    pointer-events: none !important;
    filter: grayscale(0.25) !important;
}

/* SELECT EVENTO */
.eventi-section-compact .field-box select {
    width: 100% !important;
}

/* RESPONSIVE */
@media (max-width: 1250px) {
    .eventi-grid-4.cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .eventi-grid-4.cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .eventi-hero-compact.page-section,
    .eventi-section-compact.page-section,
    .eventi-actions-compact {
        max-width: calc(100% - 1.4rem) !important;
    }
}

@media (max-width: 620px) {
    .eventi-grid-4.cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.95rem !important;
    }

    .eventi-hero-compact.page-section {
        padding: 1rem !important;
        border-radius: 1.15rem !important;
    }

    .eventi-section-compact.page-section {
        padding: 1.05rem !important;
        border-radius: 1.15rem !important;
    }

    .eventi-card.info-card,
    .eventi-card.service-card {
        min-height: auto !important;
        padding: 1.05rem !important;
    }

    .eventi-card .eventi-card-img,
    .eventi-card-img {
        width: 3.9rem !important;
        height: 3.9rem !important;
        max-width: 3.9rem !important;
        max-height: 3.9rem !important;
    }
}

/* =========================
   GESTIONE EVENTI
========================= */

.ge-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.ge-hero {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
    margin-bottom: 1.25rem;
}

.ge-hero .section-heading {
    margin-bottom: 0;
}

.ge-hero .section-heading h1 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    margin-bottom: 0.45rem;
}

.ge-hero .section-lead {
    line-height: 1.55;
}

.ge-section {
    margin-bottom: 1.25rem;
}

.ge-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.ge-section-head h2 {
    margin: 0;
    color: #0d1720;
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    font-weight: 900;
}

.ge-actions {
    margin-bottom: 1.2rem;
}

.ge-actions-inline {
    margin: 0 !important;
}

.ge-actions-top {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 4 CARD DESKTOP */
.ge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    min-width: 0;
}

.ge-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 1.375rem;
    box-shadow: 0 12px 24px rgba(13, 38, 59, 0.06);
    padding: 1.35rem;
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ge-card-icon {
    width: 4.4rem !important;
    height: 4.4rem !important;
    object-fit: contain !important;
    margin: 0 0 1rem 0 !important;
}

.ge-card h3 {
    margin: 0 0 0.65rem;
    color: #0c1e2d;
    font-size: 1.13rem;
    line-height: 1.18;
    font-weight: 900;
    word-break: break-word;
}

.ge-card p {
    margin: 0;
    color: var(--manupe-muted);
    font-size: 0.96rem;
    line-height: 1.58;
    word-break: break-word;
}

.ge-card-actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.ge-disabled {
    opacity: 0.48;
    pointer-events: none;
    filter: grayscale(0.25);
}

/* KPI DASHBOARD */
.ge-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.ge-kpi-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 1.25rem;
    box-shadow: 0 10px 22px rgba(13, 38, 59, 0.06);
    padding: 1.2rem;
    min-height: 10.5rem;
    min-width: 0;
}

.ge-kpi-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #0c1e2d;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.ge-kpi-top img {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
}

.ge-kpi-number {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 900;
    color: #0d1720;
    margin-bottom: 0.65rem;
}

.ge-kpi-card p {
    margin: 0;
    color: var(--manupe-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* DASHBOARD PANELS */
.ge-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 1.15rem;
}

.ge-panel {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 1.35rem;
    box-shadow: 0 12px 24px rgba(13, 38, 59, 0.06);
    padding: 1.25rem;
    min-width: 0;
}

.ge-panel h3 {
    margin: 0 0 1rem;
    color: #0d1720;
    font-size: 1.2rem;
    font-weight: 900;
}

.ge-bars {
    display: grid;
    gap: 0.95rem;
}

.ge-bar-row {
    display: grid;
    gap: 0.4rem;
}

.ge-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #344054;
    font-weight: 800;
    font-size: 0.92rem;
}

.ge-bar-track {
    width: 100%;
    height: 0.9rem;
    border-radius: 999px;
    background: #e8eef4;
    overflow: hidden;
}

.ge-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--manupe-cyan), var(--manupe-orange));
}

/* WIDTH CLASSI 0-100 */
.ge-w-0 { width: 0%; }
.ge-w-1 { width: 1%; }
.ge-w-2 { width: 2%; }
.ge-w-3 { width: 3%; }
.ge-w-4 { width: 4%; }
.ge-w-5 { width: 5%; }
.ge-w-6 { width: 6%; }
.ge-w-7 { width: 7%; }
.ge-w-8 { width: 8%; }
.ge-w-9 { width: 9%; }
.ge-w-10 { width: 10%; }
.ge-w-11 { width: 11%; }
.ge-w-12 { width: 12%; }
.ge-w-13 { width: 13%; }
.ge-w-14 { width: 14%; }
.ge-w-15 { width: 15%; }
.ge-w-16 { width: 16%; }
.ge-w-17 { width: 17%; }
.ge-w-18 { width: 18%; }
.ge-w-19 { width: 19%; }
.ge-w-20 { width: 20%; }
.ge-w-21 { width: 21%; }
.ge-w-22 { width: 22%; }
.ge-w-23 { width: 23%; }
.ge-w-24 { width: 24%; }
.ge-w-25 { width: 25%; }
.ge-w-26 { width: 26%; }
.ge-w-27 { width: 27%; }
.ge-w-28 { width: 28%; }
.ge-w-29 { width: 29%; }
.ge-w-30 { width: 30%; }
.ge-w-31 { width: 31%; }
.ge-w-32 { width: 32%; }
.ge-w-33 { width: 33%; }
.ge-w-34 { width: 34%; }
.ge-w-35 { width: 35%; }
.ge-w-36 { width: 36%; }
.ge-w-37 { width: 37%; }
.ge-w-38 { width: 38%; }
.ge-w-39 { width: 39%; }
.ge-w-40 { width: 40%; }
.ge-w-41 { width: 41%; }
.ge-w-42 { width: 42%; }
.ge-w-43 { width: 43%; }
.ge-w-44 { width: 44%; }
.ge-w-45 { width: 45%; }
.ge-w-46 { width: 46%; }
.ge-w-47 { width: 47%; }
.ge-w-48 { width: 48%; }
.ge-w-49 { width: 49%; }
.ge-w-50 { width: 50%; }
.ge-w-51 { width: 51%; }
.ge-w-52 { width: 52%; }
.ge-w-53 { width: 53%; }
.ge-w-54 { width: 54%; }
.ge-w-55 { width: 55%; }
.ge-w-56 { width: 56%; }
.ge-w-57 { width: 57%; }
.ge-w-58 { width: 58%; }
.ge-w-59 { width: 59%; }
.ge-w-60 { width: 60%; }
.ge-w-61 { width: 61%; }
.ge-w-62 { width: 62%; }
.ge-w-63 { width: 63%; }
.ge-w-64 { width: 64%; }
.ge-w-65 { width: 65%; }
.ge-w-66 { width: 66%; }
.ge-w-67 { width: 67%; }
.ge-w-68 { width: 68%; }
.ge-w-69 { width: 69%; }
.ge-w-70 { width: 70%; }
.ge-w-71 { width: 71%; }
.ge-w-72 { width: 72%; }
.ge-w-73 { width: 73%; }
.ge-w-74 { width: 74%; }
.ge-w-75 { width: 75%; }
.ge-w-76 { width: 76%; }
.ge-w-77 { width: 77%; }
.ge-w-78 { width: 78%; }
.ge-w-79 { width: 79%; }
.ge-w-80 { width: 80%; }
.ge-w-81 { width: 81%; }
.ge-w-82 { width: 82%; }
.ge-w-83 { width: 83%; }
.ge-w-84 { width: 84%; }
.ge-w-85 { width: 85%; }
.ge-w-86 { width: 86%; }
.ge-w-87 { width: 87%; }
.ge-w-88 { width: 88%; }
.ge-w-89 { width: 89%; }
.ge-w-90 { width: 90%; }
.ge-w-91 { width: 91%; }
.ge-w-92 { width: 92%; }
.ge-w-93 { width: 93%; }
.ge-w-94 { width: 94%; }
.ge-w-95 { width: 95%; }
.ge-w-96 { width: 96%; }
.ge-w-97 { width: 97%; }
.ge-w-98 { width: 98%; }
.ge-w-99 { width: 99%; }
.ge-w-100 { width: 100%; }

/* PROGRESS CERCHIO */
.ge-big-progress {
    display: grid;
    place-items: center;
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    border-radius: 50%;
    margin: 0.25rem auto 1rem;
    background:
        radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
        conic-gradient(var(--manupe-cyan) 0 var(--p), #e8eef4 var(--p) 100%);
}

.ge-big-progress strong {
    color: #0d1720;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.ge-progress-0 { --p: 0%; }
.ge-progress-1 { --p: 1%; }
.ge-progress-2 { --p: 2%; }
.ge-progress-3 { --p: 3%; }
.ge-progress-4 { --p: 4%; }
.ge-progress-5 { --p: 5%; }
.ge-progress-6 { --p: 6%; }
.ge-progress-7 { --p: 7%; }
.ge-progress-8 { --p: 8%; }
.ge-progress-9 { --p: 9%; }
.ge-progress-10 { --p: 10%; }
.ge-progress-11 { --p: 11%; }
.ge-progress-12 { --p: 12%; }
.ge-progress-13 { --p: 13%; }
.ge-progress-14 { --p: 14%; }
.ge-progress-15 { --p: 15%; }
.ge-progress-16 { --p: 16%; }
.ge-progress-17 { --p: 17%; }
.ge-progress-18 { --p: 18%; }
.ge-progress-19 { --p: 19%; }
.ge-progress-20 { --p: 20%; }
.ge-progress-21 { --p: 21%; }
.ge-progress-22 { --p: 22%; }
.ge-progress-23 { --p: 23%; }
.ge-progress-24 { --p: 24%; }
.ge-progress-25 { --p: 25%; }
.ge-progress-26 { --p: 26%; }
.ge-progress-27 { --p: 27%; }
.ge-progress-28 { --p: 28%; }
.ge-progress-29 { --p: 29%; }
.ge-progress-30 { --p: 30%; }
.ge-progress-31 { --p: 31%; }
.ge-progress-32 { --p: 32%; }
.ge-progress-33 { --p: 33%; }
.ge-progress-34 { --p: 34%; }
.ge-progress-35 { --p: 35%; }
.ge-progress-36 { --p: 36%; }
.ge-progress-37 { --p: 37%; }
.ge-progress-38 { --p: 38%; }
.ge-progress-39 { --p: 39%; }
.ge-progress-40 { --p: 40%; }
.ge-progress-41 { --p: 41%; }
.ge-progress-42 { --p: 42%; }
.ge-progress-43 { --p: 43%; }
.ge-progress-44 { --p: 44%; }
.ge-progress-45 { --p: 45%; }
.ge-progress-46 { --p: 46%; }
.ge-progress-47 { --p: 47%; }
.ge-progress-48 { --p: 48%; }
.ge-progress-49 { --p: 49%; }
.ge-progress-50 { --p: 50%; }
.ge-progress-51 { --p: 51%; }
.ge-progress-52 { --p: 52%; }
.ge-progress-53 { --p: 53%; }
.ge-progress-54 { --p: 54%; }
.ge-progress-55 { --p: 55%; }
.ge-progress-56 { --p: 56%; }
.ge-progress-57 { --p: 57%; }
.ge-progress-58 { --p: 58%; }
.ge-progress-59 { --p: 59%; }
.ge-progress-60 { --p: 60%; }
.ge-progress-61 { --p: 61%; }
.ge-progress-62 { --p: 62%; }
.ge-progress-63 { --p: 63%; }
.ge-progress-64 { --p: 64%; }
.ge-progress-65 { --p: 65%; }
.ge-progress-66 { --p: 66%; }
.ge-progress-67 { --p: 67%; }
.ge-progress-68 { --p: 68%; }
.ge-progress-69 { --p: 69%; }
.ge-progress-70 { --p: 70%; }
.ge-progress-71 { --p: 71%; }
.ge-progress-72 { --p: 72%; }
.ge-progress-73 { --p: 73%; }
.ge-progress-74 { --p: 74%; }
.ge-progress-75 { --p: 75%; }
.ge-progress-76 { --p: 76%; }
.ge-progress-77 { --p: 77%; }
.ge-progress-78 { --p: 78%; }
.ge-progress-79 { --p: 79%; }
.ge-progress-80 { --p: 80%; }
.ge-progress-81 { --p: 81%; }
.ge-progress-82 { --p: 82%; }
.ge-progress-83 { --p: 83%; }
.ge-progress-84 { --p: 84%; }
.ge-progress-85 { --p: 85%; }
.ge-progress-86 { --p: 86%; }
.ge-progress-87 { --p: 87%; }
.ge-progress-88 { --p: 88%; }
.ge-progress-89 { --p: 89%; }
.ge-progress-90 { --p: 90%; }
.ge-progress-91 { --p: 91%; }
.ge-progress-92 { --p: 92%; }
.ge-progress-93 { --p: 93%; }
.ge-progress-94 { --p: 94%; }
.ge-progress-95 { --p: 95%; }
.ge-progress-96 { --p: 96%; }
.ge-progress-97 { --p: 97%; }
.ge-progress-98 { --p: 98%; }
.ge-progress-99 { --p: 99%; }
.ge-progress-100 { --p: 100%; }

.ge-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.ge-mini-stat {
    background: rgba(246, 248, 251, 0.95);
    border: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 1rem;
    padding: 0.8rem;
    text-align: center;
}

.ge-mini-stat strong {
    display: block;
    color: #0d1720;
    font-size: 1.2rem;
    font-weight: 900;
}

.ge-mini-stat span {
    color: var(--manupe-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

/* TABELLA EVENTI */
.ge-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ge-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
    min-width: 900px;
}

.ge-table th {
    text-align: left;
    color: var(--manupe-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.8rem;
}

.ge-table td {
    background: #ffffff;
    border-top: 1px solid rgba(19, 184, 234, 0.10);
    border-bottom: 1px solid rgba(19, 184, 234, 0.10);
    padding: 0.85rem 0.8rem;
    color: #344054;
    vertical-align: middle;
}

.ge-table td:first-child {
    border-left: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 1rem 0 0 1rem;
}

.ge-table td:last-child {
    border-right: 1px solid rgba(19, 184, 234, 0.10);
    border-radius: 0 1rem 1rem 0;
}

.ge-event-title {
    color: #0d1720;
    font-weight: 900;
}

.ge-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(19, 184, 234, 0.10);
    border: 1px solid rgba(19, 184, 234, 0.18);
    color: #0b7fa2;
    font-weight: 900;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ge-badge.orange {
    background: rgba(245, 154, 50, 0.13);
    border-color: rgba(245, 154, 50, 0.24);
    color: #7a4a12;
}

/* ACCESSI */
.ge-access-list {
    display: grid;
    gap: 0.7rem;
}

.ge-access-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(19, 184, 234, 0.10);
}

.ge-access-item strong {
    color: #0d1720;
    font-size: 0.95rem;
}

.ge-access-item span {
    color: var(--manupe-muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.ge-alert {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: rgba(245, 154, 50, 0.12);
    border: 1px solid rgba(245, 154, 50, 0.28);
    color: #7a4a12;
    font-weight: 800;
    margin-top: 1rem;
}

.ge-form-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

/* RESPONSIVE GESTIONE EVENTI */
@media (max-width: 1280px) {
    .ge-grid,
    .ge-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ge-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .ge-grid,
    .ge-kpi-grid,
    .ge-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ge-hero,
    .ge-section {
        padding: 1.2rem;
        border-radius: 1.35rem;
    }
}

@media (max-width: 640px) {
    .ge-grid,
    .ge-kpi-grid,
    .ge-form-row,
    .ge-mini-stats {
        grid-template-columns: 1fr;
    }

    .ge-card {
        min-height: auto;
    }

    .ge-card-icon {
        width: 3.9rem !important;
        height: 3.9rem !important;
    }

    .ge-big-progress {
        width: 11rem;
        height: 11rem;
    }
}


/* =========================================================
   COMPACT ISTITUZIONALE — 06/09/2026
   Obiettivo: massima densità informativa senza comprimere
   leggibilità, accessibilità e comportamento responsive.
   ========================================================= */

:root{
    --header-height: 118px;
    --sidebar-width: 270px;
    --container-max: 1440px;
}

.site-header{
    min-height:var(--header-height);
    padding:.42rem .72rem;
    gap:.6rem;
}
.header-left,.header-right{gap:.55rem}
.header-right{gap:.42rem}
.header-right-top,.header-right-bottom{gap:.55rem}
.brand-stack{gap:.12rem}
.brand-logo,.brand-services-logo{
    width:calc(13rem + 5mm);
    max-width:calc(13rem + 5mm);
}
.certifications-wrap{padding-left:.5rem;margin-left:.25rem}
.certifications-grid-mixed{
    grid-template-columns:repeat(6,3.25rem);
    grid-template-rows:repeat(2,3.25rem);
    column-gap:.08rem;
    row-gap:.08rem;
}
.cert-logo-btn img{height:2.72rem;max-width:3.12rem}
.cert-runts .cert-logo-btn img{height:2.3rem;max-width:3.5rem}
.socials-bar{gap:.48rem}
.social-logo-btn img{height:1.9rem;max-width:1.9rem}

.desktop-sidebar{padding:.7rem .65rem}
.sidebar-nav{gap:.22rem}
.nav-link{
    min-height:2.35rem;
    padding:.5rem .68rem;
    border-radius:.72rem;
    font-size:.93rem;
}

.main-content{padding:1rem}
.page-section{
    border-radius:1.35rem;
    padding:1.35rem 1.5rem;
}
.page-section + .page-section{margin-top:.78rem}
.section-heading{margin-bottom:.9rem}
.section-heading h1{font-size:clamp(1.85rem,3.1vw,2.65rem);margin-bottom:.45rem}
.section-heading h2{font-size:clamp(1.4rem,2.3vw,1.95rem);margin-bottom:.4rem}
.section-kicker{margin-bottom:.55rem;padding:.34rem .68rem;font-size:.76rem}
.section-lead{font-size:.98rem;line-height:1.55}
.service-intro{gap:.65rem}
.service-intro p{line-height:1.58;font-size:.96rem}
.cards-grid{gap:.85rem}
.info-card{border-radius:1rem;padding:1rem 1.05rem}
.info-card h3{font-size:1.03rem;margin-bottom:.42rem}
.info-card p{font-size:.93rem;line-height:1.5}
.features-list{gap:.62rem}
.feature-item{min-height:3.05rem;padding:.7rem .85rem;line-height:1.35}

/* HOME compact */
.home-compact-hero{padding:1.45rem 1.65rem}
.home-compact-hero .hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(250px,.65fr);
    gap:1.25rem;
    align-items:center;
}
.home-compact-hero .hero-kicker{
    display:inline-flex;
    margin:0 0 .42rem;
    padding:.32rem .66rem;
    border-radius:999px;
    background:rgba(19,184,234,.10);
    border:1px solid rgba(19,184,234,.18);
    color:#0b7fa2;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.025em;
}
.home-compact-hero .hero-title{
    margin:0;
    max-width:900px;
    font-size:clamp(1.85rem,3.25vw,3rem);
    line-height:1.03;
    letter-spacing:-.025em;
    color:#0d1720;
    font-weight:900;
}
.home-compact-hero .hero-title .accent{color:var(--manupe-orange)}
.home-compact-hero .hero-text{
    max-width:900px;
    margin:.65rem 0 0;
    font-size:.98rem;
    line-height:1.52;
    color:var(--manupe-muted);
}
.home-compact-hero .hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:.55rem;
    margin-top:.8rem;
}
.home-compact-hero .hero-actions .btn-primary,
.home-compact-hero .hero-actions .btn-secondary{
    min-height:2.55rem;
    padding:.58rem .92rem;
}
.hero-card-compact{
    padding:1.05rem;
    border-radius:1rem;
    background:linear-gradient(145deg,#0d1d29,#11354a);
    color:#fff;
    box-shadow:0 12px 28px rgba(13,38,59,.18);
}
.hero-card-compact h2{margin:0 0 .42rem;font-size:1.14rem;line-height:1.15;color:#fff}
.hero-card-compact p{margin:0;font-size:.91rem;line-height:1.48;color:rgba(255,255,255,.84)}
.hero-card-tags-line{
    margin-top:.62rem;
    padding-top:.5rem;
    border-top:1px solid rgba(255,255,255,.16);
    color:rgba(255,255,255,.92);
    font-size:.76rem;
    line-height:1.25;
    font-weight:800;
    letter-spacing:.015em;
    word-spacing:.08em;
    white-space:normal;
}
.verosociale-inline{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:.28rem;
    margin-top:.62rem;
    padding-top:.48rem;
    border-top:1px solid rgba(13,38,59,.10);
}
.verosociale-inline-logo{display:block;line-height:0}
.verosociale-inline-logo img{display:block;width:clamp(138px,12vw,178px);max-width:100%;height:auto}
.verosociale-inline-copy{display:flex;flex-direction:column;gap:.08rem;min-width:0}
.verosociale-inline-copy strong{display:block;font-size:.75rem;line-height:1.2;color:#0d1720}
.verosociale-inline-copy span{display:block;font-size:.72rem;line-height:1.2;color:var(--manupe-muted);white-space:normal}

.home-compact-section{padding:1.15rem 1.4rem}
.home-section-heading-inline{
    display:grid;
    grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);
    gap:1.1rem;
    align-items:end;
    margin-bottom:.8rem;
}
.home-section-heading-inline .section-kicker{margin-bottom:.35rem}
.home-section-heading-inline .section-title{margin:0;font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.08;color:#0d1720}
.home-section-heading-inline .section-text{margin:0;font-size:.93rem;line-height:1.45;color:var(--manupe-muted)}
.home-cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.home-info-card{padding:.85rem .95rem}
.home-info-card h3{font-size:1rem;margin-bottom:.3rem}
.home-info-card p{font-size:.88rem;line-height:1.42}

.home-mission-strip{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:1rem;
    align-items:center;
    padding:.9rem 1.35rem;
}
.home-mission-copy{min-width:0}
.home-mission-copy .section-kicker{margin-bottom:.25rem}
.home-mission-copy h2{margin:0 0 .22rem;font-size:1.18rem;line-height:1.12;color:#0d1720}
.home-mission-copy p{margin:0;max-width:980px;font-size:.88rem;line-height:1.43;color:var(--manupe-muted)}
.home-mission-link{white-space:nowrap}

@media (max-width:1360px){
    :root{--header-height:114px;--sidebar-width:250px}
    .brand-logo,.brand-services-logo{width:calc(12rem + 5mm);max-width:calc(12rem + 5mm)}
    .certifications-grid-mixed{grid-template-columns:repeat(6,3.05rem);grid-template-rows:repeat(2,3.05rem)}
    .cert-logo-btn img{height:2.5rem;max-width:2.95rem}
    .cert-runts .cert-logo-btn img{height:2.15rem}
}

@media (max-width:1180px){
    :root{--header-height:110px;--sidebar-width:235px}
    .brand-logo,.brand-services-logo{width:calc(10.9rem + 5mm);max-width:calc(10.9rem + 5mm)}
    .certifications-grid-mixed{grid-template-columns:repeat(6,2.85rem);grid-template-rows:repeat(2,2.85rem)}
    .cert-logo-btn img{height:2.32rem;max-width:2.75rem}
    .cert-runts .cert-logo-btn img{height:2rem}
    .nav-link{font-size:.89rem;padding:.46rem .62rem}
}

@media (max-width:991px){
    :root{--header-height:auto}
    .site-header{padding:.55rem .7rem;gap:.55rem}
    .main-content{padding:.72rem}
    .page-section{padding:1.05rem 1.1rem;border-radius:1.05rem}
    .page-section + .page-section{margin-top:.65rem}
    .home-compact-hero .hero-grid{grid-template-columns:1fr;gap:.85rem}
    .hero-card-compact{padding:.85rem 1rem}
    .verosociale-inline{margin-top:.68rem;padding-top:.58rem}
    .home-section-heading-inline{grid-template-columns:1fr;gap:.35rem;margin-bottom:.7rem}
}

@media (max-width:768px){
    .site-header{padding:.48rem .58rem}
    .certifications-grid-mixed{row-gap:.35rem;column-gap:.35rem}
    .cert-logo-btn img{height:2.55rem}
    .cert-runts .cert-logo-btn img{height:2.2rem}
    .socials-bar{gap:.52rem}
    .social-logo-btn img{height:1.9rem;max-width:1.9rem}
    .home-compact-hero{padding:1rem}
    .home-compact-hero .hero-title{font-size:clamp(1.65rem,7vw,2.25rem)}
    .home-compact-hero .hero-text{font-size:.93rem;line-height:1.47}
    .verosociale-inline-logo img{width:145px}
    .home-cards-grid{grid-template-columns:1fr}
    .home-mission-strip{grid-template-columns:1fr;gap:.55rem}
    .home-mission-link{justify-self:start}
}

@media (max-width:560px){
    .main-content{padding:.52rem}
    .page-section{padding:.85rem;border-radius:.9rem}
    .page-section + .page-section{margin-top:.52rem}
    .home-compact-hero .hero-actions{gap:.4rem}
    .home-compact-hero .hero-actions .btn-primary,
    .home-compact-hero .hero-actions .btn-secondary{flex:1 1 auto;text-align:center;justify-content:center}
    .verosociale-inline{gap:.25rem}
    .verosociale-inline-logo img{width:min(145px,44vw)}
    .home-compact-section{padding:.85rem}
    .home-info-card{padding:.72rem .78rem}
    .home-mission-strip{padding:.8rem .85rem}
}

/* WhatsApp diretto: stessa resa grafica dei pulsanti social */
a.social-logo-btn{display:inline-flex;text-decoration:none}
