﻿/* =========================================================
   1. RESET & VARIABILI GLOBALI
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* TAVOLOZZA COLORI EDITORIALE */
    --background: #F9F6F0; /* Un avorio caldissimo/off-white al posto del bianco */
    --surface: #EFE9DE; /* Il color sabbia/crema morbido della tua Navbar */
    --text: #2B2622; /* Un marrone scurissimo/antracite caldo (mai usare il nero puro) */
    --text-muted: #5F564F; /* Grigio fango/marrone desaturato per i testi secondari */
    --primary: #A45134; /* Il tuo colore d'accento terracotta/ruggine */
    /* SPACING */
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;
    --space-2xl: 10rem;
    /* RADIUS */
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    /* CONTAINERS */
    --container-wide: min(1400px, 92%);
    --container-narrow: min(900px, 92%);
}

body {
    background-color: var(--background); /* Applica l'avorio caldo a tutto il sito */
    color: var(--text);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    padding-top: 80px; /* Lascia lo spazio per la navbar fissa */
}

h1, h2, h3 {
    font-family: Georgia, serif;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

.section {
    padding: var(--space-2xl) var(--space-lg);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 22px;
}

/* =========================================================
   2. PRESENTATION, VISION & MISSION (HOME)
========================================================= */
.presentation {
    background: var(--surface);
}

.presentation-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 3.5rem;
}

.vision-block {
    margin-bottom: 7rem;
}

.presentation-mini-label {
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary);
    opacity: .9;
}

.vision-block h2 {
    width: 100%;
    max-width: 100%;
    font-size: 50px;
    line-height: 1.28;
    letter-spacing: -.03em;
    font-style: italic;
    font-weight: 400;
    text-align: justify;
    color: var(--text);
}

.mission-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.mission-block {
    padding-left: 2rem;
    border-left: 1px solid rgba(0,0,0,.08);
}

    .mission-block p {
        font-size: 25px;
        line-height: 1.80;
        color: var(--text-muted);
    }

.presentation-image {
    height: 720px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 70px var(--shadow);
}

    .presentation-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* =========================================================
   3. SCHEDE FOTOGRAFICHE & GALLERIA ORIZZONTALE
========================================================= */
.gallery-section {
    background: var(--text);
    color: var(--text-light);
    overflow: hidden;
}

.gallery-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    max-width: 900px;
    margin-bottom: 70px;
}

.gallery-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    cursor: grab;
}

    .gallery-scroll::-webkit-scrollbar {
        height: 10px;
    }

    .gallery-scroll::-webkit-scrollbar-thumb {
        background: var(--scrollbar);
        border-radius: 999px;
    }

.photo-card {
    min-width: 420px;
    height: 720px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #000;
    box-shadow: 0 24px 70px var(--shadow-strong);
}

    .photo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease;
    }

    .photo-card:hover img {
        transform: scale(1.03);
    }

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--photo-overlay), transparent 50%);
}

.photo-text {
    position: absolute;
    bottom: 36px;
    left: 36px;
}

    .photo-text p {
        text-transform: uppercase;
        letter-spacing: 0.25em;
        font-size: 11px;
        margin-bottom: 10px;
        opacity: 0.72;
    }

    .photo-text h3 {
        font-size: 28px;
    }

.quote {
    text-align: center;
    background: var(--background);
}

    .quote blockquote {
        max-width: 1100px;
        margin: auto;
        font-size: 64px;
        line-height: 1.2;
        font-family: Georgia, serif;
    }

/* =========================================================
   4. CITIES (ARCHIVIO & MASONRY GALLERY LIGHTBOX)
========================================================= */
.cities-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    padding: 8rem 7vw 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.45) 100%), url('/images/cities-hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

    .cities-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.28) 100%);
        pointer-events: none;
    }

