/* ============================================
   MEDCON Platform — Shared Styles
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --navy: #004052;
    --navy-dark: #002a36;
    --navy-light: #005a72;
    --gold: #D4A84C;
    --gold-light: #E8C97A;
    --gold-dark: #B8923E;
    --teal: #0097a7;
    --teal-light: #00bcd4;
    --blue-light: #4dabf7;
    --blue-lighter: #74c0fc;
    --orange: #e8875e;
    --orange-light: #f0a07a;
    --white: #ffffff;
    --cream: #faf8f5;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { font-size: 1.125rem; color: var(--gray-700); }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold); }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.85); }
.section--cream { background: var(--cream); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.25rem; }
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
}
.btn--primary { background: var(--gold); color: var(--navy-dark); }
.btn--primary:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--navy); border: 2px solid rgba(0,64,82,0.25); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0, 42, 54, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--transition-base);
}
.header.scrolled { box-shadow: var(--shadow-lg); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
}
.header__logo { display: flex; align-items: center; }
.header__logo-img { height: 44px; width: auto; }
.header__nav { display: none; }
@media (min-width: 1024px) {
    .header__nav { display: flex; align-items: center; gap: 2.25rem; }
}
.header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
    position: relative;
}
.header__nav a:hover,
.header__nav a.active { color: var(--gold); }
.header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}
/* Dropdown */
.header__nav-item { position: relative; }
.header__nav-item > a { display: flex; align-items: center; gap: 0.35rem; }
.header__nav-item > a i { font-size: 0.625rem; transition: transform var(--transition-fast); }
.header__nav-item:hover > a i { transform: rotate(180deg); }
.header__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--navy-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    margin-top: 0.75rem;
}
.header__nav-item:hover .header__dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}
.header__dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--navy-dark);
}
.header__dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: all var(--transition-fast);
}
.header__dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
}
.header__dropdown a i {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
}
.header__dropdown-icon--consulting { color: var(--teal-light); }
.header__dropdown-icon--academy { color: var(--blue-lighter); }
.header__dropdown-icon--corporate { color: var(--gold-light); }
.header__dropdown-icon--sales { color: var(--orange-light); }
.header__dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.375rem 0;
}

/* Mobile dropdown */
.mobile-menu__sub {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.mobile-menu__sub a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
}
.mobile-menu__sub a:hover { color: var(--gold); }
.mobile-menu__sub-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin-bottom: -0.25rem;
}

/* Explore other pillars */
.explore__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.explore__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.explore__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.explore__card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.explore__card-icon--consulting { background: rgba(0,151,167,0.1); color: var(--teal); }
.explore__card-icon--academy { background: rgba(77,171,247,0.1); color: var(--blue-light); }
.explore__card-icon--corporate { background: rgba(212,168,76,0.1); color: var(--gold-dark); }
.explore__card-icon--sales { background: rgba(232,135,94,0.1); color: var(--orange); }
.explore__card h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.explore__card p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1rem; flex-grow: 1; }
.explore__card-link {
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-base);
}
.explore__card:hover .explore__card-link { gap: 0.65rem; }
.explore__card-link--consulting { color: var(--teal); }
.explore__card-link--academy { color: var(--blue-light); }
.explore__card-link--corporate { color: var(--gold-dark); }
.explore__card-link--sales { color: var(--orange); }

.header__cta { display: none; }
@media (min-width: 768px) { .header__cta { display: inline-flex; } }
.header__mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
@media (min-width: 1024px) { .header__mobile-toggle { display: none; } }
.header__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

