/* =====================================================================
   STUDIO LEGALE GOBBI FRATTINI — Custom Stylesheet
   Stack: Bootstrap 5 + Flight PHP
   ===================================================================== */

/* --------------------------------------------------------------------- */
/* 0. WEB FONTS — EB Garamond (self-hosted, variable)                    */
/* --------------------------------------------------------------------- */
@font-face {
    font-family: 'EB Garamond';
    src: url('./EB_Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('./EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 800;
    font-style: italic;
    font-display: swap;
}

/* --------------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                       */
/* --------------------------------------------------------------------- */
:root {
    --clr-dark:         #1c1a17;
    --clr-primary:      #2d2416;
    --clr-gold:         #C68713;
    --clr-gold-light:   #d4af6a;
    --clr-gold-pale:    #f0e0b0;
    --clr-cream:        #f5ede0;
    --clr-cream-light:  #faf7f0;
    --clr-text:         #2c2820;
    --clr-text-muted:   #6b6157;
    --clr-white:        #ffffff;

    --ff-serif:         'EB Garamond', Georgia, serif;
    --ff-sans:          'Century Gothic', 'Trebuchet MS', Arial, sans-serif;

    --shadow-sm:        0 2px 8px rgba(0, 0, 0, .12);
    --shadow-md:        0 4px 20px rgba(0, 0, 0, .18);
    --shadow-lg:        0 8px 40px rgba(0, 0, 0, .24);

    --radius:           0.5rem;
    --radius-lg:        1rem;

    --transition:       0.3s ease;
}

/* --------------------------------------------------------------------- */
/* 2. BASE & TYPOGRAPHY                                                   */
/* --------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--ff-sans);
    color: var(--clr-text);
    background-color: var(--clr-cream-light);
    line-height: 1.7;
    max-width: 100%;
}

h1, h2, h3, h4, h5 {
    font-family: var(--ff-serif);
    font-weight: 400;
    line-height: 1.25;
}

a {
    color: var(--clr-gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--clr-gold-light);
}

/* Utility */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* --------------------------------------------------------------------- */
/* 3. NAVBAR                                                              */
/* --------------------------------------------------------------------- */
#main-nav {
    background-color: #f2e5d2;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    transition: box-shadow var(--transition), background-color var(--transition);
}

#main-nav.scrolled {
    box-shadow: var(--shadow-md);
    background-color: #f2e5d2;
}

.brand-name {
    font-family: var(--ff-serif);
    font-size: 2rem;
    color: var(--clr-gold);
    letter-spacing: .04em;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}

.navbar-nav .nav-link {
    color: #000;
    font-size: .9rem;
    letter-spacing: .02em;
    padding: .4rem .75rem;
    transition: color var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--clr-gold-light);
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, .3);
    color: var(--clr-gold);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(198, 135, 19, .25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------- */
/* 4. BUTTONS                                                             */
/* --------------------------------------------------------------------- */
.btn-gold {
    background-color: var(--clr-gold);
    color: var(--clr-white);
    border: 2px solid var(--clr-gold);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .55rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color var(--transition), border-color var(--transition), transform .15s ease;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--clr-gold-light);
    border-color: var(--clr-gold-light);
    color: var(--clr-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--clr-gold);
    border: 2px solid var(--clr-gold);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .55rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color var(--transition), color var(--transition), transform .15s ease;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background-color: var(--clr-gold);
    color: var(--clr-white);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------- */
/* 5. HERO                                                                */
/* --------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('/Foto/Studio-B-01.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(29, 26, 23, .85) 0%,
        rgba(45, 36, 22, .7) 60%,
        rgba(29, 26, 23, .5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--clr-white);
}

.hero-quote {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 2.0rem;
    color: var(--clr-gold-light);
    margin-bottom: 1.5rem;
}

.quote-mark {
    font-size: 1.4em;
    line-height: 0;
    vertical-align: -0.2em;
}

.quote-author {
    font-size: .8rem;
    font-style: normal;
    opacity: .75;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-name {
    color: var(--clr-gold-light);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    max-width: 500px;
    font-style: italic;
}

.hero-cta .btn {
    min-width: 12.5rem;
    padding: .8rem 1.75rem;
    font-family: var(--ff-sans);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-portrait {
    width: 340px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(198, 135, 19, .4);
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* Scroll hint arrow */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.7);
    border-bottom: 2px solid rgba(255,255,255,.7);
    transform: rotate(45deg) translateY(-3px);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* --------------------------------------------------------------------- */
