/*
// ============================================================
// Title: Main Stylesheet (Brand Identity & Responsive Architecture)
// v.0.5 - 06/01/26 15:35
// project: lepetitport.org
// Made by Ferruccio Muran - Media & IT manager
// Built with 0xCore™ Advanced Engine
// ============================================================
*/

/* IMPORT FONTS: Delius (Font Ufficiale per tutto il progetto) */
@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');

:root {
    /* PALETTE UFFICIALE LE PETIT PORT */
    --c-blue: #004B93;
    /* Primary: Titoli, Navbar, Bottoni Primari */
    --c-orange: #D96611;
    /* Accent: CTA, Hover */
    --c-yellow: #F2BC1B;
    /* Highlight: Icone, Badge, Dettagli */
    --c-indigo: #635BA3;
    /* Creative: Elementi secondari */
    --c-lilac: #978BC2;
    /* Soft: Sfondi card */
    --c-red: #C41230;
    /* Alert: Micro-interazioni */
    --c-pink: #E691B0;
    /* Decor: Sfondi */

    --c-text: #333333;
    /* Colore testo principale */
    --c-bg: #ffffff;
    /* Sfondo pagina */
    --c-light: #f8f9fa;
    /* Sfondo sezioni chiare */

    /* SPACING SYSTEM */
    --spacing-sm: 0.5rem;
    /* Spazio piccolo */
    --spacing-md: 1rem;
    /* Spazio standard */
    --spacing-lg: 2rem;
    /* Spazio grande */
    --spacing-xl: 4rem;
    /* Spazio extra-large */

    /* RESPONSIVE BREAKPOINTS */
    --bp-mobile: 480px;
    /* Mobile standard */
    --bp-tablet: 768px;
    /* Tablet */
    --bp-laptop: 1366px;
    /* Laptop */
    --bp-desktop: 1440px;
    /* Desktop */
    --bp-widescreen: 1920px;
    /* Widescreen */

    --hero-text-glow: 0 0 20px rgb(255, 255, 255), 0 0 10px rgb(255, 255, 255);
    /* Doppio alone bianco (sfumato + definito) per massima leggibilità hero */
}

/* ============================================================
   TYPOGRAPHY FINE-TUNING SYSTEM (H1, H2, H3, P)
   Aree centralizzate per il controllo millimetrico dei testi
   ============================================================ */

/* [BASE] - Desktop (> 1440px) */
h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    -webkit-text-stroke: 1.3px currentColor;
    text-shadow: 0 0 1px currentColor;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    -webkit-text-stroke: 1.1px currentColor;
    text-shadow: 0 0 1px currentColor;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.0;
    -webkit-text-stroke: 1.1px currentColor;
    text-shadow: 0 0 1px currentColor;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Simula il BOLD per il font Delius (che ne è sprovvisto) */
strong,
b {
    -webkit-text-stroke: 0.5px currentColor;
    text-shadow: 0 0 1px currentColor;
}

/* [LAPTOP] - Overrides per 1366px (bp-laptop) */
@media (max-width: 1366px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }

    h2 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    p {
        font-size: 1.05rem;
        line-height: 1.3;
    }
}

/* [TABLET] - Overrides per 768px (bp-tablet) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* [MOBILE] - Overrides per 480px (bp-mobile) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}


/* RESET & BASE - Regole globali di azzeramento */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ROOT SETTING - Definizione font size di base aumentata per REM */
html {
    font-size: 18px;
    /* Aumentato di 2pt (da 16px) */
}

/* BODY - Stile globale del corpo pagina e tipografia base */
body {
    font-family: 'Delius', cursive;
    color: var(--c-text);
    line-height: 1.6;
    background-color: var(--c-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-top: 180px;
    /* Spazio per l'header fisso (logo 150px + padding) */
}

/* RESPONSIVE TYPOGRAPHY - Titoli con scaling fluido e Maiuscolo */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Delius', cursive;
    color: var(--c-blue);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    /* Richiesto: Maiuscolo */
    letter-spacing: 1px;
}