.cities-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

    .cities-hero-content span {
        display: inline-block;
        margin-bottom: .12rem;
        color: rgba(255,255,255,.72);
        text-transform: uppercase;
        letter-spacing: .18em;
        font-size: .78rem;
        font-weight: 600;
    }

    .cities-hero-content h1, .city-hero h1 {
        margin: 0;
        font-size: clamp(3.5rem, 8vw, 7rem);
        line-height: .92;
        letter-spacing: -.05em;
        font-weight: 600;
        max-width: 900px;
    }

    .cities-hero-content p {
        margin-top: 2rem;
        max-width: 620px;
        font-size: 1.05rem;
        line-height: 1.9;
        color: rgba(255,255,255,.82);
    }

.cities-grid-section {
    padding: 3rem 6vw 7rem;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.city-card {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: #111;
    transition: transform .35s ease, box-shadow .35s ease;
}

    .city-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 70px rgba(0,0,0,.16);
    }

.city-card-image {
    position: absolute;
    inset: 0;
}

    .city-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease, filter .6s ease;
        filter: brightness(.82);
    }

.city-card:hover img {
    transform: scale(1.03);
    filter: brightness(.72);
}

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.78) 100%);
}

.city-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem;
    color: white;
    z-index: 2;
}

.city-year {
    display: inline-block;
    margin-bottom: .8rem;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
}

.city-card-content h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.04em;
}

.city-card-content p {
    margin-top: 1rem;
    opacity: .82;
    font-size: .95rem;
    letter-spacing: .03em;
}

.city-hero {
    position: relative;
    height: 72vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #111;
}

    .city-hero img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.58);
    }

.city-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.34) 52%, rgba(0,0,0,.78) 100%);
}

.city-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 7vw 7rem;
    color: white;
}

.city-date {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .72;
}

.city-hero p {
    margin-top: 1.8rem;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,.84);
}

.city-gallery {
    padding: 5rem 6vw 7rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    break-inside: avoid;
    background: rgba(255,255,255,.5);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .gallery-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 45px rgba(0,0,0,.12);
    }

    .gallery-item img {
        width: 100%;
        display: block;
        transition: transform .45s ease, filter .45s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.02);
        filter: brightness(.92);
    }

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
    color: white;
    font-size: .92rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    animation: lightboxFade .18s ease;
}

    .lightbox img {
        max-width: 92vw;
        max-height: 92vh;
        border-radius: 14px;
        box-shadow: 0 20px 80px rgba(0,0,0,.5);
    }

.loader {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,.1);
    border-top-color: #A45134;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lightboxFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   5. WORKSHOPS (LIST & DETAIL)
========================================================= */
.workshops-hero, .workshop-hero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 7rem 7vw 5rem;
    color: white;
}

.workshops-hero {
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)), url('/images/workshops-hero.webp');
    background-size: cover;
    background-position: center;
}

    .workshops-hero img, .workshop-hero img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.65);
    }

.workshop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.72));
}

.workshops-hero-content, .workshop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

    .workshops-hero-content h1, .workshop-hero-content h1 {
        margin: 0;
        font-size: clamp(3rem, 7vw, 6rem);
        line-height: .94;
        letter-spacing: -.05em;
    }

.workshops-grid-section {
    padding: 3rem 6vw 7rem;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 2rem;
}

.workshop-card {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.workshop-card-image, .workshop-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .workshop-card-image img {
        transition: transform .6s ease, filter .6s ease;
        filter: brightness(.82);
    }

.workshop-card:hover img {
    transform: scale(1.03);
    filter: brightness(.7);
}

.workshop-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.78));
}

.workshop-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem;
    color: white;
}

.workshop-content {
    width: 100%;
    padding: 5rem 7vw 7rem;
}

.workshop-top-grid {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 7rem;
}

.workshop-visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 520px;
    background: #111;
}

    .workshop-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: brightness(.88);
    }

.workshop-description-section {
    max-width: 80%;
    margin: 0 auto;
}

.workshop-section-label {
    display: inline-block;
    margin-bottom: 1rem;
    color: #A45134;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 600;
}

.workshop-description-section h2 {
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: #2B2622;
}

.workshop-description {
    font-size: 1.08rem;
    line-height: 2;
    color: #4f4a46;
}

