/* === FONTS === */

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfairdisplay.woff2') format('woff2');
    font-weight: 400 700; /* range disponibile */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Great Vibes';
    src: url('/assets/fonts/greatvibes.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ================= BASE ================= */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
	background: #f5f1e8;
    color: #2b2b2b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin: 30px 0;
}




/* =========================================================
   HEADER RESPONSIVE COMPLETO
========================================================= */

/* =========================
   HEADER BASE
========================= */

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 15px 40px;

    background: #f5f1e8;

    border-bottom: 1px solid #ddd6c8;

    position: relative;
    z-index: 1000;
}

.header-left {
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.menu {
    margin: 0;
    padding: 0;
}

/* =========================
   LOGO
========================= */

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    line-height: 1;
    color: #2b2b2b;
}

/* =========================
   MENU DESKTOP
========================= */

.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu > a,
.desktop-menu > .menu-item-dropdown {
    margin-left: 25px;
}

.desktop-menu > a:first-child {
    margin-left: 0;
}

.desktop-menu a {
    text-decoration: none;
    color: #3a3a3a;
    font-size: 14px;
}

.desktop-menu a.active {
    border-bottom: 1px solid #867f65;
    padding-bottom: 2px;
    font-weight: 400;
}

/* =========================
   DROPDOWN DESKTOP
========================= */

.menu-item-dropdown {
    position: relative;
}

.menu-dropdown-trigger {
    display: inline-flex;
    align-items: center;
}

/* primo dropdown */

.services-dropdown {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    min-width: 260px;

    background: #f5f1e8;

    border: 1px solid #ddd6c8;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    display: none;

    z-index: 9999;
}

.menu-item-dropdown:hover > .services-dropdown {
    display: block;
}

/* voci */

.dropdown-link,
.dropdown-category {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 18px;

    text-decoration: none;
    color: #3a3a3a;

    font-size: 14px;

    background: #f5f1e8;

    white-space: nowrap;

    cursor: pointer;
}

.dropdown-link:hover,
.dropdown-category:hover {
    background: #ece5d8;
}

/* submenu */

.dropdown-category-group {
    position: relative;
}

.dropdown-category::after {
    content: "›";
    margin-left: 20px;
    color: #8a7f6a;
}

.services-submenu {
    position: absolute;

    top: -1px;
    left: 100%;

    min-width: 260px;

    background: #f5f1e8;

    border: 1px solid #ddd6c8;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    display: none;

    z-index: 10000;
}

.dropdown-category-group:hover > .services-submenu {
    display: block;
}

/* link submenu */

.dropdown-sublink {
    display: block;

    padding: 12px 18px;

    text-decoration: none;
    color: #3a3a3a;

    font-size: 14px;

    white-space: nowrap;

    background: #f5f1e8;
}

.dropdown-sublink:hover {
    background: #ece5d8;
}

/* separatori */

.dropdown-category-group:not(:last-child),
.dropdown-link:not(:last-child) {
    border-bottom: 1px solid #e6dfd2;
}

/* =========================
   CTA DESTRA
========================= */

.menu-cta-photographers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-cta-photographers a:not(.menu-link-fotografi) {
    padding: 6px 10px;

    border: 1px solid #c2bbab;

    background: #f4ebe6;

    text-decoration: none;

    color: #2b2b2b;

    font-size: 13px;

    transition: 0.2s;
}

.menu-cta-photographers a:hover {
    background: #e5ded0;
}

.menu-link-fotografi {
    text-decoration: none;
    color: #8a7f6a;
    font-size: 14px;
    font-weight: 600;
}

.photographer-welcome {
    font-size: 13px;
    color: #5a5a5a;
}

.cta-link {
    text-decoration: none;
    color: #8a7f6a;
}

/* =========================================================
   MOBILE
========================================================= */

/* hamburger */

.mobile-menu-toggle {
    display: none;

    background: none;
    border: none;

    font-size: 30px;

    cursor: pointer;

    color: #2b2b2b;
}

/* overlay */

.mobile-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.45);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;

    z-index: 9998;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* drawer */

.mobile-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: 320px;
    max-width: 90%;

    height: 100vh;

    background: #f5f1e8;

    transform: translateX(100%);

    transition: transform 0.28s ease;

    z-index: 9999;

    overflow-y: auto;

    box-shadow: -10px 0 25px rgba(0,0,0,0.08);
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* header drawer */

.mobile-drawer-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 22px 20px;

    border-bottom: 1px solid #ddd6c8;
}

.mobile-drawer-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
}

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

.mobile-close {
    border: none;
    background: none;

    font-size: 26px;

    cursor: pointer;
}

/* nav mobile */

.mobile-nav {
    display: flex;
    flex-direction: column;

    padding: 10px 0;
}

.mobile-nav > a,
.mobile-services-toggle,
.mobile-category-toggle {
    display: flex;

    justify-content: space-between;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    padding: 16px 22px;

    border: none;
    background: none;

    text-decoration: none;

    color: #2b2b2b;

    font-size: 15px;

    text-align: left;

    border-bottom: 1px solid #e8e1d5;

    cursor: pointer;
}

/* hover mobile */

.mobile-nav a:hover,
.mobile-services-toggle:hover,
.mobile-category-toggle:hover {
    background: #ece5d8;
}

/* menu servizi mobile */

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

.mobile-services-menu.open {
    display: block;
}

/* categorie mobile */

.mobile-submenu {
    display: none;

    background: #efe8dc;
}

