/* ===================================================================
   Connect to Grow — CSS principale
   =================================================================== */

/* 1. Importazione font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Space+Grotesk:wght@400;600;700&display=swap');

/* 2. Variabili di sistema */
:root {
  --color-black: #000000;
  --color-accent: #62c972;
  --color-text: #212121;
  --color-primary: #3b76cc;
  --color-blue-50: #deeaf7;
  --color-blue-25: #e9f3f9;
  --color-blue-10: #f4f7fa;
  --font-main: 'Inter', sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
}

/* 3. Classi utility — background e bordi */
.bg-blue-50  { background-color: var(--color-blue-50); }
.bg-blue-25  { background-color: var(--color-blue-25); }
.bg-blue-10  { background-color: var(--color-blue-10); }
.bg-primary  { background-color: var(--color-primary); }
.border-blue-50 { border: 1px solid var(--color-blue-50); }

/* 4. Classi utility — colore testo */
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-main    { color: var(--color-text); }
.text-black   { color: var(--color-black); }
.text-white   { color: #ffffff; }

/* 5. Classi tipografiche (body — Inter) */
.body-14-reg  { font-family: var(--font-main); font-size: 14px; line-height: 18px; font-weight: 400; }
.body-14-bold { font-family: var(--font-main); font-size: 14px; line-height: 18px; font-weight: 700; }
.body-16-reg  { font-family: var(--font-main); font-size: 16px; line-height: 24px; font-weight: 400; }
.body-16-bold { font-family: var(--font-main); font-size: 16px; line-height: 24px; font-weight: 700; }
.body-18-reg  { font-family: var(--font-main); font-size: 18px; line-height: 28px; font-weight: 400; }
.body-18-bold { font-family: var(--font-main); font-size: 18px; line-height: 28px; font-weight: 700; }
.body-18-bold-space-grotesk { font-family: var(--font-title); font-size: 18px; line-height: 28px; font-weight: 700; }

/* 6. Classi tipografiche (title — Space Grotesk) */
.title-32-bold { font-family: var(--font-title); font-size: 32px; line-height: 40px; font-weight: 700; }
.title-28-bold { font-family: var(--font-title); font-size: 28px; line-height: 32px; font-weight: 700; }
.title-24-semi { font-family: var(--font-title); font-size: 24px; line-height: 32px; font-weight: 600; }
.title-24-bold { font-family: var(--font-title); font-size: 24px; line-height: 28px; font-weight: 700; }
.title-20-bold { font-family: var(--font-title); font-size: 20px; line-height: 24px; font-weight: 700; }

/* 7. Lead & label (Space Grotesk) */
.lead-sm  { font-family: var(--font-title); font-size: 20px; line-height: 32px; font-weight: 400; }
.lead-lg  { font-family: var(--font-title); font-size: 24px; line-height: 32px; font-weight: 400; }
.label-lg { font-family: var(--font-title); font-size: 18px; line-height: 24px; font-weight: 700; }
.label-sm { font-family: var(--font-title); font-size: 16px; line-height: 20px; font-weight: 700; }

/* ===== Reset & base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > * {
    width: 100%;
}

.site-footer {
    margin-top: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-text);
}

h2 {
    font-size: 28px;
    line-height: 32px;
}

h3 {
    font-size: 20px;
    line-height: 28px;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 96px;
}

/* ----- Logo ----- */
.logo {
    display: flex;
    align-items: center;
}

.logo-full {
    width: 144px;
    height: 80px;
}

.logo-icon {
    display: none;
    width: 40px;
    height: 40px;
}

/* Header scrolled — logo compatto */
.site-header.scrolled .logo-full {
    display: none;
}

.site-header.scrolled .logo-icon {
    display: block;
}

/* ----- Nav desktop ----- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.main-nav a {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding: 4px 8px;
    transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-accent);
    color: var(--color-black);
}

/* ----- Hamburger (mobile) ----- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #212121;
    transition: all 0.3s;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Sezioni generiche ===== */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 24px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0;
    color: #212121;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    color: #212121;
    margin-bottom: 32px;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 40px;
}

.hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.hero-arrow {
    width: 57px;
    height: 99px;
    flex-shrink: 0;
    margin-top: 58px;
}

.hero-arrow-left {
    transform: rotate(180deg);
}

.hero-arrow-right {
    /* SVG originale punta a sinistra (<) — corretto per il lato destro */
}

.hero-text {
    max-width: 596px;
    font-family: var(--font-title);
    font-size: 20px;
    line-height: 32px;
    font-weight: 400;
    color: #212121;
}

.hero-text p {
    margin-bottom: 24px;
}

.hero-text p:last-of-type {
    margin-bottom: 0;
}

.hero-text strong {
    font-weight: 700;
}

.hero-text .hero-link {
    display: inline-flex;
    float: right;
    margin-top: 24px;
}

