/* =========================
   BASE
==========================*/

:root {
    --bg-page: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-header: #020617;
    --bg-header-alt: #0F172A;
    --primary: #2563EB;
    --primary-soft: #EFF6FF;
/*
    --accent: #22C55E;
    --accent-dark: #16A34A;
*/
    --accent: #fca533;
    --accent-dark: #af6505;

    --text-main: #111827;
    --text-muted: #6B7280;
    --border-subtle: #E5E7EB;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: linear-gradient(180deg, #020617 0, #020617 80px, var(--bg-page) 80px, var(--bg-page) 100%);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   HEADER & NAV
==========================*/

header {
    background: linear-gradient(90deg, #020617, #0F172A);
    color: #F9FAFB;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    display: block;
    height: 40px;          
    width: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
}

nav a {
    color: #E5E7EB;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    text-decoration: none;
    border-bottom-color: rgba(148, 163, 184, 0.5);
}

nav a.active {
    color: #FFFFFF;
    font-weight: 600;
    border-bottom-color: var(--accent);
}

/* =========================
   LAYOUT PRINCIPALE
==========================*/

main {
    padding: 28px 16px 40px;
    max-width: 1120px;
    margin: 0 auto;
}

section {
    margin-bottom: 32px;
    padding: 24px 24px 26px;
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.03);
}

h1, h2, h3 {
    color: var(--text-main);
    margin-top: 0;
}

h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

ul, ol {
    margin-top: 6px;
    margin-bottom: 10px;
    padding-left: 20px;
}

/* =========================
   HERO HOME
==========================*/

.section-hero-wrapper {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 28px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px 26px 34px;
    background: radial-gradient(circle at top left, #1D4ED8 0, #0F172A 50%, #020617 100%);
    border-radius: 24px;
    color: #F9FAFB;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    overflow: hidden;
}

/* Overlay dietro al testo per leggibilità */
.hero-text-panel {
    position: relative;
    z-index: 1;
}

.hero-text-panel::before {
    content: "";
    position: absolute;
    inset: -16px -24px -18px -24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.82));
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #F9FAFB;
}

.hero p {
    font-size: 15px;
    color: #E5E7EB;
}

.hero-sub {
    margin-bottom: 4px;
}
.hero-sub-sub {
    padding-top: 16px;
}

.hero-highlight {
    font-size: 13px;
    color: #BFDBFE;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-bullets {
    margin-top: 8px;
    font-size: 14px;
    color: #E5E7EB;
}

.hero-bullets ul {
    padding-left: 18px;
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #022C22;
    border-color: transparent;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #ECFDF3;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.08);
    color: #E5E7EB;
    border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.2);
}

.hero-media {
    display: flex;
    justify-content: center;
}

/* Video placeholder nel hero */

.hero-video {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #1D4ED8 0, #0F172A 55%, #020617 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero-video-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-play {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    border: 2px solid rgba(248, 250, 252, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
}

.hero-video-play::before {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #F9FAFB;
    margin-left: 3px;
}

.hero-video-caption {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 13px;
    color: #E5E7EB;
}

/* =========================
   CARDS & GRID
==========================*/

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    border-radius: 16px;
    padding: 18px 18px 20px;
    background: #F9FAFB;
    border: 1px solid var(--border-subtle);

    display: flex;
    flex-direction: column;

}

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin-bottom: 8px;
}

.card-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-soft);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.feature-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.features-section {
    background: linear-gradient(135deg, #EFF6FF 0, #EEF2FF 100%);
    border-radius: 24px;
    padding: 24px 24px 26px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

/* =========================
   VIDEO PLACEHOLDER (altre sezioni)
==========================*/

.video-placeholder {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 8px 0;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at top left, #1D4ED8 0, #0F172A 55%, #020617 100%);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5E7EB;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
}

.video-play {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid rgba(248, 250, 252, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
}

.video-play::before {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #F9FAFB;
    margin-left: 3px;
}

.video-caption {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 13px;
    color: #E5E7EB;
}


/* =========================
   VIDEO VERTICALE (risorse)
==========================*/

.video-vertical-wrapper {
/*
    display: flex;
    justify-content: center;
    margin: 12px 0 4px;
*/

  margin-top: auto;     
  display: flex;
  justify-content: center;  
  margin-bottom: 0;     

}

.video-vertical {

    width: 100%;

    max-width: 420px;      
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
    display: block;
    background-color: #000; 
}

/* =========================
   SEZIONI SPECIALI
==========================*/

.section-intro-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mini-cta-links a {
    display: inline-flex;
    margin-right: 12px;
    margin-bottom: 6px;
}

/* =========================
   FOOTER
==========================*/

footer {
    padding: 18px 16px 24px;
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    margin-top: 24px;
}

/* =========================
   RESPONSIVE
==========================*/

@media (max-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 18px 26px;
    }

    .hero-media {
        order: -1;
    }

    .hero-text-panel::before {
        inset: -12px -14px -14px -14px;
    }

    section {
        padding: 18px 16px 20px;
        margin-bottom: 24px;
    }

    main {
        padding: 20px 12px 32px;
    }
/*
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
*/
}