/* Gli stili di dimensione (font-size) sono gestiti nel TYPOGRAPHY FINE-TUNING SYSTEM in alto */


/* LINK - Comportamento standard per i collegamenti */
a {
    text-decoration: none;
    color: var(--c-blue);
    transition: 0.3s;
}

/* IMMAGINI - Regole di responsive design per i media */
img {
    max-width: 100%;
    height: auto;
}

/* LAYOUT ENGINE - Container centrale con larghezza fluida gerarchica */
.container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* [MOBILE] Bridge - Sotto 768px il container è fluido */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* [LAPTOP] Bridge - Per test come 1312x848, manteniamo un respiro laterale */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* [WIDE LAPTOP / SMALL DESKTOP] - Sopra il nuovo standard laptop */
@media (min-width: 1366px) {
    .container {
        max-width: 1200px;
    }
}

/* [FULL DESKTOP] */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* [WIDESCREEN] - Per monitor Ultra-Wide e 4K */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* UTILITY: Testo centrato */
.text-center {
    text-align: center;
}

/* UTILITY: Margine inferiore standard */
.mb-2 {
    margin-bottom: var(--spacing-md);
}

/* BOTTONI - Stile base per elementi interattivi */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    text-align: center;
}

/* BOTTONE PRIMARIO - Colore Arancione (Accent) */
.btn-primary {
    background-color: var(--c-orange);
    color: white;
}

