/* AI4travel - Stili principali con 4 temi orari */

:root {
    --font: "Montserrat", system-ui, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --primary: #0066cc;
    --primary-dark: #004d99;
    --accent: #00a8e8;
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --bg-overlay: rgba(255, 255, 255, 0.48);
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.92);
    --hero-copy-bg: rgba(255, 255, 255, 0.62);
    --soft-border: rgba(0, 0, 0, 0.08);
    --text-on-image-shadow: 0 1px 2px rgba(255, 255, 255, 0.75),
        0 10px 30px rgba(255, 255, 255, 0.55);
    --map-bg: rgba(255, 255, 255, 0.1);
    --map-water: rgba(255, 255, 255, 0.08);
    --map-land: #3a6ea5;
    --map-land-hover: #5ba3e0;
    --map-land-active: #4da6ff;
    --map-country-border: rgba(232, 234, 240, 0.35);
    --map-outline: rgba(232, 234, 240, 0.14);
}

/* Temi per fascia oraria */
.theme-alba {
    --bg-overlay: rgba(220, 240, 255, 0.48);
    --header-bg: rgba(220, 240, 255, 0.95);
    --card-bg: rgba(240, 248, 255, 0.92);
    --hero-copy-bg: rgba(240, 248, 255, 0.64);
    --text: #1a2a3a;
}

.theme-giorno {
    --bg-overlay: rgba(255, 255, 255, 0.48);
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.92);
    --hero-copy-bg: rgba(255, 255, 255, 0.64);
}

.theme-tramonto {
    --bg-overlay: linear-gradient(
        to right,
        rgba(255, 120, 40, 0.48) 0%,
        rgba(200, 35, 35, 0.48) 100%
    );
    --header-bg: rgba(255, 235, 220, 0.95);
    --card-bg: rgba(255, 245, 235, 0.92);
    --hero-copy-bg: rgba(255, 245, 235, 0.66);
    --text: #3a2010;
    --text-muted: #4c2a18;
    --primary: #c45a00;
    --primary-dark: #9a4500;
}

.theme-notte {
    --bg-overlay: rgba(15, 20, 40, 0.48);
    --header-bg: rgba(20, 25, 50, 0.95);
    --card-bg: rgba(30, 35, 60, 0.92);
    --hero-copy-bg: rgba(20, 25, 50, 0.68);
    --soft-border: rgba(255, 255, 255, 0.12);
    --text-on-image-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    --text: #e8eaf0;
    --text-muted: #c2c9dc;
    --primary: #4da6ff;
    --primary-dark: #3388dd;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    transition: color var(--transition), background var(--transition);
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease;
}

.bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    transition: background var(--transition);
}

.stars-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 160px 120px, #fff, transparent);
    background-size: 200px 200px;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 4rem 0; }

.section-title {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-on-image-shadow);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: var(--text-on-image-shadow);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-on-image-shadow);
}

.page-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: var(--text-on-image-shadow);
}