.back-button {
    position: absolute;
    top: 20%;
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(20,20,20,.35);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

    .back-button:hover {
        background: rgba(20,20,20,.55);
        border-color: rgba(255,255,255,.35);
        transform: translateX(-2px);
    }

    .back-button svg {
        width: 16px;
        height: 16px;
    }

/* =========================================================
   6. MANIFESTO
========================================================= */
.manifesto-hero {
    position: relative;
    height: 92vh;
    min-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 80px 120px 80px;
}

    .manifesto-hero img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.manifesto-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(43,38,34,0.18), rgba(43,38,34,0.72));
}

.manifesto-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    color: var(--background);
}

    .manifesto-hero-content h1 {
        font-size: clamp(3.5rem, 8vw, 7rem);
        line-height: 1.02;
        max-width: 900px;
    }

.manifesto-content {
    max-width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 140px;
}

.manifesto-block {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: start;
}

.manifesto-number {
    font-size: 14px;
    letter-spacing: 0.35em;
    color: var(--primary);
    opacity: 0.8;
    padding-top: 18px;
}

.manifesto-text h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: 40px;
    max-width: 900px;
}

.manifesto-body {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

    .manifesto-body p {
        font-size: 24px;
        line-height: 1.95;
        color: var(--text-muted);
    }

.manifesto-image-wide img {
    width: 100%;
    max-width: 1600px;
    height: 920px;
    object-fit: cover;
    display: block;
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}

.manifesto-final blockquote {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 65px !important;
}

.manifesto-image-ending img {
    width: 72%;
    max-width: 1200px;
    height: 700px;
    object-fit: cover;
    display: block;
    margin: auto;
    border-radius: var(--radius-lg);
    opacity: 0.96;
    box-shadow: 0 24px 70px rgba(0,0,0,0.14);
}

/* =========================================================
   7. CONTATTI
========================================================= */
.contact-hero {
    position: relative;
    height: 72vh;
    min-height: 720px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 80px 110px 80px;
}

    .contact-hero img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.68);
    }

    .contact-hero h1 {
        font-size: 88px;
        line-height: 1.04;
        margin-bottom: 36px;
        max-width: 900px;
    }

    .contact-hero p {
        font-size: 28px;
        line-height: 1.8;
        max-width: 900px;
        color: var(--text-muted);
    }

.contact-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    background: rgba(255,255,255,0.28);
    border: 1px solid rgba(43,38,34,0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 28px;
}

.contact-link {
    font-size: 28px;
    line-height: 1.4;
    color: var(--text);
    word-break: break-word;
}

.contact-text {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-muted);
}

.contact-quote blockquote {
    max-width: 1000px;
    margin: auto;
    font-size: 64px;
    line-height: 1.18;
    font-family: Georgia, serif;
    color: var(--text);
}

/* =========================================================
   8. MEDIA QUERIES RESPONSIVE (CORE DEL SITO)
========================================================= */
@media (max-width: 1100px) {
    .cities-grid, .gallery-grid {
        grid-template-columns: 1fr;
        column-count: 2;
    }
}

@media (max-width: 900px) {
    .section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .gallery-title {
        font-size: 42px;
    }

    .quote blockquote, .manifesto-final blockquote, .contact-quote blockquote {
        font-size: 40px;
    }

    .photo-card {
        min-width: 82vw;
        height: 620px;
    }

    .presentation-image {
        height: 600px;
    }

    .manifesto-hero-content h1, .contact-hero h1 {
        font-size: 52px;
    }

    .manifesto-body p {
        font-size: 20px;
    }

    .manifesto-image-wide img, .manifesto-image-ending img {
        width: 100%;
        height: 520px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .cities-hero {
        padding: 6rem 1.5rem 4rem;
    }

    .cities-grid-section, .city-gallery {
        padding: 1rem 1rem 4rem;
    }

    .city-card {
        height: 380px;
        border-radius: var(--radius-md);
    }

    .city-card-content {
        padding: 1.6rem;
    }

    .cities-hero-content h1, .city-hero h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        column-count: 1;
    }
}