/* 6. SECTION LABELS & TITLES                                             */
/* --------------------------------------------------------------------- */
.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: .5rem;
}

.section-label-light {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--clr-gold-light);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    /*max-width: 640px;*/
}

/* Section backgrounds */
.section-light  { background-color: var(--clr-cream-light); }
.section-cream  { background-color: var(--clr-cream); }
.section-dark   { background-color: var(--clr-primary); color: var(--clr-white); }

/* --------------------------------------------------------------------- */
/* 7. CHI SIAMO — Portrait                                               */
/* --------------------------------------------------------------------- */
.portrait-round {
    width: 380px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 3/4;
    border: 3px solid var(--clr-gold-pale);
}

.credentials-list li {
    padding: .3rem 0 .3rem 1.4rem;
    position: relative;
    font-size: .92rem;
    color: var(--clr-text-muted);
}

.credentials-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--clr-gold);
}

/* --------------------------------------------------------------------- */
/* 8. VALUE CARDS                                                         */
/* --------------------------------------------------------------------- */
.value-card {
    background-color: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: background-color var(--transition), transform var(--transition);
}

.value-card:hover {
    background-color: rgba(255, 255, 255, .1);
    transform: translateY(-4px);
}

.value-card--accent {
    background-color: rgba(198, 135, 19, .15);
    border-color: rgba(198, 135, 19, .35);
}

.value-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: .75rem;
}

.value-title {
    font-family: var(--ff-serif);
    font-size: 1.35rem;
    color: var(--clr-gold-light);
    margin-bottom: .6rem;
}

.value-text {
    font-size: .93rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

/* --------------------------------------------------------------------- */
/* 9. AREA CARDS                                                          */
/* --------------------------------------------------------------------- */
.area-card {
    background: var(--clr-white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.area-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: .6rem;
}

.area-title {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.area-desc {
    font-size: .85rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------- */
/* 10. STUDIO GALLERY                                                     */
/* --------------------------------------------------------------------- */
.section-studio {
    background: var(--clr-dark);
    line-height: 0; /* collapse inline-block gaps */
}

.studio-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
}

.studio-gallery-shell {
    position: relative;
}

.studio-gallery-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
}

.studio-gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    display: block;
    flex: 0 0 calc(20% - 2.4px);
    width: calc(20% - 2.4px);
    margin-right: 0;
    scroll-snap-align: start;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: var(--clr-dark);
    display: block;
    width: 100%;
}

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

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

.gallery-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    background: rgba(29, 26, 23, 0);
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    pointer-events: none;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    background: rgba(29, 26, 23, .45);
}

.studio-gallery-control {
    width: 4rem;
    opacity: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    padding: 0;
}

.studio-gallery-control-prev {
    left: 0;
}

.studio-gallery-control-next {
    right: 0;
}

.studio-gallery-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin: 0 .75rem;
    border-radius: 50%;
    background: rgba(28, 26, 23, .7);
    border: 1px solid rgba(212, 175, 106, .35);
    color: var(--clr-white);
    font-size: 2rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.studio-gallery-control:hover .studio-gallery-control-icon,
.studio-gallery-control:focus .studio-gallery-control-icon {
    background: rgba(198, 135, 19, .88);
    color: var(--clr-white);
    transform: scale(1.04);
}

/* Gallery Lightbox Modal */
.gallery-modal-content {
    background: rgba(0, 0, 0, .95);
    border: none;
    border-radius: var(--radius);
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 10;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    color: var(--clr-white);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,.25);
}

.gallery-modal-img {
    max-height: 82vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: calc(var(--radius) - 1px);
}

.gallery-modal-caption {
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: .75rem 0 1rem;
}

/* Responsive gallery */
@media (max-width: 991px) {
    .gallery-slide {
        flex-basis: calc(33.3333% - 2px);
        width: calc(33.3333% - 2px);
    }
}