/* ---- Mobile Menu ---- */
.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}
.mobile-menu__overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; max-width: 320px;
    height: 100vh;
    background: var(--navy-dark);
    z-index: 1001;
    padding: 6rem 2rem 2rem;
    transition: right 0.35s ease;
}
.mobile-menu.open { right: 0; }
.mobile-menu__close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu nav a {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.mobile-menu nav a:hover { color: var(--gold); }

/* ---- Hero (Homepage) ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(212,168,76,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 60%; height: 120%;
    background: radial-gradient(ellipse at center, rgba(0,151,167,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 8rem 0 2rem;
}
.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212,168,76,0.12);
    border: 1px solid rgba(212,168,76,0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 2rem;
}
.hero__title { color: var(--white); margin-bottom: 1.5rem; }
.hero__title span { color: var(--gold); }
.hero__subtitle {
    font-size: 1.375rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 620px;
    line-height: 1.7;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.hero__stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.hero__stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: heroBounce 2s infinite;
}
@keyframes heroBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
    position: relative;
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(212,168,76,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero__breadcrumb a:hover { color: var(--gold); }
.page-hero__breadcrumb i { font-size: 0.625rem; }
.page-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.page-hero__label--consulting { background: rgba(0,151,167,0.15); color: var(--teal-light); }
.page-hero__label--academy { background: rgba(77,171,247,0.15); color: var(--blue-lighter); }
.page-hero__label--corporate { background: rgba(212,168,76,0.15); color: var(--gold-light); }
.page-hero__label--sales { background: rgba(232,135,94,0.15); color: var(--orange-light); }
.page-hero__title { color: var(--white); margin-bottom: 1.25rem; }
.page-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 600px;
}

/* ---- Chi Siamo ---- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; } }
.about__card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.about__card::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 60%; height: 120%;
    background: radial-gradient(ellipse, rgba(212,168,76,0.1), transparent 70%);
    pointer-events: none;
}
.about__card-year {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(212,168,76,0.2);
    line-height: 1;
    margin-bottom: 1rem;
}
.about__card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}
.about__card-highlights {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}
.about__card-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gold);
    font-weight: 600;
}
.about__card-highlight i { font-size: 0.75rem; }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text > p { margin-bottom: 1.5rem; line-height: 1.8; }
.about__values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (min-width: 640px) { .about__values { grid-template-columns: repeat(3, 1fr); } }
.about__value {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}
.about__value:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.about__value-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1rem;
}
.about__value-text { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }

/* ---- Piattaforma — 4 Pilastri ---- */
.pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pillar-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.pillar-card--consulting::before { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.pillar-card--academy::before { background: linear-gradient(90deg, var(--blue-light), var(--blue-lighter)); }
.pillar-card--corporate::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pillar-card--sales::before { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.pillar-card__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.pillar-card--consulting .pillar-card__icon { background: rgba(0,151,167,0.15); color: var(--teal-light); }
.pillar-card--academy .pillar-card__icon { background: rgba(77,171,247,0.15); color: var(--blue-lighter); }
.pillar-card--corporate .pillar-card__icon { background: rgba(212,168,76,0.15); color: var(--gold-light); }
.pillar-card--sales .pillar-card__icon { background: rgba(232,135,94,0.15); color: var(--orange-light); }
.pillar-card__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}
.pillar-card--consulting .pillar-card__label { color: var(--teal-light); }
.pillar-card--academy .pillar-card__label { color: var(--blue-lighter); }
.pillar-card--corporate .pillar-card__label { color: var(--gold-light); }
.pillar-card--sales .pillar-card__label { color: var(--orange-light); }
.pillar-card__title { font-size: 1.375rem; color: var(--white); margin-bottom: 0.75rem; }
.pillar-card__desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}
.pillar-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pillar-card__tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}
.pillar-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: auto;
    transition: all var(--transition-base);
}
.pillar-card--consulting .pillar-card__link { color: var(--teal-light); }
.pillar-card--academy .pillar-card__link { color: var(--blue-lighter); }
.pillar-card--corporate .pillar-card__link { color: var(--gold-light); }
.pillar-card--sales .pillar-card__link { color: var(--orange-light); }
.pillar-card__link:hover { gap: 0.75rem; }
.pillar-card__link i { font-size: 0.75rem; transition: transform var(--transition-base); }
.pillar-card:hover .pillar-card__link i { transform: translateX(3px); }