.btn-primary:hover {
    background-color: var(--c-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: white;
}

/* BOTTONE OUTLINE - Bordo Blue (Primary) */
.btn-outline {
    border: 2px solid var(--c-blue);
    color: var(--c-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--c-blue);
    color: white;
}

/* HEADER - Barra di navigazione fissa superiore con effetto shrink */
header {
    background: linear-gradient(to bottom, #A4D3E7, #FFFFFF);
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
}

/* Stato ridotto dell'header dopo lo scroll */
header.scrolled {
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* HEADER GRID - Layout a tre aree: Logo (sinistra), Nav (centro), CTA (destra) */
.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Base per le aree del header per bilanciare il centraggio del menu */
.header-item {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Logo allineato a sinistra */
.logo-area {
    justify-content: flex-start;
}

/* Navigazione centrata orizzontalmente */
.nav-area {
    justify-content: center;
    gap: var(--spacing-lg);
}

/* Area CTA e Toggle allineata a destra */
.cta-area {
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* LOGO - Dimensionamento logo in testata con transizione fluida */
.logo img {
    height: 150px;
    width: auto;
    transition: height 0.4s ease-in-out;
}

/* Riduzione logo allo scroll */
header.scrolled .logo img {
    height: 75px;
}

/* NAV LINK - Stile link di navigazione con font Delius e maiuscolo */
header nav a {
    font-family: 'Delius', cursive;
    font-weight: 600;
    color: var(--c-blue);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* NAV LINK HOVER - Feedback interazione nav */
header nav a:hover {
    color: var(--c-orange);
}

/* CTA NAV - Bottone di donazione rapida in testata con font Delius */
header nav a.cta-nav,
.cta-area a.cta-nav {
    font-family: 'Delius', cursive;
    background-color: var(--c-orange);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
}

header nav a.cta-nav:hover,
.cta-area a.cta-nav:hover {
    background-color: var(--c-red);
}

/* MOBILE TOGGLE - Pulsante hamburger invisibile su desktop */
#mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--c-blue);
    font-size: 2.5rem;
    cursor: pointer;
}

/* MOBILE NAV OVERLAY - Menu a pieno schermo moderno e attraente */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    /* Gradiente azzurro in alto e arancione in basso come richiesto */
    background: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 40%, #FFD474 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Cambiato da center per gestire meglio lo spazio dall'alto */
    padding-top: 10vh;
    /* Sposta tutto il blocco verso il basso */
    transition: left 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
}

/* Decorazioni premium per il menu mobile */
.mobile-nav-overlay::before,
.mobile-nav-overlay::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.4;
}

.mobile-nav-overlay::before {
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: var(--c-blue);
}

.mobile-nav-overlay::after {
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: var(--c-orange);
}

/* Stato attivo del menu mobile */
.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    /* Ridotto del 50% */
    width: 100%;
    max-width: 350px;
}

/* LOGO BOX nel menu mobile */
.mobile-logo-box {
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.mobile-logo-box img {
    height: 160px;
    /* Ingrandito per maggiore leggibilità */
    width: auto;
    filter: drop-shadow(0 5px 20px rgba(0, 75, 147, 0.15));
}

.mobile-nav-overlay nav a {
    font-family: 'Delius', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-blue);
    position: relative;
    padding: 8px 0;
    /* Ridotto per compattare il menu */
    width: 100%;
    display: flex;
    /* Assicura il controllo del centraggio */
    justify-content: center;
    /* Forza il centraggio orizzontale */
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav-overlay.active nav a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation per i link */
.mobile-nav-overlay.active nav a:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-nav-overlay.active nav a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active nav a:nth-child(4) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay.active nav a:nth-child(5) {
    transition-delay: 0.4s;
}

.mobile-nav-overlay nav a:hover {
    color: var(--c-orange);
    transform: scale(1.1);
}

.mobile-nav-overlay nav a.cta-nav {
    margin-top: 2rem;
    background: var(--c-orange);
    color: white !important;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.6rem;
    box-shadow: 0 15px 35px rgba(217, 102, 17, 0.3);
    transform: translateY(20px);
}

.mobile-nav-overlay.active nav a.cta-nav {
    transform: translateY(0);
}

/* Info aggiuntive nel menu mobile per un tocco premium */
.mobile-footer-info {
    margin-top: 4rem;
    text-align: center;
    color: var(--c-blue);
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

.mobile-nav-overlay.active .mobile-footer-info {
    opacity: 0.8;
}

.mobile-footer-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ADATTAMENTO RESPONSIVO HEADER */
@media (max-width: 1024px) {
    .nav-area {
        display: none;
    }

    #mobile-toggle {
        display: block;
    }

    .logo img {
        height: 100px;
    }

    header.scrolled .logo img {
        height: 60px;
    }

    body {
        padding-top: 130px;
    }
}

@media (max-width: 480px) {
    .cta-area a.cta-nav {
        display: none;
    }

    .logo img {
        height: 80px;
    }

    header.scrolled .logo img {
        height: 50px;
    }

    body {
        padding-top: 110px;
    }
}

/* FOOTER - Struttura sdoppiata: Info e Copyright */
footer {
    margin-top: auto;
}

/* FOOTER INFO - Sezione principale con gradient e 3 colonne */
.footer-info {
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFD474 100%);
    min-height: 320px;
    padding: 4rem 0;
    color: var(--c-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Colonna 1: Identità e 5x1000 */
.footer-logo img {
    height: 90px;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 320px;
    color: var(--c-blue);
    opacity: 0.9;
}

.footer-5x1000 {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 15px;
    border: 1px dashed var(--c-blue);
    display: inline-block;
}

.footer-5x1000 .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.tax-code-footer {
    font-size: 1.25rem;
    font-family: 'Delius', cursive;
}

/* Colonna 2: Mappa */
.map-container {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%) contrast(1.1) brightness(1.05) hue-rotate(185deg) saturate(0.9);
}

.map-caption,
.map-address {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    text-align: center;
    font-weight: 600;
    opacity: 0.8;
}

.map-address {
    font-family: 'Delius', cursive;
    font-size: 0.95rem;
    color: var(--c-blue);
    margin-top: 10px;
    opacity: 1;
    line-height: 1.4;
}

/* Colonna 3: Links & Social */
.links-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .links-col {
        align-items: flex-end;
        text-align: right;
    }

    .footer-links {
        align-items: flex-end;
    }
}

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    color: var(--c-blue);
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 75, 147, 0.1);
    display: inline-block;
    padding-bottom: 3px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--c-blue);
    font-weight: 600;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--c-orange);
    padding-left: 5px;
}