.mobile-submenu.open {
    display: block;
}

/* link submenu */

.mobile-submenu-link,
.mobile-service-link {
    display: block;

    padding: 14px 35px;

    text-decoration: none;

    color: #4a4a4a;

    font-size: 14px;

    border-bottom: 1px solid #e2dbcf;
}

.mobile-submenu-link:hover,
.mobile-service-link:hover {
    background: #e6dfd2;
}

/* account mobile */

.mobile-account {
    padding: 20px;

    border-top: 1px solid #ddd6c8;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.mobile-account a {
    text-decoration: none;

    padding: 12px 14px;

    border: 1px solid #d4cbbb;

    background: #f4ebe6;

    color: #2b2b2b;

    font-size: 14px;
}

.mobile-user-box {
    margin-bottom: 10px;

    color: #5a5a5a;

    font-size: 14px;
}



/* ================= TITOLI ===================*/

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

/* ================= CTA ================= */
.cta-bar {
    font-weight: 300;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 50px;
}

.cta-bar a {
    font-weight: 300;
    padding: 10px 18px;
    background: #f4ebe6;
    border: 1px solid #c2bbab;
    text-decoration: none;
    color: #2b2b2b;
    font-size: 14px;
}

.cta-bar a:hover {
    background: #e5ded0;
}


/* ================= FOOTER ================= */

.footer {
    border-top: 1px solid #867f65;
    background: #e6dccb; /* leggermente più caldo e leggibile del tuo */
    color: #3a3a3a;
    padding: 60px 20px 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: start;
}

/* BRAND */

.footer-brand p {
    color: #5a5a5a;
    line-height: 1.5;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-center {
    text-align: center;
    justify-self: center;
}

.footer-right {
    text-align: right;
    justify-self: end;
}

.footer-left {
    text-align: left;
    justify-self: start;
}

/* TITOLI */
.footer-sitename {
    font-family: 'Great Vibes', cursive;
    line-height: 1;
    font-size: 26px;
    margin-bottom: 12px;
    color: #2b2b2b;
    letter-spacing: 0.6px;
	margin: 0 0 10px 0;
}

.footer-title {
    font-size: 13px;
    margin-bottom: 12px;
    color: #2b2b2b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
	margin: 4px 0 10px 0;
}

/* LINK */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* COLONNE SINISTRA */
.footer-left .footer-links {
    align-items: flex-start;
}

/* COLONNA CENTRALE */
.footer-center .footer-links {
    align-items: center;
}

/* COLONNE DESTRA */
.footer-right .footer-links {
    align-items: flex-end;
}

/* TESTI */
.footer-right .footer-title {
    text-align: right;
}

.footer-left .footer-title {
    text-align: left;
}

.footer-center .footer-title,
.footer-center .footer-sitename,
.footer-center p {
    text-align: center;
}

.footer-links a {
    color: #4a4a4a;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #867f65;
}

/* SOCIAL */

.footer-social {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.footer-social a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 13px;
	text-align: center;
}

.footer-social a:hover {
    color: #867f65;
}
/* FOOTER BOTTOM */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #c9bea9;
    text-align: center;
    color: #6b6b6b;
    font-size: 12px;
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* =========================
   MOBILE SMART (NO MERDONE)
========================= */
@media (max-width: 768px) {

    .header {
        display: flex;

        justify-content: space-between;
        align-items: center;

        padding: 15px 20px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    /* nasconde menu desktop */

    .menu.desktop-menu,
    .desktop-right {
        display: none !important;
    }

    /* hamburger */

    .mobile-menu-toggle {

        display: flex;

        width: 44px;
        height: 44px;

        padding: 0;
        margin: 0;

        border: none;
        background: transparent;

        color: #2b2b2b;

        font-size: 30px;
        line-height: 1;

        font-family: inherit;

        align-items: center;
        justify-content: center;

        cursor: pointer;

        flex-shrink: 0;
    }

    /* logo */

    .logo {
        font-size: 30px;
        white-space: nowrap;
    }

    /* altri elementi */

    .hero img {
        height: 220px;
    }

    .cta-bar {
        flex-direction: column;
    }

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

    .grid {
        grid-template-columns: 1fr;
    }
	
.footer {
        padding: 40px 15px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-col {
        border-bottom: 1px solid #c9bea9;
        padding: 10px 0;
    }

    .footer-col.open .footer-links {
		max-height: 300px;
		opacity: 1;
    }
	
    .footer-col.open .footer-title::after {
        transform: rotate(90deg);
    }
	
    /* TITOLI PIÙ “CLICKABLE LOOK” */
    .footer-title {
        font-size: 13px;
        margin: 0;
        padding: 10px 0;
        position: relative;
        cursor: pointer;
    }

    /* freccina visiva (senza JS) */
    .footer-title::after {
        content: "›";
        position: absolute;
        right: 0;
        color: #867f65;
        font-size: 16px;
        float: right;
        transition: transform 0.2s ease;
    }

    /* CONTENUTO COMPATTATO */
    .footer-links {
        margin-top: 6px;
        padding-left: 2px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition:
        max-height 0.25s ease,
        opacity 0.2s ease;
		display: flex;
		flex-direction: column;
    }

    .footer-links a {
        font-size: 13px;
        padding: 6px 0;
    }

    /* BRAND più compatto */
    .footer-sitename {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .footer-brand p {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-social {
        margin-top: 10px;
        gap: 10px;
        flex-wrap: wrap;
    }

}