/* ---- Detail Sections (sub-pages) ---- */
.detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .detail__grid { grid-template-columns: 1fr 1fr; }
    .detail__grid--reverse .detail__content { order: 2; }
    .detail__grid--reverse .detail__visual { order: 1; }
}
.detail__content h2 { margin-bottom: 1.5rem; }
.detail__content h3 { margin-bottom: 1rem; font-size: 1.375rem; }
.detail__content > p { margin-bottom: 1.5rem; line-height: 1.8; }
.detail__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 640px) { .detail__features { grid-template-columns: 1fr; } }
.detail__feature {
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}
.section--cream .detail__feature { background: var(--white); }
.detail__feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.detail__feature-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
}
.detail__feature-title i { margin-right: 0.5rem; }
.detail__feature-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}
.detail__visual-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}
.detail__visual-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,76,0.08), transparent 70%);
    pointer-events: none;
}
.detail__visual-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.detail__visual-box--consulting .detail__visual-icon { color: var(--teal-light); }
.detail__visual-box--academy .detail__visual-icon { color: var(--blue-lighter); }
.detail__visual-box--corporate .detail__visual-icon { color: var(--gold-light); }
.detail__visual-box--sales .detail__visual-icon { color: var(--orange-light); }
.detail__visual-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    text-align: center;
    position: relative;
}
.detail__visual-sublabel {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
    text-align: center;
    position: relative;
}

/* ---- Sub-page: service list ---- */
.service-list {
    list-style: none;
    margin: 2rem 0;
}
.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.service-list li i {
    color: var(--gold);
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* ---- Partnership ---- */
.partnership__box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}
.partnership__box::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(212,168,76,0.06), transparent 70%);
    pointer-events: none;
}
.partnership__header { text-align: center; margin-bottom: 3rem; position: relative; }
.partnership__header h2 { color: var(--white); margin-bottom: 0.75rem; }
.partnership__header p { color: rgba(255,255,255,0.75); font-size: 1.25rem; }
.partnership__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}
@media (min-width: 768px) { .partnership__grid { grid-template-columns: 1fr 1fr; } }
.partnership__col h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.partnership__list { list-style: none; }
.partnership__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.85);
}
.partnership__list li i { color: var(--gold); width: 20px; text-align: center; }
.partnership__cta {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
}

/* ---- Partner Carousel ---- */
.partners { overflow: hidden; }
.partners__carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -1.5rem;
    padding: 1rem 0;
}
.partners__carousel-wrapper::before,
.partners__carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.partners__carousel-wrapper::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.partners__carousel-wrapper::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.partners__track {
    display: flex;
    gap: 1.5rem;
    animation: partnerScroll 60s linear infinite;
    width: max-content;
}
.partners__carousel-wrapper:hover .partners__track { animation-play-state: paused; }
@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-card {
    flex-shrink: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-base);
}
.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.partner-card__name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.partner-card__location {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}
.partner-card__location i { margin-right: 0.25rem; font-size: 0.75rem; }
.partner-card__type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.partners__counter { text-align: center; margin-top: 3rem; }
.partners__counter-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.partners__counter-label {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* ---- Contatti ---- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__info h2 { color: var(--white); margin-bottom: 1.5rem; }
.contact__info > p { font-size: 1.25rem; margin-bottom: 2.5rem; }
.contact__details { list-style: none; margin-bottom: 2rem; }
.contact__details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__details li i {
    width: 24px;
    text-align: center;
    color: var(--gold);
    font-size: 1.125rem;
}
.contact__details a, .contact__details span { color: var(--white); font-size: 1.0625rem; }
.contact__details a:hover { color: var(--gold); }
.contact__social { display: flex; gap: 0.75rem; }
.contact__social a {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    transition: all var(--transition-base);
}
.contact__social a:hover { background: var(--gold); color: var(--navy-dark); }
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}
.contact__form-title { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact__form-subtitle { font-size: 1rem; color: var(--gray-600); margin-bottom: 2rem; }
.form__group { margin-bottom: 1.25rem; }
.form__label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }
.form__input, .form__select, .form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-800);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,168,76,0.1);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__submit { width: 100%; margin-top: 0.5rem; }