.highlight-dona {
    color: var(--c-orange) !important;
    text-decoration: underline;
}

.social-block {
    margin-top: 2rem;
}

/* SOCIAL ICONS */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--c-blue);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--c-orange);
    color: white;
    box-shadow: 0 5px 15px rgba(217, 102, 17, 0.3);
}

/* COPYRIGHT BAR - Dark Ocher Section */
.copyright-bar {
    background-color: #B18243;
    /* Ocra brand scuro */
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.footer-copy-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.copyright-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.copyright-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600;
}

.copyright-links a:hover {
    opacity: 0.7;
}

/* Ottimizzazione Mobile Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .map-container {
        height: 200px;
        /* Altezza controllata su mobile */
    }

    .footer-links {
        align-items: center;
    }

    .copyright-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* GRID SYSTEM - Griglia responsiva per le card progetti (Refactoring Flexbox per centratura orfani) */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centra il contenitore e gli elementi orfani */
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

/* Base per la card (Mobile: 1 colonna) */
.card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--c-indigo);
    transition: transform 0.3s;
    flex: 1 1 100%;
    /* Occupa tutto lo spazio su mobile */
    max-width: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--c-indigo);
    margin-bottom: 0.5rem;
}

/* GRID TABLET & LAPTOP: 2 colonne */
@media (min-width: 768px) {
    .card {
        flex: 0 1 calc(50% - (var(--spacing-lg) / 2));
    }
}

/* GRID DESKTOP: 3 colonne (> 1366px) */
@media (min-width: 1366px) {
    .card {
        flex: 0 1 calc(33.333% - (var(--spacing-lg) * 2 / 3));
    }
}

/* GRID WIDESCREEN: 4 colonne (> 1920px) */
@media (min-width: 1920px) {
    .card {
        flex: 0 1 calc(25% - (var(--spacing-lg) * 3 / 4));
    }
}



/* CARD IMAGE - Contenitore per immagini pilastri quadrate (1:1) */
.card-image-wrapper {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fdfdfd;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66%;
    /* Ridotto di circa 1/3 rispetto alla larghezza card */
    margin-left: auto;
    margin-right: auto;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    /* Spazio interno per evitare che tocchino i bordi */
}

/* PROJECT LIST IMAGE - Layout per la lista dei progetti */
.project-image-box {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    /* Ridotto di 1/3 rispetto a 450px */
}

.project-image-box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: #fdfdfd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* PROJECT DETAIL IMAGE - Stile per l'immagine nella pagina di approfondimento */
.project-detail-image {
    display: block;
    width: 80%;
    aspect-ratio: 1.62 / 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem auto 4rem auto;
    background: #fdfdfd;
    clear: both;
}


.project-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PROJECT HEADER PREMIUM - Redesign dell'header di approfondimento richiesto */
.project-header-premium {
    background: linear-gradient(135deg, #A4D3E7 0%, #FFFFFF 100%);
    padding: 3rem;
    border-radius: 30px;
    /* Angoli arrotondati ampi richiesti */
    margin-bottom: 4rem;
    box-shadow: 0 15px 45px rgba(164, 211, 231, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    /* Centratura testi */
}

.project-header-premium .header-title-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    /* Centratura Flex */
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-header-premium h1 {
    /* Eredita tutto dal TYPOGRAPHY SYSTEM */
    margin-bottom: 0.5rem;
    color: var(--c-blue);
}

.project-header-premium .badge {
    vertical-align: middle;
    padding: 6px 18px;
    font-size: 0.85rem;
}

.project-header-premium .short-desc {
    /* Eredita font-size dal TYPOGRAPHY SYSTEM (come paragrafo) */
    color: var(--c-blue);
    opacity: 0.75;
    max-width: 950px;
    margin: 1.2rem auto 0 auto;
    /* Centrata col margine */
}




/* HERO HOME - Layout split premium fedele al mockup */
.hero-home {
    background-color: #f8fafd;
    /* Sfondo chiarissimo coordinato */
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    border-bottom: 1px solid #edf2f7;
}

.hero-grid-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

/* Colonna sinistra: Immagine */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 75, 147, 0.15));
    transform: perspective(1000px) rotateY(2deg);
    /* Leggero tocco 3D */
}