/* ===== Link con freccia ===== */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-primary);
    white-space: nowrap;
    transition: color 0.2s;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.link-arrow:hover {
    color: color-mix(in srgb, var(--color-primary) 80%, black);
}


/* ===== Barra PNRR ===== */
.barra-pnrr {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    text-align: center;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
}

/* ===== Mappa ===== */
.section-mappa {
    padding: 0;
}

.mappa-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Card grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.card {
    padding: 12px;
    font-size: 14px;
    line-height: 18px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
}

.card-title a {
    color: #212121;
    transition: color 0.2s;
}

.card-contributo .card-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #212121;
}

.card-title a:hover {
    color: var(--color-primary);
}

.section-contributi {
    background-color: var(--color-blue-10);
    padding: 40px 0;
}

.section-contributi .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section-contributi .card-grid {
    gap: 16px;
    margin-bottom: 0;
    width: 100%;
}

.section-contributi h2 {
    margin-bottom: 0;
}

.section-contributi .link-arrow {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.section-workshop {
    padding: 80px 0;
}

.section-workshop .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1013px;
    margin: 0 auto;
}

.section-workshop h2 {
    margin-bottom: 0;
    padding: 2px;
}

.section-workshop .section-subtitle {
    margin: 0;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #212121;
    text-align: center;
}

/* ===== Workshop date list ===== */
.workshop-date-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.workshop-date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--color-primary);
    transition: color 0.2s;
}

.workshop-date-item:hover {
    color: color-mix(in srgb, var(--color-primary) 80%, black);
}

.workshop-date-num {
    color: #212121;
}

/* ===== Footer ===== */

.footer-loghi {
    background: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 65px;
    padding: 40px 80px 120px 80px;
}

.footer-loghi img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.footer-links {
    text-align: center;
    padding: 16px;
    font-size: 14px;
}

.footer-links a {
    color: #666;
    transition: color 0.2s;
}

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

/* ===== Breadcrumb + Titolo + Descrizione ===== */
.bread-title-desc {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breadcrumb {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 20px;
    color: #212121;
}

.breadcrumb a {
    color: #212121;
    text-decoration: underline;
}

.bread-title-desc h1 {
    font-family: var(--font-title);
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    color: #212121;
    margin: 0;
    max-width: 564px;
}

.bread-title-desc p {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 28px;
    color: #212121;
    margin: 0;
    max-width: 564px;
}

/* ===== Lista Contributi (pagina /contributi) ===== */
.contributi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 80px;
}

.contributo-row {
    background-color: var(--color-blue-10);
}

.contributo-row-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 64px;
}

.contributo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contributo-titolo {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #212121;
    margin: 0;
    max-width: 595px;
}

.contributo-titolo a {
    color: #212121;
    text-decoration: underline;
}

.contributo-titolo a:hover {
    color: var(--color-primary);
}

.contributo-data {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1D1D1B;
    background-color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.contributo-data-anno {
    font-weight: 700;
}

.contributo-autori {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 956px;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 18px;
    color: #212121;
}

/* ===== Workshop page ===== */
.ws-page {
    padding-bottom: 80px;
}

.ws-date-tabs-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.ws-date-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.ws-date-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}

.ws-date-tab-active {
    background-color: var(--color-blue-10);
}

.ws-date-tab:hover {
    background-color: var(--color-blue-10);
}

.ws-date-val {
    color: var(--color-primary);
}

/* Lista programma workshop */
.ws-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ws-entry {
    background-color: var(--color-blue-10);
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 24px 0;
}

.ws-entry-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.ws-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-ora {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #1D1D1B;
    background-color: #44D06F;
    padding: 2px 4px;
    white-space: nowrap;
}

.ws-titolo {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #FFFFFF;
    background-color: #0179D0;
    padding: 2px;
}

.ws-relatori {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ws-relatori p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1D1D1B;
    margin: 0;
}

.ws-relatori strong {
    font-weight: 700;
    background-color: #DEEAF6;
    padding: 0 2px;
}

/* ===== Dettaglio contributo ===== */
.contributo-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 64px;
    gap: 40px;
}

.contributo-detail-header .bread-title-desc {
    padding: 0;
    margin: 0;
}

.contributo-detail-autori {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contributo-detail-autore {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-primary);
    text-decoration: underline;
}

.contributo-detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px 80px;
}

.contributo-detail-layout {
    display: flex;
    gap: 64px;
}

.contributo-detail-corpo {
    flex: 1;
    max-width: 564px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contributo-detail-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-text);
    text-align: left;
    margin-bottom: 16px;
}

.section-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contributo-detail-section p {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    margin: 0;
}

.contributo-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contributo-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 270px;
    align-self: flex-start;
    margin-top: 44px;
}

.contributo-tag {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    color: #000000;
    background-color: var(--color-accent);
    padding: 2px 8px;
}

