: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;
}