@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}

/* Fraunces corsivo: solo per "un solo interlocutore" nel titolo dell'hero */
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/fraunces-latin-wght-italic.woff2') format('woff2');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D1B33;
    --primary-dark: #081222;
    --accent: #f6b55c; /* ambra, ripresa dalle tessere del logo */
    --foreground: #25282a;
    --background: #fafafa;
    --card: #f5f5f5;
    --border: #d9d9d9;
    --muted-foreground: #666;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.08);
    --photo-veil: linear-gradient(100deg, rgba(8, 18, 34, 0.95) 0%, rgba(13, 27, 51, 0.85) 45%, rgba(13, 27, 51, 0.45) 100%);
    --spacing-desktop: 40px;
    --spacing-tablet: 25px;
    --spacing-mobile: 15px;
}

html {
    /* le ancore non devono finire sotto la testata fissa (64px) */
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.hero a:focus-visible {
    outline-color: #fff;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}


.nav-desktop {
    display: none;
    gap: 1.5rem;
    font-size: 0.9375rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 64px);
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}

.mobile-menu .nav-link:hover {
    color: var(--primary);
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    /* scala elicoidale del Borromini, Palazzo Barberini, Roma (foto di Giuseppe Gallo, licenza Unsplash),
       sotto il velo blu di marca: pieno a sinistra dove c'è il testo, leggero a destra per lasciar vedere la scala */
    background: var(--photo-veil), url('images/hero-borromini.jpg') center / cover, var(--primary);
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 3.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 880px;
    text-wrap: balance; /* righe di lunghezza simile: la promessa in ambra non si spezza male */
}

.hero-title em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.1em; /* il corsivo serif ha l'occhio più piccolo dell'Inter: lo pareggia */
    letter-spacing: -0.01em;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 640px;
}

.hero .btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

.hero .btn-primary:hover {
    background: #ffc978;
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    max-width: 640px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* numeri nello stesso bastoni del sito: cambia solo peso, misura e colore */
.hero-proof b {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--card);
}



/* Sections */
.section {
    padding: var(--spacing-mobile) 0;
}

.section-light {
    background: var(--background);
}

.section-dark {
    background: var(--card);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.accent-line {
    width: 64px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 900px;
    margin: 0 auto 0.75rem;
    line-height: 1.8;
}












/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.platform-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.platform-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--card);
}

.platform-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    display: block;
    transition: transform 0.3s;
}

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

.platform-content {
    padding: 2rem;
}

.platform-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.platform-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.platform-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-card {
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.3s;
}


.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}




/* Social Section */
.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}



/* Footer */
.footer {
    padding-top: 2rem;
    padding-bottom: 1rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.footer-top {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.footer-motto-intro {
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.footer-quote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.footer-brand {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0;
    line-height: 1.6;
    text-align: left;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.linkedin-link:hover {
    text-decoration: underline;
}

.footer-brand-section {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom p {
    margin: 0;
}

.footer-notice {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: var(--spacing-mobile);
    margin-bottom: var(--spacing-mobile);
}

.footer-bottom {
    padding-top: var(--spacing-mobile);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}




.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* logo originale dello Studio (docs/logo.jpeg, reso trasparente); il file è a doppia risoluzione */
.logo img {
    display: block;
    height: 54px;
    width: auto;
}

.eyebrow,
.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.hero-eyebrow {
    color: var(--accent);
}

.hero-text {
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: -1rem 0 2rem;
    line-height: 1.7;
}

/* intestazione delle pagine interne: stessa fascia blu dell'hero, più bassa */
.page-hero {
    padding: 4rem 0 3rem;
    background: var(--photo-veil), url('images/hero-borromini.jpg') center / cover, var(--primary);
}

.page-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 600;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.page-hero .hero-subtitle {
    margin-bottom: 0;
}

.prose {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1rem;
}

.prose-center {
    margin-bottom: 2.5rem;
}

.prose .section-title {
    text-align: left;
}

.prose-title {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
}

.accent-line-left {
    margin-left: 0;
}






.area-grid,
.steps,
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}

.area-card,
.step,
.timeline li {
    display: block;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.section-light .step,
.section-light .timeline li {
    background: white;
}

.area-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.area-num,
.timeline-year {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-year {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.area-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.values-grid-spaced {
    margin-top: 2rem;
}

.focus-box {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0.375rem;
    line-height: 1.8;
}

.focus-box p {
    margin-bottom: 1rem;
}

.focus-box .prose-title {
    margin-top: 0;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags li {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--card);
    font-size: 0.875rem;
}




.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.center {
    text-align: center;
    margin-top: 2rem;
}

.note {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-align: center;
}

.prose .note {
    text-align: left;
    font-weight: 600;
}

.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

.office p {
    margin-bottom: 0.25rem;
}

/* striscia fotografica in cima alla card della sede, a filo dei bordi */
.office {
    overflow: hidden;
}

.office-photo {
    display: block;
    width: calc(100% + 3rem);
    max-width: none;
    height: auto;
    aspect-ratio: 8 / 3;
    object-fit: cover;
    margin: -1.5rem -1.5rem 1.25rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .section {
        padding: var(--spacing-tablet) 0;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    .section-description {
        margin-bottom: 1rem;
    }

    .section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 3rem;
    }


    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-mobile);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-mobile);
    }

    .footer-quote {
        font-size: 2.5rem;
    }

    .footer-contacts {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }


    .area-grid,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }


    .timeline {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-compact {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .area-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .values-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .section {
        padding: var(--spacing-desktop) 0;
    }

    .section-title {
        margin-bottom: 0.75rem;
    }

    .section-description {
        margin-bottom: 0.75rem;
    }
}

/* otto voci di menu: il menu orizzontale ci sta solo da 1200px, sotto resta l'hamburger */
@media (min-width: 1200px) {
    .nav-desktop {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}