.contributo-detail-preview {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.contributo-detail-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

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

/* ===== Hero progetto ===== */
.progetto-hero {
    padding: 60px 0;
}

.progetto-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.progetto-hero-icon {
    width: 140px;
    height: 140px;
}

.progetto-hero-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 431px;
}

.progetto-hero-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0;
    color: #212121;
}

.progetto-hero-subtitle {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    color: #212121;
}

/* ===== Contenuto pagina progetto ===== */
.progetto-contenuto {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.progetto-contenuto-inner {
    width: 563px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.progetto-contenuto p {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 28px;
    color: #212121;
}

.progetto-blocco h2.progetto-titolo-verde {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: #1A1A1A;
    background-color: var(--color-accent);
    display: inline-block;
    padding: 2px;
    text-align: left;
    margin-bottom: 16px;
}

.progetto-blocco h3 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #212121;
    margin-top: 24px;
    margin-bottom: 8px;
}

.progetto-blocco p {
    margin-bottom: 0;
}

.progetto-links {
    display: flex;
    gap: 16px;
}

.progetto-btn {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 24px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

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

/* ===== Pagine interne — contenuto ===== */
.page-content {
    padding: 40px 0 60px;
}

.page-content h1 {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 32px;
}

.page-content h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 24px;
}

/* ===== Team (pagina /team — layout Figma) ===== */
.team-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px 80px;
}

.team-grid-figma {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.team-card-figma {
    display: flex;
    height: 172px;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.2s;
}

.team-card-figma:hover {
    opacity: 0.9;
}

.team-card-info {
    width: 294px;
    height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    gap: 4px;
    background-color: #E8F2FA;
    flex-shrink: 0;
}

.team-card-nome {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: #1D1D1B;
    margin: 0;
}

.team-card-ruolo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1D1D1B;
    margin: 0;
}

.team-card-ruolo .icon-left,
.team-card-ruolo .icon-right {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.team-card-ruolo .icon-right {
    transform: rotate(180deg);
}

.team-card-foto {
    width: 172px;
    height: 172px;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    flex-shrink: 0;
}

/* ===== Team grid (legacy) ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.team-card h3 {
    margin-bottom: 4px;
}

.team-card .team-ruolo {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.team-card .team-istituzione {
    font-size: 13px;
    color: #999;
}

/* ===== Team detail ===== */
.team-detail {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.team-detail img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-detail-info h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 8px;
}

/* ===== Workshop list ===== */
.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.workshop-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.workshop-item img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.workshop-item-body h3 {
    margin-bottom: 8px;
}

.workshop-item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}


.contributo-item .contributo-abstract {
    font-size: 14px;
    line-height: 20px;
    color: #666;
}

/* ===== Detail page ===== */
.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-content h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 16px;
}

.detail-content .detail-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.detail-content .detail-body {
    font-size: 16px;
    line-height: 24px;
}

.detail-content .detail-body p {
    margin-bottom: 16px;
}

.detail-content img {
    border-radius: 8px;
    margin-bottom: 24px;
}

/* ===== Contatti (pagina /contatti — layout Figma) ===== */
.contatti-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px 80px;
}

.contatti-grid-figma {
    display: flex;
    gap: 72px;
    max-width: 910px;
}

.contatto-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contatto-nome {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #1D1D1B;
    margin: 0;
}

.contatto-ruolo {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1D1D1B;
    margin: 0;
}

.contatto-email {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.contatto-email a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== Contatti (form legacy) ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #212121;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.2s;
}

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

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

.contact-form button[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #015a9e;
}

/* ===== Roadmap / Timeline ===== */
.roadmap-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
}

.roadmap-item {
    position: relative;
    margin-bottom: 40px;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-primary);
}

.roadmap-item h3 {
    margin-bottom: 8px;
}

.roadmap-item p {
    font-size: 14px;
    line-height: 22px;
    color: #666;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header mobile */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 5rem 2rem 2rem;
        z-index: 105;
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .main-nav a::after {
        display: none;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
    }

    .menu-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Hero mobile */
    .hero-row {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }

    .hero-link-wrapper {
        padding: 0 20px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-text {
        font-size: 18px;
        line-height: 28px;
    }

    /* Card grid mobile */
    .card-grid {
        grid-template-columns: 1fr;
    }

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

    /* Workshop dates mobile */
    .workshop-date-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* Team detail mobile */
    .team-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Workshop item mobile */
    .workshop-item {
        flex-direction: column;
    }

    .workshop-item img {
        width: 100%;
        height: auto;
    }

    /* Footer mobile */
    .footer-loghi {
        padding: 24px 20px;
    }

    .footer-loghi img {
        max-height: 30px;
    }

    /* Page content mobile */
    .page-content h1 {
        font-size: 28px;
        line-height: 36px;
    }
}