.content-panel {
    border: 1px solid var(--soft-border);
    border-radius: calc(var(--radius) + 8px);
    background: var(--hero-copy-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.page-heading {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem;
}

.page-heading .page-lead,
.page-heading .about-intro,
.page-heading .contact-recap {
    margin-bottom: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0.75rem 0;
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 0.45rem 0.55rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(12, 16, 18, 0.66);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    gap: 0.42rem;
    justify-self: center;
    text-decoration: none;
    z-index: 1;
}

.logo::before {
    content: "";
    width: 18px;
    height: 22px;
    border-radius: 5px 5px 2px 2px;
    background:
        linear-gradient(to top, #fff 0 46%, transparent 47% 100%),
        linear-gradient(90deg, transparent 0 38%, #fff 39% 61%, transparent 62% 100%);
    opacity: 0.95;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-accent { color: #d7f3ff; }

.main-nav {
    display: contents;
}

.nav-list {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    justify-self: start;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.58rem 0.86rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-dropdown.open .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-link:hover { transform: translateY(-1px); }

.nav-dropdown-toggle svg {
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 260px;
    background: rgba(15, 20, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
    list-style: none;
    padding: 0.45rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 0.68rem 0.9rem;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateX(3px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    cursor: pointer;
    padding: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header .header-cta {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: var(--card-bg);
    color: var(--primary);
    border-color: var(--primary);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    right: -120px;
    top: 12%;
    background: rgba(0, 168, 232, 0.2);
    filter: blur(12px);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: 10%;
    background: rgba(0, 102, 204, 0.14);
    filter: blur(16px);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 720px;
    padding: 1.5rem;
    border: 1px solid var(--soft-border);
    border-radius: calc(var(--radius) + 8px);
    background: var(--hero-copy-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 102, 204, 0.18);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-title {
    max-width: 780px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.1rem, 4.8vw, 4.2rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.018em;
    text-wrap: balance;
    text-shadow: var(--text-on-image-shadow);
}

.hero-subtitle {
    max-width: 620px;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 500;
    text-shadow: var(--text-on-image-shadow);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    max-width: 680px;
}

.hero-highlights div {
    padding: 1rem;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero-highlights strong {
    display: block;
    color: var(--primary);
    font-size: 1.6rem;
    line-height: 1;
}

.hero-highlights span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-visual {
    min-height: 480px;
    position: relative;
}

.hero-orbit {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(0, 102, 204, 0.18);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.hero-orbit-large {
    width: 420px;
    height: 420px;
}

.hero-orbit-small {
    width: 260px;
    height: 260px;
    border-color: rgba(0, 168, 232, 0.22);
}

.hero-visual-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card-main {
    top: 50%;
    left: 50%;
    width: min(100%, 360px);
    padding: 2rem;
    transform: translate(-50%, -50%);
}

.hero-card-label {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card-main strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-card-main p {
    color: var(--text-muted);
}

.hero-card-floating {
    padding: 0.85rem 1rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-card-top {
    top: 14%;
    right: 0;
}

.hero-card-bottom {
    left: 0;
    bottom: 16%;
}

/* Solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.solution-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(8px);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.solution-card-image {
    height: 160px;
    overflow: hidden;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card-body { padding: 1.25rem; }

.solution-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.solution-card-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.solution-card-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Map */
.map-section { text-align: center; }

.map-heading {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--soft-border);
    border-radius: calc(var(--radius) + 8px);
    background: var(--hero-copy-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.map-section .section-subtitle {
    margin-bottom: 0;
}

.theme-tramonto .map-heading {
    background: rgba(255, 245, 235, 0.78);
}

.theme-tramonto .map-section .section-title,
.theme-tramonto .map-section .section-subtitle {
    color: #2d170c;
}

.map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--map-bg);
    padding: 1rem;
    transition: background var(--transition);
}

/* Mappa a tutta larghezza (elemento chiave del sito) */
.map-container-full {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 0;
    height: 65vh;
    max-height: 760px;
}

.map-container-full .world-map,
.map-container-full .world-map svg {
    width: 100%;
    height: 100%;
}

.world-map {
    width: 100%;
    display: block;
}

.world-map svg {
    width: 100%;
    height: auto;
    display: block;
    background: var(--map-bg);
    cursor: grab;
    touch-action: none;
    transition: background var(--transition);
}

.world-map svg.grabbing { cursor: grabbing; }

.world-map svg #World,
.world-map svg #Ocean {
    fill: var(--map-water);
    stroke: var(--map-outline);
    transition: fill var(--transition), stroke var(--transition);
}

.world-map svg g[id] path {
    fill: var(--map-land);
    stroke: var(--map-country-border);
    stroke-width: 0.5;
    transition: fill 0.15s, stroke var(--transition);
}

.world-map svg g[id]:hover path { fill: var(--map-land-hover); }

.world-map svg g[id].active path { fill: var(--map-land-active); }

.map-zoom-controls {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.map-zoom-controls button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.map-zoom-controls button:hover { background: var(--primary); color: #fff; }

.map-info-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 360px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 200;
    backdrop-filter: blur(12px);
    transition: opacity 0.3s, transform 0.3s;
}

.map-info-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.map-info-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.map-info-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* CTA */
.cta-section { text-align: center; }

.cta-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--soft-border);
    border-radius: calc(var(--radius) + 8px);
    background: var(--hero-copy-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.cta-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-on-image-shadow);
}

/* Solution detail */
.solution-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.solution-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-shadow: var(--text-on-image-shadow);
}

.solution-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    text-shadow: var(--text-on-image-shadow);
}

.solution-hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.solution-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.solution-main h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.solution-main {
    padding: 2rem;
}

.solution-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.sidebar-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.target-list {
    list-style: none;
    padding: 0;
}

.target-list li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.target-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.video-btn { margin-top: 0.5rem; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
}

.modal.open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 720px;
    width: 90%;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.video-wrapper {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-wrapper video {
    display: block;
    object-fit: contain;
    background: #000;
}

.video-placeholder {
    color: #fff;
    font-size: 1.1rem;
}

/* About */
.about-hero-showcase {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "copy"
        "globe"
        "metrics";
    gap: clamp(1rem, 3vw, 1.75rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 50% 58%, rgba(77, 166, 255, 0.2), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        var(--hero-copy-bg);
    overflow: hidden;
}

.about-hero-section,
.about-focus-section,
.about-mission-section,
.about-competencies-section,
.about-team-section {
    position: relative;
}

.panel-eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-hero-copy {
    grid-area: copy;
    max-width: 920px;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    text-align: center;
    margin: 0 auto;
}

.about-hero-copy h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.018em;
    text-wrap: balance;
    text-shadow: var(--text-on-image-shadow);
}

.about-hero-copy p {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-lead {
    max-width: 680px;
    margin-bottom: 1rem;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.about-metrics {
    grid-area: metrics;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
}

.about-metrics div {
    padding: 1rem;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.about-metrics strong {
    display: block;
    color: var(--primary);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.05;
}

.about-metrics span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-globe-card {
    grid-area: globe;
    position: relative;
    min-height: clamp(520px, 50vw, 680px);
    border: 1px solid var(--soft-border);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 50% 40%, rgba(77, 166, 255, 0.2), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(12, 22, 44, 0.24)),
        var(--hero-copy-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    overflow: hidden;
    isolation: isolate;
}

.about-globe-map,
.about-globe-fallback {
    position: absolute;
    inset: 0.85rem;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
}

.about-globe-map {
    z-index: 2;
    background:
        radial-gradient(circle at 50% 45%, rgba(91, 163, 224, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(8, 14, 30, 0.96), rgba(20, 35, 66, 0.88));
}

.about-globe-map.is-hidden {
    display: none;
}

.about-globe-fallback {
    z-index: 1;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(91, 163, 224, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(8, 14, 30, 0.96), rgba(20, 35, 66, 0.88));
    color: #e8f7ff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-globe-caption {
    position: absolute;
    left: 1.75rem;
    right: auto;
    bottom: 1.75rem;
    width: min(82%, 420px);
    z-index: 4;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    text-align: left;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.about-globe-caption span {
    color: var(--primary);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-globe-caption strong {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.2;
}

.about-section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.about-section-heading h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.012em;
    text-wrap: balance;
    text-shadow: var(--text-on-image-shadow);
}

.about-section-heading p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.8;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-focus-card {
    padding: 1.5rem;
}

.about-focus-card span {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.06em;
}

.about-focus-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.25rem;
}

.about-focus-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    gap: 1.25rem;
    align-items: start;
}

.about-mission-section .about-section-heading {
    margin-bottom: 0;
    padding: 2rem;
}

.about-mission-list {
    display: grid;
    gap: 0.8rem;
}

.about-mission-item {
    padding: 1rem 1rem 1rem 2.6rem;
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.55;
}

.about-mission-item::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--primary);
    font-weight: 500;
}

.about-competencies-panel {
    padding: 2rem;
}

.competencies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.competency-badge {
    background: var(--card-bg);
    border: 1px solid rgba(0, 102, 204, 0.28);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.about-team-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem;
}

.about-team-panel h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.14;
    letter-spacing: -0.01em;
}

.about-team-panel p {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.8;
}

.placeholder-text, .placeholder-box {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-box {
    padding: 3rem;
    margin-bottom: 2rem;
}

.placeholder-box h2 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.carousel-skeleton {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.carousel-card.skeleton {
    width: 280px;
    height: 180px;
    background: var(--card-bg);
    border-radius: var(--radius);
    opacity: 0.5;
}

/* Contact */
.contact-recap {
    margin-bottom: 1rem;
}

.contact-recap a {
    color: var(--primary);
    text-decoration: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form-wrap, .contact-calendly-wrap {
    padding: 2rem;
}

.contact-form-wrap h2,
.contact-calendly-wrap h2 {
    margin-bottom: 1rem;
    text-shadow: var(--text-on-image-shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    transition: border-color 0.2s;
}

.theme-notte .form-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.calendly-embed {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow);
}

.calendly-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 150;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0.75rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    padding: 2rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 168, 232, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
        rgba(12, 16, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.footer-brand {
    max-width: 420px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .logo-accent {
    color: #d7f3ff;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    margin-top: 0.45rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
    align-self: start;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateY(-1px);
}

.footer-nav .sep { display: none; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
}

.footer-bottom .btn {
    border-radius: 999px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Pannello test tema (solo DEBUG) */
.theme-test-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    background: var(--header-bg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-test-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.theme-test-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-family: var(--font);
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-test-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-test-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.theme-test-btn-auto {
    margin-left: 0.15rem;
    border-style: dashed;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-copy,
    .hero-subtitle,
    .hero-highlights {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 360px;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .solution-hero-inner,
    .solution-content,
    .about-mission-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-globe-card {
        min-height: clamp(500px, 74vw, 680px);
    }

    .about-focus-grid {
        grid-template-columns: 1fr;
    }

    .about-mission-section .about-section-heading {
        margin-bottom: 0;
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        grid-column: 1;
        justify-self: start;
    }

    .nav-toggle {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 16, 18, 0.82);
        padding: 1rem 1.5rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: calc(var(--radius) + 10px);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
        align-items: stretch;
        gap: 1rem;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .main-nav.open { display: flex; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0.35rem;
        padding: 0.35rem;
        border-radius: var(--radius);
    }

    .site-header .header-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .footer-nav {
        justify-content: flex-start;
        align-self: stretch;
        border-radius: calc(var(--radius) + 8px);
    }

    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-bottom .btn {
        width: 100%;
    }

    .map-info-panel {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-orbit-large {
        width: 300px;
        height: 300px;
    }

    .hero-orbit-small {
        width: 190px;
        height: 190px;
    }

    .hero-card-main {
        width: min(100%, 280px);
        padding: 1.5rem;
    }

    .hero-card-top {
        right: 0.5rem;
    }

    .hero-card-bottom {
        left: 0.5rem;
        bottom: 10%;
    }

    .about-hero-showcase,
    .about-hero-copy,
    .about-focus-card,
    .about-mission-section .about-section-heading,
    .about-competencies-panel,
    .about-team-panel {
        padding: 1.5rem;
    }

    .about-metrics {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .about-globe-card {
        min-height: 450px;
    }

    .about-globe-map,
    .about-globe-fallback {
        inset: 0.55rem;
    }

    .about-globe-caption {
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 1rem;
        padding: 0.75rem 0.85rem;
    }

    .section { padding: 2.5rem 0; }
    .solutions-grid { grid-template-columns: 1fr; }
}