/* ---- CTA Section (sub-pages) ---- */
.cta-section {
    text-align: center;
    padding: 5rem 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section--navy .cta-section h2 { color: var(--white); }
.section--navy .cta-section p { color: rgba(255,255,255,0.75); }
.cta-section .btn + .btn { margin-left: 1rem; }

/* ---- Footer ---- */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer__copyright { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer__link { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer__link:hover { color: var(--gold); }

/* ---- Problem Section ---- */
.problem__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .problem__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}
.problem__content h2 { margin-bottom: 1.5rem; }
.problem__content > p { margin-bottom: 1.5rem; }
.problem__list { list-style: none; margin: 2rem 0; }
.problem__list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.section--cream .problem__list li { border-color: var(--gray-300); }
.problem__list li:last-child { border-bottom: none; }
.problem__list li i {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: var(--gold);
    margin-top: 0.15rem;
    font-size: 1rem;
}
.problem__list-text { font-size: 1.0625rem; }
.problem__list-text strong { color: var(--navy); }
.problem__cards { display: grid; gap: 1.5rem; }
.problem__card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
    transition: all var(--transition-base);
}
.problem__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.problem__card-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.problem__card-label { font-size: 1rem; color: var(--gray-600); line-height: 1.5; }

/* ---- Why / Differentiators ---- */
.why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.why__item { text-align: center; padding: 2rem; }
.why__item-icon {
    width: 72px;
    height: 72px;
    background: rgba(212,168,76,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--gold);
}
.why__item h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.section--navy .why__item h3 { color: var(--white); }
.why__item p { font-size: 1rem; }
.section--navy .why__item p { color: rgba(255,255,255,0.75); }

/* ---- Method / Process ---- */
.method__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}
.method__step {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    transition: all var(--transition-base);
}
.method__step:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}
.method__step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-dark);
}
.method__step-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.method__step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--white); }
.method__step p { font-size: 0.9375rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.method__step-features { list-style: none; }
.method__step-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}
.method__step-features li i { color: var(--gold); font-size: 0.75rem; width: 14px; text-align: center; }
.method__step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212,168,76,0.12);
    border: 1px solid rgba(212,168,76,0.3);
    color: var(--gold);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 0.75rem;
}

/* ---- Sub-page: problem intro ---- */
.page-problem {
    padding: 4rem 0;
}
.page-problem__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) { .page-problem__grid { grid-template-columns: 2fr 1fr; } }
.page-problem__content h2 { margin-bottom: 1rem; }
.page-problem__content > p { margin-bottom: 1rem; line-height: 1.8; }
.page-problem__highlight {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
}
.page-problem__highlight-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.page-problem__highlight-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

/* ============================================
   MOBILE & SAFARI OPTIMIZATIONS
   ============================================ */

/* Safari: fix 100vh on iOS (address bar overlap) */
@supports (-webkit-touch-callout: none) {
    .hero { min-height: -webkit-fill-available; }
    .mobile-menu { height: -webkit-fill-available; }
}
@supports (min-height: 100svh) {
    .hero { min-height: 100svh; }
    .mobile-menu { height: 100svh; }
}

/* Safari: form element styling reset */
.form__input, .form__select, .form__textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Safari: tap highlight & touch */
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, [type="submit"] { -webkit-appearance: none; }

/* Safari: smooth scrolling fix */
@supports (scroll-behavior: smooth) {
    html { scroll-behavior: smooth; }
}