/* Colonna destra: Testi */
.hero-content {
    flex: 1.2;
    text-align: left;
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    color: var(--c-blue);
}

.hero-content p {
    /* Eredita font-size e line-height dal TYPOGRAPHY SYSTEM */
    color: #4A5568;
    margin-bottom: var(--spacing-lg);
    max-width: 650px;
}

/* Azioni: Bottoni affiancati */
.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* RESPONSIVE HERO - Adattamento Tablet e Mobile */
@media (max-width: 768px) {
    .hero-grid-home {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        height: 250px;
        transform: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* HERO GENERICA (per altre pagine) */
.hero {
    background-color: var(--c-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero h1,
.hero p {
    text-shadow: var(--hero-text-glow);
}

/* CTA BOX - Sezione colorata per inviti all'azione (5x1000) */
.cta-section {
    background: linear-gradient(135deg, rgba(217, 102, 17, 0.85) 0%, rgba(242, 188, 27, 0.8) 100%),
        url('../img/lepetitport-dona-background.webp');
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 2rem;
    text-align: center;
    border-radius: 30px;
    margin: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Overlay layer logic handled via background gradient */
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: white !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-text {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
}

.cta-5x1000 {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.cta-label {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tax-code-card,
.copy-card {
    background: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px dashed var(--c-yellow);
}

.tax-code-card:hover,
.copy-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-style: solid;
}

.tax-code,
.tax-code-card .copy-text,
.copy-card .copy-text {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--c-blue);
    letter-spacing: 2px;
}

.copy-icon {
    color: var(--c-blue);
    font-size: 1.8rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.tax-code-card:hover .copy-icon,
.copy-card:hover .copy-icon {
    opacity: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-primary {
    background-color: var(--c-blue);
    /* Contrasto sul rosa/arancio */
}

.cta-actions .btn-primary:hover {
    background-color: white;
    color: var(--c-blue);
}

/* ============================================================
   UTILITIES BASATE SUL MOOD (v.0.5)
   ============================================================ */

/* Colore Indaco (Creative) */
.color-creative {
    color: var(--c-indigo);
}

/* Sfondo Lilla (Soft) */
.bg-soft {
    background-color: var(--c-lilac);
    color: white;
}

/* Sfondo Rosa (Decor) */
.bg-decor {
    background-color: var(--c-pink);
}

/* Colore Rosso (Alert) */
.text-accent-red {
    color: var(--c-red);
}

/* Punto decorativo Rosso Rubino */
.dot-accent::after {
    content: ".";
    color: var(--c-red);
    font-weight: 700;
}

/* LINK SECONDARI - Stile tratteggiato creativo */
.link-secondary {
    color: var(--c-indigo);
    border-bottom: 1px dashed var(--c-indigo);
    font-size: 0.9rem;
}

.link-secondary:hover {
    color: var(--c-lilac);
    border-bottom-color: var(--c-lilac);
}

/* CHI SIAMO - Bio Layout (Roberto) */
.bio-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.bio-image {
    flex: 0 0 400px;
    /* Aumentato del 33% per dare più importanza al ritratto */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.bio-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bio-text {
    flex: 1;
}

@media (max-width: 768px) {
    .bio-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .bio-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* GALLERY SYSTEM (Grid) */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* LIGHTBOX SYSTEM - Vanilla Implementation */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Indicatore cursore per immagini cliccabili */
.lightbox-trigger {
    cursor: zoom-in;
}