@media (max-width: 575px) {
    .gallery-slide {
        flex-basis: calc(50% - 1.5px);
        width: calc(50% - 1.5px);
    }

    .studio-gallery-control {
        width: 3rem;
    }

    .studio-gallery-control-icon {
        width: 2.3rem;
        height: 2.3rem;
        margin: 0 .4rem;
        font-size: 1.7rem;
    }
}

/* --------------------------------------------------------------------- */
/* 11. APPROCCIO                                                          */
/* --------------------------------------------------------------------- */
.approccio-img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------- */
/* 12. CTA SECTION                                                        */
/* --------------------------------------------------------------------- */
.section-cta {
    background-color: var(--clr-dark);
    color: var(--clr-white);
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--clr-white);
}

.cta-sub {
    color: rgba(255, 255, 255, .72);
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------- */
/* 13. PAGE HEADER (inner pages)                                          */
/* --------------------------------------------------------------------- */
.page-header {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 4rem 0 2.5rem;
}

.page-header .breadcrumb-item a { color: var(--clr-gold-light); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.page-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: .5rem;
    font-weight: 400;
}

.page-sub {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    margin: 0;
}

/* --------------------------------------------------------------------- */
/* 14. CONTATTI                                                           */
/* --------------------------------------------------------------------- */
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .1rem;
    color: var(--clr-gold);
    background-color: rgba(198, 135, 19, .12);
    border: 1px solid rgba(198, 135, 19, .18);
    border-radius: 50%;
}

.contact-form .form-control {
    border-color: rgba(0,0,0,.15);
    border-radius: var(--radius);
    background-color: var(--clr-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--clr-gold);
    box-shadow: 0 0 0 3px rgba(198, 135, 19, .2);
}

/* --------------------------------------------------------------------- */
/* 15. PARTNER CARDS                                                      */
/* --------------------------------------------------------------------- */
.partner-card {
    background: var(--clr-white);
    border-left: 3px solid var(--clr-gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.partner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.partner-area {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--clr-primary);
    margin-bottom: .5rem;
}

.partner-desc {
    font-size: .88rem;
    color: var(--clr-text-muted);
    margin: 0;
    line-height: 1.6;
}

.partner-feature {
    background: linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(245, 237, 224, .92) 100%);
    border: 1px solid rgba(198, 135, 19, .18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.partner-feature-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.partner-feature-body {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-feature-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: .45rem;
    color: var(--clr-primary);
}

.partner-feature-role {
    color: var(--clr-gold);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.partner-feature-text {
    color: var(--clr-text-muted);
    font-size: .98rem;
    margin-bottom: 1rem;
}

.partner-feature-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: .6rem;
    color: var(--clr-text-muted);
    font-size: .92rem;
}

.partner-feature-list li:last-child {
    margin-bottom: 0;
}

.partner-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--clr-gold);
}

@media (max-width: 991.98px) {
    .partner-feature-image {
        min-height: 280px;
    }

    .partner-feature-body {
        padding: 1.5rem;
    }
}

/* --------------------------------------------------------------------- */
/* 16. STATIC CONTENT PAGES                                              */
/* --------------------------------------------------------------------- */
.static-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: var(--clr-primary);
}

.static-content h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    color: var(--clr-primary);
}

.static-content p,
.static-content li {
    font-size: .95rem;
    color: var(--clr-text-muted);
}

.static-content table {
    font-size: .88rem;
}

/* --------------------------------------------------------------------- */
/* 17. FOOTER                                                             */
/* --------------------------------------------------------------------- */
.site-footer {
    background-color: var(--clr-dark);
    color: rgba(255, 255, 255, .7);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    color: var(--clr-gold-light);
}

.footer-tagline {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}

.footer-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: .75rem;
}

.footer-links li { margin-bottom: .35rem; }
.footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-gold-light); }

.site-footer .text-muted,
.site-footer .footer-links .text-muted,
.site-footer small.text-muted,
.site-footer li.text-muted {
    color: rgba(255, 255, 255, .68) !important;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
    margin: 2rem 0 1.25rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, .45);
    transition: color var(--transition);
}

.footer-legal-link:hover { color: var(--clr-gold-light); }

@media (max-width: 767.98px) {
    .hero-cta {
        gap: .75rem !important;
    }

    .hero-cta .btn {
        width: 100%;
        min-width: 0;
        font-size: .9rem;
        padding: .78rem 1.25rem;
    }
}