/* Mobile: reduce section padding */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header p { font-size: 1.0625rem; }

    /* Hero mobile */
    .hero__content { padding: 7rem 0 2rem; }
    .hero__subtitle { font-size: 1.125rem; margin-bottom: 2rem; }
    .hero__label { font-size: 0.75rem; padding: 0.375rem 1rem; }
    .hero__scroll { display: none; }

    /* Page hero mobile */
    .page-hero { padding: 7rem 0 3rem; }
    .page-hero__title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .page-hero__subtitle { font-size: 1.0625rem; }

    /* About card mobile */
    .about__card { padding: 2rem; }
    .about__card-year { font-size: 3.5rem; }
    .about__card-title { font-size: 1.25rem; }
    .about__card-highlights { gap: 1rem; }

    /* Detail visual box mobile */
    .detail__visual-box { min-height: 280px; padding: 2rem; }
    .detail__visual-icon { font-size: 3rem; }

    /* Partnership mobile */
    .partnership__box { padding: 2rem; }
    .partnership__header { margin-bottom: 2rem; }
    .partnership__header p { font-size: 1.0625rem; }

    /* Contact form mobile */
    .contact__form-wrapper { padding: 1.75rem; }
    .contact__info > p { font-size: 1.0625rem; }

    /* CTA mobile */
    .cta-section { padding: 3rem 0; }
    .cta-section p { font-size: 1.0625rem; }

    /* Method steps mobile */
    .method__steps { gap: 2.5rem; }
    .method__step { padding: 2rem 1.5rem 1.5rem; }

    /* Why grid mobile */
    .why__item { padding: 1.25rem; }
    .why__item-icon { width: 56px; height: 56px; font-size: 1.25rem; }

    /* Problem cards mobile */
    .problem__card { padding: 1.5rem; }
    .problem__card-value { font-size: 2rem; }

    /* Page problem highlight mobile */
    .page-problem__highlight { padding: 2rem; }
    .page-problem__highlight-value { font-size: 2.5rem; }

    /* Partners counter mobile */
    .partners__counter-number { font-size: 3rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    h1 { font-size: clamp(2rem, 7vw, 2.5rem); }
    h2 { font-size: clamp(1.625rem, 5vw, 2rem); }

    .hero__content { padding: 6.5rem 0 1.5rem; }
    .hero__buttons { flex-direction: column; }
    .hero__buttons .btn { width: 100%; justify-content: center; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .hero__stat-value { font-size: 1.625rem; }
    .hero__stat-label { font-size: 0.8125rem; }

    .page-hero { padding: 6rem 0 2.5rem; }
    .page-hero__breadcrumb { font-size: 0.75rem; flex-wrap: wrap; }

    .about__values { grid-template-columns: 1fr; }

    .pillar-card { padding: 1.5rem; }
    .pillar-card__icon { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: 1rem; }

    .detail__features { grid-template-columns: 1fr; }
    .detail__feature { padding: 1rem; }

    .explore__grid { grid-template-columns: 1fr; }

    .partnership__grid { gap: 2rem; }

    /* CTA buttons stack on small mobile */
    .cta-section .btn + .btn { margin-left: 0; margin-top: 0.75rem; }
    .cta-section .btn { display: flex; width: 100%; justify-content: center; }

    /* Footer mobile */
    .footer__inner { flex-direction: column; text-align: center; }
}

/* Touch-friendly: minimum tap targets */
@media (hover: none) and (pointer: coarse) {
    .header__nav a { padding: 0.5rem 0; }
    .pillar-card__link { padding: 0.5rem 0; }
    .contact__details li { padding: 1.125rem 0; }
    .contact__social a { width: 48px; height: 48px; }
    .partner-card { padding: 1.25rem; }
    .explore__card { padding: 1.5rem; }

    /* Disable hover effects on touch */
    .pillar-card:hover,
    .detail__feature:hover,
    .partner-card:hover,
    .explore__card:hover,
    .problem__card:hover,
    .about__value:hover {
        transform: none;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    .mobile-menu { padding-bottom: env(safe-area-inset-bottom); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
    .partners__track { animation: none; }
    html { scroll-behavior: auto; }
}

/* Print styles */
@media print {
    .header, .mobile-menu, .mobile-menu__overlay, .hero__scroll,
    .partners__carousel-wrapper, .contact__social, .footer { display: none; }
    .hero { min-height: auto; padding: 2rem 0; }
    .section { padding: 2rem 0; }
    .section--navy { background: white; color: black; }
    .section--navy h2, .section--navy h3, .section--navy p { color: black; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.hero .reveal { transform: translateY(20px); }
.hero .reveal.visible { transform: translateY(0); }
