/*
 * Stile per FR Visual Design di Francesca Rossello
 * Tema scuro con accenti dorati per un look moderno e professionale.
 */

/* Reset di base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --gold: #d4af37;
    --gold-bright: #f1d784;
    --gold-soft: rgba(212, 175, 55, 0.16);
    --bg: #090807;
    --bg-soft: #0f0d0b;
    --panel: #15130f;
    --panel-deep: #100f0d;
    --panel-warm: #1c1712;
    --ivory: #f4efe5;
    --text-muted: #cfc6b8;
    --text-soft: #aaa095;
    --line-soft: rgba(212, 175, 55, 0.18);
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.34);
    --nav-bg: rgba(9, 8, 7, 0.88);
    --nav-bg-scrolled: rgba(9, 8, 7, 0.97);
    --section-luminous: #15120f;
    --card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--panel);
    --sidebar-width: 238px;
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: "Aptos", "Segoe UI", Arial, Helvetica, sans-serif;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-fast: 0.34s;
    --motion-medium: 0.9s;
    --motion-slow: 1.1s;
}

html[data-theme="light"] {
    --gold: #d4af37;
    --gold-bright: #f1d784;
    --gold-soft: rgba(212, 175, 55, 0.15);
    --bg: #f4efe5;
    --bg-soft: #fbf4e8;
    --panel: #fff9ec;
    --panel-deep: #eee4d2;
    --panel-warm: #f8ecd8;
    --ivory: #201a14;
    --text-muted: #504840;
    --text-soft: #6f665e;
    --line-soft: rgba(212, 175, 55, 0.2);
    --shadow-soft: 0 24px 64px rgba(67, 51, 32, 0.13);
    --nav-bg: rgba(251, 244, 232, 0.92);
    --nav-bg-scrolled: rgba(251, 244, 232, 0.98);
    --section-luminous: #fbf4e8;
    --card-surface: linear-gradient(180deg, rgba(255, 249, 236, 0.96), rgba(248, 236, 216, 0.96));
}

body {
    font-family: var(--font-body);
    background:
        linear-gradient(180deg, rgba(23, 19, 15, 0.82) 0%, var(--bg) 32%, var(--bg) 100%);
    background-color: var(--bg);
    color: var(--ivory);
    line-height: 1.6;
}

html[data-theme="light"] body {
    background:
        linear-gradient(180deg, #fbf4e8 0%, var(--bg) 36%, var(--bg) 100%);
    background-color: var(--bg);
}

main {
    display: block;
}

.skip-link {
    background-color: var(--gold);
    color: var(--bg);
    font-weight: 800;
    left: 16px;
    padding: 10px 14px;
    position: fixed;
    text-decoration: none;
    top: 12px;
    transform: translateY(-160%);
    z-index: 2000;
}

.skip-link:focus {
    transform: translateY(0);
}

a,
button,
input,
select,
textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-single main > section:first-child > h1,
.page-single main > section:first-child > .section-intro,
.page-single main > section:first-child > .portfolio-explanation,
.page-single main > section:first-child > .about-content,
.page-single main > section:first-child > .method-cards,
.page-single main > section:first-child > .services-grid,
.page-single main > section:first-child > .portfolio-grid,
.page-single main > section:first-child > .blog-list,
.page-single main > section:first-child > .contact-wrapper,
.page-single main > section:first-child > .project-hero,
.page-single main > section:first-child > .project-gallery-section,
.page-single main > section:first-child > .post-content {
    animation: heroReveal 0.85s ease both;
}

.page-single main > section:first-child > h1 {
    animation-delay: 0.08s;
}

.page-single main > section:first-child > .section-intro {
    animation-delay: 0.2s;
}

.page-single main > section:first-child > .portfolio-explanation,
.page-single main > section:first-child > .about-content,
.page-single main > section:first-child > .method-cards,
.page-single main > section:first-child > .services-grid,
.page-single main > section:first-child > .blog-list,
.page-single main > section:first-child > .contact-wrapper,
.page-single main > section:first-child > .project-hero,
.page-single main > section:first-child > .post-content {
    animation-delay: 0.34s;
}

.page-single main > section:first-child > .portfolio-grid,
.page-single main > section:first-child > .project-gallery-section {
    animation-delay: 0.46s;
}

/* Nei template a pagina singola (es. metodo.html, servizi.html), aggiungi padding in alto per evitare sovrapposizione con la navbar fissa */
body.page-single {
    /* Spazio verticale extra per evitare che la navbar fissa sovrapponga i titoli */
    padding-top: 120px;
}

.site-back-button {
    align-items: center;
    background-color: rgba(21, 19, 15, 0.86);
    border: 1px solid rgba(199, 164, 90, 0.28);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9em;
    font-weight: 800;
    gap: 8px;
    left: 22px;
    padding: 9px 14px;
    position: fixed;
    text-decoration: none;
    top: 92px;
    z-index: 1200;
}

.site-back-button span:first-child {
    color: var(--gold);
    font-size: 1.2em;
    line-height: 1;
}

.site-back-button:hover,
.site-back-button:focus-visible {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    transform: translateY(-2px);
}

.site-back-button:hover span:first-child,
.site-back-button:focus-visible span:first-child {
    color: var(--bg);
}

html[data-theme="light"] .site-back-button {
    background-color: rgba(251, 244, 232, 0.94);
    border-color: rgba(212, 175, 55, 0.28);
    color: #201a14;
}

html[data-theme="light"] .site-back-button:hover,
html[data-theme="light"] .site-back-button:focus-visible {
    background-color: var(--gold);
    color: var(--bg);
}

.page-breadcrumb {
    align-items: center;
    color: rgba(245, 238, 220, 0.64);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 8px;
    justify-content: center;
    margin: 14px auto 0;
    max-width: 980px;
}

.page-breadcrumb a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
    color: var(--ivory);
    outline: none;
    text-decoration: underline;
}

.page-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 980px;
}

.page-nav--bottom {
    border-top: 1px solid rgba(199, 164, 90, 0.16);
    margin-bottom: 36px;
    margin-top: 46px;
    padding-top: 24px;
}

.page-nav__button {
    align-items: center;
    background: rgba(21, 19, 15, 0.72);
    border: 1px solid rgba(199, 164, 90, 0.26);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.page-nav__button--home,
.page-nav__button--portfolio {
    background: rgba(199, 164, 90, 0.13);
    border-color: rgba(199, 164, 90, 0.4);
    color: var(--gold);
}

.page-nav__button--next {
    background: linear-gradient(135deg, rgba(199, 164, 90, 0.24), rgba(255, 255, 255, 0.05));
}

.page-nav__button:hover,
.page-nav__button:focus-visible {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    outline: none;
    transform: translateY(-2px);
}

.project-nav {
    border-top: 1px solid rgba(199, 164, 90, 0.14);
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
    padding-top: 14px;
}

html[data-theme="light"] .page-breadcrumb {
    color: rgba(37, 31, 24, 0.66);
}

html[data-theme="light"] .page-nav__button {
    background: rgba(251, 244, 232, 0.9);
    border-color: rgba(150, 111, 35, 0.26);
    color: #201a14;
}

html[data-theme="light"] .page-nav__button--home,
html[data-theme="light"] .page-nav__button--portfolio {
    color: #7b5b1d;
}

html[data-theme="light"] .page-nav__button:hover,
html[data-theme="light"] .page-nav__button:focus-visible {
    background-color: var(--gold);
    color: var(--bg);
}

/* Navigazione */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 15px 30px;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
    transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), padding var(--motion-fast) var(--motion-ease);
}

.navbar.is-scrolled {
    background-color: var(--nav-bg-scrolled);
    border-color: rgba(199, 164, 90, 0.28);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
    padding: 10px 30px;
}

.logo {
    /* The logo container previously used text styling. Preserve colors for fallback */
    font-size: 1.6em;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

/* Style for the logo image */
.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    background-color: var(--nav-bg-scrolled);
    border-right: 1px solid var(--line-soft);
    bottom: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.28);
    flex-direction: column;
    gap: 8px;
    left: 0;
    list-style: none;
    display: flex;
    max-width: min(330px, calc(100vw - 52px));
    padding: 104px 18px 24px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform var(--motion-fast) var(--motion-ease);
    width: 330px;
    z-index: 1100;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ivory);
    display: block;
    text-decoration: none;
    font-size: 0.94em;
    font-weight: 700;
    padding: 11px 12px;
    position: relative;
}

.nav-links a::after {
    background-color: var(--gold);
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s ease;
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: var(--gold-soft);
    border-color: var(--line-soft);
    color: var(--gold-bright);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.nav-cta {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--bg);
    margin-top: 8px;
    padding: 11px 14px;
    text-align: center;
}

.nav-links a.nav-cta::after {
    display: none;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
    background-color: var(--gold-bright);
    color: var(--bg);
    transform: translateY(-2px);
}

.menu-toggle {
    align-items: center;
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    height: 44px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    position: relative;
    width: 44px;
    z-index: 1200;
}

.menu-toggle span {
    background-color: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
    width: 18px;
}

body.sidebar-is-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.sidebar-is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.sidebar-is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: rgba(199, 164, 90, 0.48);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.sidebar-scrim {
    background-color: rgba(0, 0, 0, 0.58);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity var(--motion-fast) var(--motion-ease);
    z-index: 900;
}

body.sidebar-is-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
}

.site-sidebar {
    background-color: var(--nav-bg-scrolled);
    border-right: 1px solid var(--line-soft);
    bottom: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 0;
    list-style: none;
    max-width: min(330px, calc(100vw - 52px));
    overflow-y: auto;
    padding: 18px 18px 24px;
    position: fixed;
    top: 76px;
    transform: translateX(-105%);
    transition: transform var(--motion-fast) var(--motion-ease);
    width: 330px;
    z-index: 1100;
}

body.sidebar-is-open .site-sidebar {
    transform: translateX(0);
}

.site-sidebar li {
    width: 100%;
}

.site-sidebar__header {
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.site-sidebar__title {
    color: var(--gold);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-sidebar__close {
    align-items: center;
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1.25em;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.site-sidebar__close:hover,
.site-sidebar__close:focus-visible {
    border-color: rgba(199, 164, 90, 0.48);
    color: var(--gold-bright);
    transform: translateY(-1px);
}

.site-sidebar a {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ivory);
    display: block;
    font-size: 0.94em;
    font-weight: 700;
    padding: 11px 12px;
    text-decoration: none;
}

.site-sidebar a:hover,
.site-sidebar a:focus-visible {
    background-color: var(--gold-soft);
    border-color: var(--line-soft);
    color: var(--gold-bright);
}

.site-sidebar a.nav-cta {
    background-color: var(--gold);
    border-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    margin-top: 8px;
    text-align: center;
}

.theme-toggle {
    align-items: center;
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 44px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(199, 164, 90, 0.48);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.theme-toggle__icon {
    font-size: 1.18em;
}

.theme-toggle__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.site-intro {
    align-items: center;
    background-color: #000000;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.28s ease;
    z-index: 5000;
}

.site-intro.is-active {
    opacity: 1;
    pointer-events: auto;
}

.site-intro img {
    height: clamp(96px, 18vw, 190px);
    opacity: 0;
    transform: scale(0.72);
    width: auto;
}

.site-intro.is-active img {
    animation: logoTunnel 0.95s var(--motion-ease) forwards;
}

@keyframes logoTunnel {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(9);
    }
}

/* Hero */
.hero {
    min-height: 86vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 150px 8vw 96px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(9, 8, 7, 0.98) 0%, rgba(9, 8, 7, 0.9) 48%, rgba(9, 8, 7, 0.54) 100%),
        linear-gradient(180deg, rgba(9, 8, 7, 0.12) 0%, var(--bg) 100%),
        url("images/portfolio/no-violenza-femminile-optimized.jpg"),
        url("images/portfolio/cartolina-urban-savona-optimized.jpg"),
        url("images/portfolio/primo-maggio-sicurezza-optimized.jpg");
    background-position:
        center,
        center,
        right 9vw center,
        right -18px top 118px,
        right 29vw bottom -52px;
    background-repeat: no-repeat;
    background-size:
        cover,
        cover,
        min(29vw, 370px) auto,
        min(32vw, 420px) auto,
        min(24vw, 320px) auto;
    filter: saturate(0.9) contrast(1.05);
    opacity: 0.78;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero > * {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.86em;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero .eyebrow {
    animation: heroReveal 0.75s ease both 0.08s;
}

.hero h1 {
    animation: heroReveal 1s var(--motion-ease) both 0.22s;
    font-family: var(--font-display);
    font-size: clamp(3.25em, 7vw, 6.8em);
    font-weight: 500;
    line-height: 0.9;
    margin-bottom: 16px;
}

.hero-subtitle {
    animation: heroReveal 0.85s ease both 0.34s;
    color: #d8cab4;
    font-size: clamp(1.18em, 2.2vw, 1.7em);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin-bottom: 20px;
    max-width: 680px;
}

.hero-statement {
    animation: heroReveal 0.85s ease both 0.46s;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.55em, 3vw, 2.35em);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-statement span {
    color: var(--gold-bright);
}

.hero p {
    font-size: 1.12em;
    max-width: 640px;
    color: var(--text-muted);
}

.hero > p:not(.eyebrow):not(.hero-subtitle):not(.hero-statement) {
    animation: heroReveal 0.85s ease both 0.58s;
}

.hero .cta-buttons {
    animation: heroReveal 0.85s ease both 0.72s;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-buttons a {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 800;
    position: relative;
    text-decoration: none;
    transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, transform 0.28s ease;
    will-change: transform, box-shadow;
}

.cta-buttons .primary {
    background-color: var(--gold);
    color: var(--bg);
}

.cta-buttons .primary:hover,
.cta-buttons .primary:focus-visible {
    background-color: var(--gold-bright);
    box-shadow: 0 16px 38px rgba(199, 164, 90, 0.22);
    transform: translateY(-2px);
}

.cta-buttons .secondary {
    border: 1px solid rgba(199, 164, 90, 0.65);
    color: var(--gold-bright);
    background-color: transparent;
}

.cta-buttons .secondary:hover,
.cta-buttons .secondary:focus-visible {
    background-color: rgba(199, 164, 90, 0.1);
    border-color: var(--gold-bright);
    transform: translateY(-2px);
}

.hero-tags {
    animation: heroReveal 0.85s ease both 0.84s;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hero-tags a {
    border: 1px solid rgba(199, 164, 90, 0.28);
    color: #e9e0c2;
    font-size: 0.88em;
    font-weight: 700;
    padding: 7px 12px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-tags a:hover,
.hero-tags a:focus-visible {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}

/* Manifesto */
.manifesto-section {
    background-color: var(--bg);
    padding: 70px 20px;
}

.manifesto-section p {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(2em, 4.6vw, 4.4em);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 auto;
    max-width: 980px;
    text-align: center;
}

/* Anima artistica */
.artist-section {
    align-items: center;
    background: var(--section-luminous);
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    overflow: hidden;
    position: relative;
}

.artist-section::before {
    display: none;
}

.artist-copy {
    margin-left: auto;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.artist-copy h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(2.4em, 4.4vw, 4.8em);
    font-weight: 500;
    line-height: 0.96;
    margin-bottom: 20px;
    text-align: left;
}

.artist-copy p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.08em;
}

.artist-signature {
    color: rgba(226, 197, 121, 0.72);
    font-family: var(--font-display);
    font-size: clamp(2.2em, 5vw, 5.4em);
    font-style: italic;
    line-height: 1;
    margin: 28px 0 24px;
    transform: rotate(-4deg);
}

.artist-link {
    background-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    display: inline-block;
    font-weight: 800;
    padding: 12px 20px;
    text-decoration: none;
}

.artist-link:hover,
.artist-link:focus-visible {
    background-color: var(--gold-bright);
    transform: translateY(-2px);
}

.artist-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    position: relative;
    z-index: 1;
}

.art-card {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.art-card-large {
    grid-row: span 2;
}

.art-card img {
    aspect-ratio: 4 / 5;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: filter 0.85s var(--motion-ease), transform 0.85s var(--motion-ease);
    width: 100%;
}

.art-card:not(.art-card-large) img {
    aspect-ratio: 5 / 4;
}

.art-card:hover img {
    filter: saturate(1.05) contrast(1.03);
    transform: scale(1.025);
}

.art-card figcaption {
    background: linear-gradient(180deg, transparent, rgba(9, 8, 7, 0.86));
    bottom: 0;
    color: var(--ivory);
    font-size: 0.9em;
    font-weight: 800;
    left: 0;
    padding: 52px 16px 16px;
    position: absolute;
    right: 0;
}

/* Sezioni generali */
section {
    padding: 124px 20px;
    scroll-margin-top: 95px;
}

section h1,
section h2 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(2.25em, 4vw, 4em);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 28px;
    text-align: center;
}

section p.section-intro {
    max-width: 800px;
    margin: 0 auto 52px auto;
    text-align: center;
    font-size: 1.1em;
    color: var(--text-muted);
}

/* Metodo */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.method-card {
    background: var(--card-surface);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.method-card:hover {
    border-color: rgba(199, 164, 90, 0.32);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.method-card h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: var(--gold);
}

.method-card p {
    font-size: 0.95em;
    color: var(--text-soft);
}

/* Diagnosi */
.diagnostic-section {
    background-color: var(--bg);
}

.diagnostic-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    margin: 0 auto;
    max-width: 1120px;
}

.diagnostic-options {
    display: grid;
    gap: 12px;
}

.diagnostic-option {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    color: var(--ivory);
    cursor: pointer;
    padding: 18px;
    text-align: left;
}

.diagnostic-option span {
    color: var(--text-soft);
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.diagnostic-option strong {
    color: var(--ivory);
    display: block;
    font-size: 1.25em;
}

.diagnostic-option:hover,
.diagnostic-option:focus-visible,
.diagnostic-option.is-active {
    border-color: rgba(199, 164, 90, 0.5);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.diagnostic-option.is-active strong {
    color: var(--gold);
}

.diagnostic-result {
    align-self: stretch;
    background: linear-gradient(180deg, rgba(199, 164, 90, 0.07), var(--panel));
    border: 1px solid rgba(199, 164, 90, 0.34);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.diagnostic-result h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.8em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.diagnostic-result p:not(.eyebrow) {
    color: var(--text-muted);
}

.diagnostic-cta {
    align-self: flex-start;
    background-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    font-weight: 800;
    margin-top: 22px;
    padding: 11px 18px;
    text-decoration: none;
    transition: background-color 0.28s ease, transform 0.28s ease;
}

.diagnostic-cta:hover,
.diagnostic-cta:focus-visible {
    background-color: var(--gold-bright);
    transform: translateY(-2px);
}

/* Pacchetti */
.packages-section {
    background-color: var(--bg-soft);
}

.package-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 0 auto;
    max-width: 1120px;
}

.package-card {
    background: var(--card-surface);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.package-card:hover,
.package-card:focus-within {
    border-color: rgba(199, 164, 90, 0.38);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.package-card.is-featured {
    background: linear-gradient(180deg, rgba(199, 164, 90, 0.08), var(--panel));
    border-color: rgba(199, 164, 90, 0.48);
    box-shadow: 0 24px 64px rgba(199, 164, 90, 0.08);
}

.package-label {
    color: #d8cab4;
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.package-card h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.55em;
    line-height: 1.15;
}

.package-card p,
.package-card li {
    color: var(--text-muted);
}

.package-card ul {
    display: grid;
    gap: 8px;
    list-style: none;
}

.package-card li::before {
    color: var(--gold);
    content: "+";
    font-weight: 900;
    margin-right: 8px;
}

.package-card a {
    align-self: flex-start;
    background-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    font-weight: 800;
    margin-top: auto;
    padding: 10px 16px;
    text-decoration: none;
    transition: background-color 0.28s ease, transform 0.28s ease;
}

.package-card a:hover,
.package-card a:focus-visible {
    background-color: var(--gold-bright);
    transform: translateY(-2px);
}

/* Cosa ricevi */
.deliverables-section {
    background-color: var(--bg);
}

.deliverables-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1120px;
}

.deliverable-card {
    background: var(--card-surface);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.deliverable-card:hover {
    border-color: rgba(199, 164, 90, 0.32);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.deliverable-card span {
    color: var(--gold);
    display: block;
    font-size: 0.86em;
    font-weight: 900;
    margin-bottom: 16px;
}

.deliverable-card h3 {
    color: var(--ivory);
    font-size: 1.2em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.deliverable-card p {
    color: var(--text-soft);
    font-size: 0.95em;
}

/* Servizi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
    border-color: rgba(199, 164, 90, 0.32);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.55em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.service-item p {
    color: var(--text-soft);
    font-size: 0.95em;
}

.service-kicker {
    color: var(--gold-bright);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.service-item-special {
    background: linear-gradient(180deg, rgba(199, 164, 90, 0.08), var(--panel));
    border-color: rgba(199, 164, 90, 0.34);
    grid-column: 1 / -1;
}

.service-item-digital {
    background:
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.18), transparent 42%),
        var(--panel);
    border-color: rgba(212, 175, 55, 0.42);
}

.service-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

/* Soluzioni digitali e gestionali */
.digital-teaser {
    align-items: center;
    background:
        linear-gradient(115deg, rgba(212, 175, 55, 0.12), transparent 52%),
        var(--panel-deep);
    border-block: 1px solid var(--line-soft);
    display: grid;
    gap: 54px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.digital-teaser__copy {
    justify-self: end;
    max-width: 660px;
}

.digital-teaser h2,
.gestionali-page .gestionali-use-cases h2,
.gestionali-page .gestionali-cta h2 {
    text-align: left;
}

.digital-teaser__copy > p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.08em;
    max-width: 620px;
}

.digital-teaser__cta {
    background-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    display: inline-block;
    font-weight: 900;
    margin-top: 26px;
    padding: 13px 22px;
    text-decoration: none;
}

.digital-teaser__cta:hover,
.digital-teaser__cta:focus-visible {
    background-color: var(--gold-bright);
    box-shadow: 0 16px 38px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.digital-teaser__list {
    display: grid;
    gap: 12px;
    max-width: 460px;
}

.digital-teaser__list span {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-soft);
    color: var(--ivory);
    font-weight: 800;
    padding: 18px 20px;
}

.gestionali-page main {
    overflow: hidden;
}

.gestionali-hero {
    margin: 0 auto;
    max-width: 1180px;
    padding-bottom: 100px;
}

.gestionali-hero h1 {
    font-size: clamp(2.25em, 4vw, 4em);
    max-width: 950px;
    text-align: left;
}

.gestionali-hero .eyebrow {
    margin-bottom: 22px;
}

.gestionali-lead {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.35em, 2.5vw, 2.15em);
    line-height: 1.25;
    max-width: 850px;
}

.gestionali-intro {
    border-left: 1px solid var(--gold);
    display: grid;
    gap: 16px;
    margin-top: 38px;
    max-width: 850px;
    padding-left: 24px;
}

.gestionali-intro p,
.gestionali-cta p {
    color: var(--text-muted);
}

.gestionali-examples,
.gestionali-process {
    background-color: var(--bg-soft);
}

.gestionali-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1180px;
}

.gestionali-grid article {
    background: var(--card-surface);
    border: 1px solid var(--line-soft);
    padding: 26px;
}

.gestionali-grid span {
    color: var(--gold-bright);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.gestionali-grid h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.45em;
    margin: 30px 0 12px;
}

.gestionali-grid p {
    color: var(--text-soft);
    font-size: 0.94em;
}

.gestionali-use-cases {
    display: grid;
    gap: 50px;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    margin: 0 auto;
    max-width: 1180px;
}

.use-case-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
}

.use-case-list li {
    border-bottom: 1px solid var(--line-soft);
    color: var(--ivory);
    font-weight: 800;
    padding: 12px 2px;
}

.gestionali-cta {
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

.service-link {
    color: var(--gold);
    display: inline-block;
    font-size: 0.92em;
    font-weight: 800;
    margin-top: 16px;
    text-decoration: none;
    transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.service-link:hover,
.service-link:focus-visible {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Trasformazione */
.transformation-section {
    background-color: var(--bg);
}

.transformation-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 980px;
}

.transformation-card {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 28px;
}

.transformation-card span {
    color: #9ca0aa;
    display: inline-block;
    font-size: 0.82em;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.transformation-card h3 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.transformation-card p {
    color: var(--text-soft);
}

.transformation-card.is-after {
    border-color: rgba(199, 164, 90, 0.42);
}

.transformation-card.is-after span,
.transformation-card.is-after h3 {
    color: var(--gold);
}

.ai-value {
    background-color: var(--panel);
    border: 1px solid rgba(199, 164, 90, 0.22);
    border-radius: 8px;
    margin: 24px auto 0;
    max-width: 980px;
    padding: 28px;
}

.ai-value h3 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.ai-value p:not(.eyebrow) {
    color: var(--text-muted);
}

/* Portfolio */
.portfolio-page #portfolio {
    background:
        radial-gradient(circle at 12% 16%, rgba(119, 171, 157, 0.13), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(169, 63, 51, 0.12), transparent 24%),
        var(--bg);
    overflow: hidden;
    position: relative;
}

.portfolio-page #portfolio::before,
.portfolio-page #portfolio::after {
    border-radius: 999px;
    content: "";
    filter: blur(0.2px);
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.portfolio-page #portfolio::before {
    background:
        linear-gradient(92deg, transparent 0 13%, rgba(226, 197, 121, 0.9) 13% 16%, transparent 16% 100%),
        linear-gradient(87deg, transparent 0 34%, rgba(119, 171, 157, 0.5) 34% 40%, transparent 40% 100%);
    height: 86px;
    left: -12vw;
    opacity: 0.36;
    top: 132px;
    transform: rotate(-9deg);
    width: 58vw;
}

.portfolio-page #portfolio::after {
    background:
        linear-gradient(95deg, transparent 0 18%, rgba(169, 63, 51, 0.58) 18% 23%, transparent 23% 100%),
        linear-gradient(88deg, transparent 0 56%, rgba(226, 197, 121, 0.5) 56% 60%, transparent 60% 100%);
    bottom: 132px;
    height: 74px;
    opacity: 0.28;
    right: -14vw;
    transform: rotate(8deg);
    width: 46vw;
}

.portfolio-page #portfolio > * {
    position: relative;
    z-index: 1;
}

.portfolio-brush-strip {
    height: 74px;
    margin: -16px auto 10px;
    max-width: 900px;
    position: relative;
}

.portfolio-brush-strip span {
    border-radius: 999px;
    filter: saturate(1.05);
    height: 18px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: center;
}

.portfolio-brush-strip span:nth-child(1) {
    background: linear-gradient(90deg, transparent, rgba(226, 197, 121, 0.92), rgba(226, 197, 121, 0.18), transparent);
    transform: translate(-56%, -50%) rotate(-4deg);
    width: min(520px, 72vw);
}

.portfolio-brush-strip span:nth-child(2) {
    background: linear-gradient(90deg, transparent, rgba(119, 171, 157, 0.62), transparent);
    height: 12px;
    transform: translate(-42%, -14%) rotate(3deg);
    width: min(360px, 52vw);
}

.portfolio-brush-strip span:nth-child(3) {
    background: linear-gradient(90deg, transparent, rgba(169, 63, 51, 0.72), transparent);
    height: 10px;
    transform: translate(-18%, 82%) rotate(-2deg);
    width: min(260px, 42vw);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1160px;
    margin: 0 auto;
}

.portfolio-explanation {
    max-width: 860px;
    margin: -22px auto 48px auto;
    color: var(--text-muted);
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
}

.asset-rights-note {
    background-color: rgba(199, 164, 90, 0.08);
    border: 1px solid rgba(199, 164, 90, 0.22);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.92em;
    line-height: 1.5;
    margin: -18px auto 34px;
    max-width: 860px;
    padding: 14px 18px;
    text-align: center;
}

.project-gallery-section .asset-rights-note {
    margin: 0 auto 28px;
}

.portfolio-item {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-item::after,
.project-image::after,
.work-card::after,
.art-card::after {
    background-color: rgba(9, 8, 7, 0.72);
    border: 1px solid rgba(244, 239, 229, 0.18);
    border-radius: 999px;
    color: rgba(244, 239, 229, 0.78);
    content: "Riproduzione vietata";
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    right: 12px;
    text-transform: uppercase;
    top: 12px;
    z-index: 3;
}

.portfolio-item:hover {
    border-color: rgba(199, 164, 90, 0.32);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.portfolio-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.portfolio-card-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.portfolio-item img {
    aspect-ratio: 5 / 4;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: var(--panel-deep);
    transition: transform 0.85s var(--motion-ease), filter 0.85s var(--motion-ease);
}

img[data-protected-media],
.portfolio-preview {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

.portfolio-item:hover img {
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.025);
}

.portfolio-preview {
    align-items: center;
    background-color: var(--panel-deep);
    display: flex;
    flex-direction: column;
    height: 260px;
    justify-content: center;
    padding: 24px;
    position: relative;
    text-align: center;
    transition: transform var(--motion-medium) var(--motion-ease), filter var(--motion-medium) var(--motion-ease);
}

.portfolio-card-link:hover .portfolio-preview {
    transform: scale(1.02);
}

.portfolio-preview::before,
.portfolio-preview::after {
    content: "";
    position: absolute;
}

.portfolio-preview::before {
    border: 1px solid rgba(199, 164, 90, 0.42);
    inset: 28px;
}

.portfolio-preview::after {
    background-color: var(--gold-soft);
    height: 68px;
    right: 42px;
    top: 42px;
    width: 68px;
}

.portfolio-preview span {
    color: var(--gold);
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
    z-index: 1;
}

.portfolio-preview strong {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.9em;
    font-weight: 500;
    line-height: 1.1;
    max-width: 240px;
    z-index: 1;
}

.preview-ambienti {
    background:
        linear-gradient(90deg, rgba(199, 164, 90, 0.2) 0 14%, transparent 14% 100%),
        linear-gradient(135deg, #15120f 0%, #221d17 48%, #2d2418 100%);
}

.preview-regali {
    background:
        linear-gradient(0deg, rgba(199, 164, 90, 0.15) 0 18%, transparent 18% 100%),
        linear-gradient(135deg, #14110e 0%, #241f1b 52%, #352719 100%);
}

.preview-brand {
    background:
        linear-gradient(90deg, transparent 0 46%, rgba(199, 164, 90, 0.19) 46% 54%, transparent 54% 100%),
        linear-gradient(135deg, #12100e 0%, #211d18 48%, #302617 100%);
}

.preview-territorio {
    background:
        linear-gradient(135deg, transparent 0 34%, rgba(199, 164, 90, 0.18) 34% 46%, transparent 46% 100%),
        linear-gradient(160deg, #11120f 0%, #1d2b22 45%, #2e2a18 100%);
}

.preview-sicurezza {
    background:
        linear-gradient(45deg, rgba(199, 164, 90, 0.15) 0 12%, transparent 12% 24%, rgba(199, 164, 90, 0.15) 24% 36%, transparent 36% 100%),
        linear-gradient(135deg, #12120f 0%, #1c2c27 50%, #302b18 100%);
}

.portfolio-item .caption {
    padding: 28px;
}

.portfolio-category {
    color: #d8cab4;
    display: block;
    font-size: 0.76em;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portfolio-item .caption h4 {
    margin-bottom: 8px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.55em;
    font-weight: 500;
    position: relative;
}

.portfolio-page .portfolio-item .caption h4::after {
    background: linear-gradient(90deg, rgba(226, 197, 121, 0.7), rgba(119, 171, 157, 0.18), transparent);
    border-radius: 999px;
    bottom: -7px;
    content: "";
    height: 4px;
    left: 0;
    opacity: 0.8;
    position: absolute;
    transform: rotate(-1deg);
    width: 96px;
}

.portfolio-item .caption p {
    font-size: 0.9em;
    color: var(--text-soft);
    line-height: 1.65;
}

.portfolio-action {
    margin: 42px auto 0;
    max-width: 760px;
    text-align: center;
}

@media (min-width: 980px) {
    .portfolio-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .portfolio-item {
        grid-column: span 4;
    }

    .portfolio-item:first-child,
    .portfolio-item:nth-child(6) {
        grid-column: span 8;
    }

    .portfolio-item:first-child img,
    .portfolio-item:nth-child(6) img {
        aspect-ratio: 16 / 9;
    }

    .portfolio-item:first-child .caption,
    .portfolio-item:nth-child(6) .caption {
        padding: 30px;
    }

    .portfolio-item:first-child .caption h4,
    .portfolio-item:nth-child(6) .caption h4 {
        font-size: 2em;
    }
}

@media (max-width: 920px) {
    .services-grid,
    .digital-teaser,
    .gestionali-use-cases {
        grid-template-columns: 1fr;
    }

    .digital-teaser__copy {
        justify-self: start;
    }

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

.portfolio-action p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.portfolio-action a,
.project-cta,
.direct-contact a {
    background-color: var(--gold);
    border: 1px solid rgba(226, 197, 121, 0.18);
    border-radius: 999px;
    color: var(--bg);
    display: inline-block;
    font-weight: 800;
    padding: 12px 22px;
    text-decoration: none;
    transition: background-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

.portfolio-action a:hover,
.portfolio-action a:focus-visible,
.project-cta:hover,
.project-cta:focus-visible,
.direct-contact a:hover,
.direct-contact a:focus-visible {
    background-color: var(--gold-bright);
    box-shadow: 0 14px 34px rgba(199, 164, 90, 0.18);
    transform: translateY(-3px);
}

.project-link {
    color: var(--gold);
    display: inline-block;
    font-weight: 700;
    margin-top: 16px;
    transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.portfolio-card-link:hover .project-link {
    text-decoration: underline;
    transform: translateY(-2px);
}

.project-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.project-hero {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
}

.project-image {
    background-color: var(--panel-deep);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    display: block;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s ease;
    width: 100%;
}

.project-image:hover img {
    transform: scale(1.015);
}

.project-image .portfolio-preview {
    height: 520px;
}

.project-copy {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.project-copy h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 12px;
}

.project-copy p,
.project-copy li {
    color: var(--text-muted);
}

.project-copy ul {
    margin: 16px 0 24px 20px;
}

.project-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.project-actions .back-link {
    margin-top: 0;
}

.project-gallery-section {
    margin-top: 58px;
}

.project-gallery-section h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.75em;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
}

.project-gallery-section > p {
    color: var(--text-muted);
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

.project-gallery {
    columns: 280px 3;
    column-gap: 20px;
}

.work-card {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    break-inside: avoid;
    margin: 0 0 20px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
    border-color: rgba(199, 164, 90, 0.34);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px) scale(1.01);
}

.work-card a {
    background-color: var(--panel-deep);
    display: block;
}

.work-card img {
    display: block;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s ease;
    width: 100%;
}

.work-card:hover img {
    transform: scale(1.025);
}

.work-card figcaption {
    padding: 16px;
}

.work-card strong {
    color: var(--ivory);
    display: block;
    font-size: 1.02em;
    margin-bottom: 6px;
}

.work-card span {
    color: var(--text-soft);
    display: block;
    font-size: 0.92em;
    line-height: 1.45;
}

/* Blocchi informativi */
.results-section {
    background:
        linear-gradient(180deg, rgba(28, 23, 18, 0.52), rgba(9, 8, 7, 0.92)),
        var(--bg);
}

.results-wrapper {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    max-width: 1100px;
    margin: 0 auto;
}

.impact-panel,
.review-card {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
}

.impact-panel {
    padding: 28px;
}

.impact-copy h3 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.62em;
    font-weight: 500;
    margin-bottom: 10px;
}

.impact-copy p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.impact-chart {
    display: grid;
    gap: 16px;
}

.chart-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 90px 1fr;
    align-items: center;
}

.chart-row span {
    color: var(--ivory);
    font-weight: 700;
}

.chart-track {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.12);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
}

.chart-fill {
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: inherit;
    height: 100%;
    width: var(--level);
}

.result-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
}

.result-stats div {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.12);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.result-stats strong {
    color: var(--gold);
    font-family: var(--font-display);
    display: block;
    font-size: 2em;
    line-height: 1;
    margin-bottom: 8px;
}

.result-stats span {
    color: var(--text-soft);
    font-size: 0.9em;
}

.reviews-grid {
    display: grid;
    gap: 18px;
}

.review-card {
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
    border-color: rgba(199, 164, 90, 0.34);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px) scale(1.01);
}

.stars {
    color: var(--gold);
    font-size: 1.1em;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.review-card p {
    color: var(--ivory);
    font-size: 1em;
    margin-bottom: 14px;
}

.review-card span {
    color: var(--text-soft);
    font-size: 0.9em;
    font-weight: 700;
}

/* Contatti */
.contact-prompt {
    max-width: 820px;
    margin: -16px auto 36px;
    text-align: center;
}

.contact-prompt p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.direct-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.direct-contact a.social-link {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.direct-contact a.social-link:hover {
    background-color: rgba(199, 164, 90, 0.1);
}

.phone-contact {
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 16px;
}

.contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-form {
    background-color: rgba(21, 19, 15, 0.72);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    display: grid;
    gap: 15px;
    padding: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(199, 164, 90, 0.18);
    background-color: var(--panel-deep);
    color: var(--ivory);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(199, 164, 90, 0.7);
    box-shadow: 0 0 0 4px rgba(199, 164, 90, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8f867b;
}

.contact-form select {
    cursor: pointer;
}

.privacy-consent {
    align-items: flex-start;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    font-size: 0.92em;
    line-height: 1.45;
}

.privacy-consent input {
    margin-top: 4px;
    width: auto;
}

.privacy-consent a,
.legal-content a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

.privacy-consent a:hover,
.privacy-consent a:focus-visible,
.legal-content a:hover,
.legal-content a:focus-visible {
    text-decoration: underline;
}

.contact-form button {
    padding: 12px;
    background-color: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background-color: var(--gold-bright);
    box-shadow: 0 12px 30px rgba(199, 164, 90, 0.18);
    transform: translateY(-3px);
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-status {
    color: var(--text-muted);
    min-height: 1.5em;
}

.form-status.is-success {
    color: #dfeec6;
}

.form-status.is-error {
    color: #f0b8aa;
}

/* R04 - richiesta preventivo guidata */
.contact-wrapper:has(.request-wizard) {
    max-width: 980px;
}

.request-wizard {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.request-wizard__header {
    align-items: flex-start;
    background:
        radial-gradient(circle at 100% 0, rgba(226, 197, 121, 0.14), transparent 38%),
        rgba(16, 15, 13, 0.94);
    border-bottom: 1px solid rgba(199, 164, 90, 0.18);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 28px;
}

.request-wizard__header h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 500;
    margin: 0 0 8px;
    text-align: left;
}

.request-wizard__header p:last-child {
    color: var(--text-muted);
    margin: 0;
    max-width: 620px;
}

.request-wizard__step-copy {
    border: 1px solid rgba(199, 164, 90, 0.3);
    border-radius: 999px;
    color: var(--gold);
    flex: 0 0 auto;
    font-size: 0.76em;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.request-wizard__progress {
    background-color: rgba(12, 11, 10, 0.7);
    border-bottom: 1px solid rgba(199, 164, 90, 0.14);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 14px 28px;
}

.request-wizard__progress span {
    align-items: center;
    color: var(--text-soft);
    display: flex;
    font-size: 0.78em;
    font-weight: 900;
    gap: 7px;
    position: relative;
}

.request-wizard__progress span::before {
    background-color: rgba(199, 164, 90, 0.18);
    content: "";
    height: 1px;
    left: 28px;
    position: absolute;
    right: 8px;
}

.request-wizard__progress span:last-child::before {
    display: none;
}

.request-wizard__progress i {
    color: inherit;
    font-size: 0.76em;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-wizard__progress span.is-active {
    color: var(--gold-bright);
}

.request-wizard__step {
    animation: requestStepIn 0.3s ease both;
    padding: 28px;
}

.request-wizard__step[hidden] {
    display: none;
}

@keyframes requestStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.request-wizard__title {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.request-wizard__title > span {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 2em;
    line-height: 1;
}

.request-wizard__title h3 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.65em;
    font-weight: 500;
    margin: 0 0 5px;
}

.request-wizard__title p {
    color: var(--text-muted);
    margin: 0;
}

.request-wizard__grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-wizard__grid > label,
.request-wizard__choices {
    display: grid;
    gap: 7px;
    margin: 0;
}

.request-wizard__grid > label > span,
.request-wizard__choices legend {
    color: var(--gold);
    font-size: 0.72em;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-wizard__wide {
    grid-column: 1 / -1;
}

.request-service-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.contact-form .request-service-grid button {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.18);
    border-radius: 8px;
    color: var(--ivory);
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    text-align: left;
}

.contact-form .request-service-grid button:hover,
.contact-form .request-service-grid button:focus-visible,
.contact-form .request-service-grid button.is-selected {
    background-color: rgba(199, 164, 90, 0.12);
    border-color: rgba(226, 197, 121, 0.65);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.request-service-grid button > span {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.5em;
}

.request-service-grid button strong {
    color: var(--ivory);
    font-size: 0.9em;
}

.request-service-grid button small {
    color: var(--text-soft);
    font-size: 0.72em;
    line-height: 1.45;
}

.request-wizard__choices {
    border: 1px solid rgba(199, 164, 90, 0.18);
    border-radius: 8px;
    padding: 14px;
}

.request-wizard__choices legend {
    padding: 0 6px;
}

.request-wizard__choices label {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.88em;
    gap: 8px;
}

.request-wizard__choices input {
    accent-color: var(--gold);
    width: auto;
}

.request-wizard__validation {
    color: #f0b8aa;
    font-size: 0.9em;
    margin: 14px 0 0;
}

.request-wizard__summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.request-wizard__summary article,
.request-wizard__review-answers {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.16);
    border-radius: 8px;
    padding: 16px;
}

.request-wizard__summary article > span,
.request-wizard__review-answers span {
    color: var(--gold);
    display: block;
    font-size: 0.7em;
    font-weight: 900;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.request-wizard__summary article strong,
.request-wizard__review-answers strong {
    color: var(--ivory);
}

.request-wizard__summary article p,
.request-wizard__review-answers p {
    color: var(--text-muted);
    margin: 5px 0 0;
}

.request-wizard__review-answers {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-wizard__review-answers div {
    border-bottom: 1px solid rgba(199, 164, 90, 0.12);
    padding-bottom: 8px;
}

.request-wizard__notice {
    border-left: 2px solid var(--gold);
    color: var(--text-muted);
    font-size: 0.88em;
    padding-left: 12px;
}

.request-wizard__actions {
    align-items: center;
    border-top: 1px solid rgba(199, 164, 90, 0.14);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 18px 28px;
}

.contact-form .request-wizard__actions button {
    min-width: 120px;
    padding: 10px 16px;
}

.contact-form .request-wizard__actions .secondary {
    background-color: transparent;
    border: 1px solid rgba(199, 164, 90, 0.35);
    color: var(--gold);
}

.contact-form .request-wizard__actions button[hidden] {
    display: none;
}

.contact-form .request-wizard__actions button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.request-wizard > .form-status {
    margin: 0;
    padding: 0 28px 18px;
}

.guided-request-teaser {
    background:
        radial-gradient(circle at 100% 0, rgba(226, 197, 121, 0.14), transparent 42%),
        rgba(21, 19, 15, 0.78);
    border: 1px solid rgba(199, 164, 90, 0.24);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 42px);
    text-align: center;
}

.guided-request-teaser h3 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 500;
    margin: 0 0 12px;
}

.guided-request-teaser > p:not(.eyebrow) {
    color: var(--text-muted);
    margin: 0 auto 22px;
    max-width: 680px;
}

.guided-request-teaser > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.guided-request-teaser span {
    border: 1px solid rgba(199, 164, 90, 0.22);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.76em;
    font-weight: 800;
    padding: 7px 10px;
}

.creative-agent__recap ul {
    color: var(--text-muted);
    display: grid;
    gap: 6px;
    margin: 8px 0;
    padding-left: 18px;
}

.creative-agent__actions a.primary {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--bg);
    font-weight: 800;
    padding: 10px 13px;
    text-decoration: none;
}

@media (max-width: 980px) {
    .request-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .request-wizard__header,
    .request-wizard__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-wizard__step-copy {
        align-self: flex-start;
    }

    .request-wizard__progress {
        gap: 6px;
        padding: 12px 16px;
    }

    .request-wizard__progress i,
    .request-wizard__progress span::before {
        display: none;
    }

    .request-wizard__progress span {
        border: 1px solid rgba(199, 164, 90, 0.2);
        border-radius: 50%;
        height: 28px;
        justify-content: center;
        width: 28px;
    }

    .request-wizard__step,
    .request-wizard__header {
        padding: 20px;
    }

    .request-wizard__grid,
    .request-service-grid,
    .request-wizard__summary,
    .request-wizard__review-answers {
        grid-template-columns: 1fr;
    }

    .request-wizard__wide,
    .request-wizard__review-answers {
        grid-column: auto;
    }

    .request-wizard__actions button {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 30px 20px;
    text-align: center;
    background-color: var(--bg);
    border-top: 1px solid var(--line-soft);
    color: #82786d;
    font-size: 0.85em;
}

footer p {
    margin-bottom: 12px;
}

.footer-rights {
    color: var(--text-soft);
    font-size: 0.9em;
    margin: 8px auto 12px;
    max-width: 760px;
}

.footer-rights a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

.footer-rights a:hover,
.footer-rights a:focus-visible {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
}

.footer-links a,
.footer-links span {
    color: #9b9186;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-preferences-link {
    background: none;
    border: 0;
    color: #9b9186;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cookie-preferences-link:hover,
.cookie-preferences-link:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-floating-button {
    background-color: rgba(21, 19, 15, 0.88);
    border: 1px solid rgba(199, 164, 90, 0.3);
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    color: var(--gold);
    cursor: pointer;
    font: inherit;
    font-size: 0.78em;
    font-weight: 800;
    left: 18px;
    letter-spacing: 0.02em;
    padding: 8px 12px;
    position: fixed;
    z-index: 2990;
}

.cookie-floating-button:hover,
.cookie-floating-button:focus-visible {
    background-color: var(--gold);
    color: var(--bg);
    outline: 2px solid rgba(244, 239, 229, 0.45);
    outline-offset: 3px;
}

.cookie-consent {
    bottom: 18px;
    left: 50%;
    max-width: min(920px, calc(100% - 32px));
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 3000;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__content {
    background-color: rgba(21, 19, 15, 0.98);
    border: 1px solid rgba(199, 164, 90, 0.28);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.cookie-consent .eyebrow {
    margin-bottom: 8px;
}

.cookie-consent h2 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.45em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: left;
}

.cookie-consent p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cookie-options {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.cookie-option {
    align-items: flex-start;
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.14);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.cookie-option input {
    margin-top: 5px;
}

.cookie-option span {
    color: var(--text-muted);
    display: grid;
    gap: 2px;
}

.cookie-option strong {
    color: var(--ivory);
}

.cookie-option.is-required {
    opacity: 0.78;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cookie-actions button {
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 16px;
}

.cookie-actions .primary {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg);
}

.cookie-actions .secondary {
    background-color: transparent;
    border: 1px solid rgba(199, 164, 90, 0.4);
    color: var(--gold);
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
    transform: translateY(-2px);
}

.cookie-policy-link {
    color: var(--gold);
    display: inline-block;
    font-weight: 700;
    margin-top: 14px;
    text-decoration: none;
}

.cookie-policy-link:hover,
.cookie-policy-link:focus-visible {
    text-decoration: underline;
}

.rights-toast {
    background-color: rgba(21, 19, 15, 0.96);
    border: 1px solid rgba(199, 164, 90, 0.32);
    border-radius: 8px;
    bottom: 24px;
    box-shadow: var(--shadow-soft);
    color: var(--ivory);
    font-size: 0.95em;
    left: 50%;
    max-width: min(520px, calc(100% - 32px));
    opacity: 0;
    padding: 14px 18px;
    pointer-events: none;
    position: fixed;
    text-align: center;
    transform: translate(-50%, 18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 4000;
}

.rights-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.creative-agent {
    bottom: 22px;
    pointer-events: none;
    position: fixed;
    right: 22px;
    z-index: 2600;
}

.creative-agent__toggle {
    align-items: center;
    background-color: rgba(21, 19, 15, 0.96);
    border: 1px solid rgba(226, 197, 121, 0.38);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    color: var(--ivory);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 10px;
    max-width: min(330px, calc(100vw - 44px));
    padding: 11px 16px 11px 12px;
    pointer-events: auto;
}

.creative-agent__eye {
    align-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.9) 0 18%, transparent 19%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(226, 197, 121, 0.36));
    border: 1px solid rgba(9, 8, 7, 0.18);
    border-radius: 70% 10%;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    position: relative;
    transform: rotate(45deg);
    width: 34px;
}

.creative-agent__eye::after {
    animation: creativeEyeBlink 4.8s var(--motion-ease) infinite;
    background-color: var(--gold);
    content: "";
    inset: -2px;
    position: absolute;
    transform: translateY(-105%);
    z-index: 2;
}

.creative-agent__iris {
    animation: creativeEyeLook 6.2s var(--motion-ease) infinite;
    background:
        radial-gradient(circle, var(--bg) 0 24%, var(--gold-bright) 25% 54%, rgba(9, 8, 7, 0.9) 55% 100%);
    border-radius: 50%;
    display: block;
    height: 12px;
    transform: rotate(-45deg);
    width: 12px;
    z-index: 1;
}

@keyframes creativeEyeBlink {
    0%,
    7%,
    48%,
    56%,
    100% {
        transform: translateY(-105%);
    }

    4%,
    52% {
        transform: translateY(0);
    }
}

@keyframes creativeEyeLook {
    0%,
    100% {
        translate: 0 0;
    }

    36% {
        translate: 3px -1px;
    }

    68% {
        translate: -3px 1px;
    }
}

.creative-agent__toggle strong {
    color: var(--gold-bright);
    display: block;
    font-size: 0.94em;
    line-height: 1.1;
    text-align: left;
}

.creative-agent__toggle-copy {
    display: block;
}

.creative-agent__toggle-copy span {
    color: var(--text-soft);
    display: block;
    font-size: 0.78em;
    line-height: 1.25;
    max-width: 190px;
    text-align: left;
}

.creative-agent__toggle:hover,
.creative-agent__toggle:focus-visible {
    background-color: rgba(28, 24, 18, 0.98);
    border-color: rgba(226, 197, 121, 0.7);
    transform: translateY(-2px);
}

.creative-agent__panel {
    background-color: rgba(21, 19, 15, 0.98);
    border: 1px solid rgba(199, 164, 90, 0.28);
    border-radius: 8px;
    bottom: 64px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    max-height: min(560px, calc(100vh - 116px));
    max-width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    right: 0;
    width: 390px;
}

.creative-agent__panel[hidden] {
    display: none;
}

.creative-agent__header {
    align-items: flex-start;
    background-color: rgba(21, 19, 15, 0.98);
    border-bottom: 1px solid rgba(199, 164, 90, 0.16);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    padding: 18px;
    z-index: 2;
}

.creative-agent__header-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.creative-agent__header .eyebrow {
    font-size: 0.72em;
    margin-bottom: 6px;
}

.creative-agent__header h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: 1.35em;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    text-align: left;
}

.creative-agent__header button {
    background-color: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.creative-agent__close {
    font-size: 1.6em;
    line-height: 1;
}

.creative-agent__header button:hover,
.creative-agent__header button:focus-visible {
    color: var(--gold);
}

.creative-agent__music {
    border: 1px solid rgba(199, 164, 90, 0.3) !important;
    border-radius: 999px;
    font: inherit;
    font-size: 0.72em;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 7px 10px;
    text-transform: uppercase;
}

.creative-agent__music[aria-pressed="true"] {
    background-color: rgba(199, 164, 90, 0.16);
    border-color: rgba(199, 164, 90, 0.54) !important;
    color: var(--gold-bright);
}

.creative-agent__body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.creative-agent__track {
    align-items: center;
    border-top: 1px solid rgba(199, 164, 90, 0.14);
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.74em;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 18px 16px;
}

.creative-agent__track a {
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
}

.creative-agent__track a:hover,
.creative-agent__track a:focus-visible {
    color: var(--gold-bright);
    text-decoration: underline;
}

.creative-agent__message {
    background: linear-gradient(180deg, rgba(199, 164, 90, 0.08), rgba(16, 15, 13, 0.84));
    border: 1px solid rgba(199, 164, 90, 0.18);
    border-radius: 8px;
    padding: 15px;
}

.creative-agent__message span {
    color: var(--gold);
    display: block;
    font-size: 0.74em;
    font-weight: 900;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.creative-agent__message p {
    color: var(--ivory);
    margin: 0;
}

.creative-agent__options {
    display: grid;
    gap: 9px;
}

.creative-agent__options button,
.creative-agent__actions button,
.creative-agent__continue {
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 10px 13px;
}

.creative-agent__options button {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.18);
    color: var(--ivory);
    text-align: left;
}

.creative-agent__options button:hover,
.creative-agent__options button:focus-visible {
    border-color: rgba(199, 164, 90, 0.48);
    color: var(--gold-bright);
    transform: translateX(3px);
}

.creative-agent__options button.is-selected {
    background-color: rgba(199, 164, 90, 0.14);
    border-color: rgba(199, 164, 90, 0.52);
    color: var(--gold-bright);
}

.creative-agent__continue {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg);
}

.creative-agent__continue:hover,
.creative-agent__continue:focus-visible {
    background-color: var(--gold-bright);
    transform: translateY(-2px);
}

.creative-agent__recap {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 7px;
    padding: 14px;
}

.creative-agent__recap p {
    color: var(--text-muted);
    font-size: 0.92em;
    margin: 0;
}

.creative-agent__recap strong {
    color: var(--ivory);
}

.creative-agent__quote {
    background-color: var(--panel-deep);
    border: 1px solid rgba(199, 164, 90, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
}

.creative-agent__quote table {
    border-collapse: collapse;
    font-size: 0.78em;
    width: 100%;
}

.creative-agent__quote th,
.creative-agent__quote td {
    border-bottom: 1px solid rgba(199, 164, 90, 0.12);
    color: var(--text-muted);
    padding: 7px 5px;
    text-align: left;
    vertical-align: top;
}

.creative-agent__quote th {
    color: var(--gold);
    font-size: 0.74em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.creative-agent__quote p,
.creative-agent__quote small {
    color: var(--text-soft);
    font-size: 0.78em;
    line-height: 1.4;
    margin: 0;
}

.creative-agent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.creative-agent__nav {
    display: flex;
    gap: 9px;
    justify-content: space-between;
}

.creative-agent__nav button {
    background-color: transparent;
    border: 1px solid rgba(199, 164, 90, 0.28);
    border-radius: 999px;
    color: var(--gold);
    cursor: pointer;
    font: inherit;
    font-size: 0.86em;
    font-weight: 800;
    padding: 8px 12px;
}

.creative-agent__nav button:hover,
.creative-agent__nav button:focus-visible {
    border-color: rgba(199, 164, 90, 0.52);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.creative-agent__nav button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.creative-agent__actions .primary {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg);
}

.creative-agent__actions .secondary {
    background-color: transparent;
    border: 1px solid rgba(199, 164, 90, 0.35);
    color: var(--gold);
}

.creative-agent__actions button:hover,
.creative-agent__actions button:focus-visible {
    transform: translateY(-2px);
}

.creative-agent__privacy {
    color: var(--text-soft);
    font-size: 0.78em;
    margin: 0;
}

html[data-theme="light"] .creative-agent__panel {
    background-color: rgba(251, 244, 232, 0.98);
    border-color: rgba(212, 175, 55, 0.24);
}

html[data-theme="light"] .creative-agent__header {
    background-color: rgba(251, 244, 232, 0.98);
}

html[data-theme="light"] .creative-agent__message {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(255, 249, 236, 0.96));
    border-color: rgba(212, 175, 55, 0.22);
}

html[data-theme="light"] .creative-agent__message p,
html[data-theme="light"] .creative-agent__header h2,
html[data-theme="light"] .creative-agent__recap strong {
    color: #201a14;
}

html[data-theme="light"] .creative-agent__options button,
html[data-theme="light"] .creative-agent__options button.is-selected,
html[data-theme="light"] .creative-agent__recap,
html[data-theme="light"] .creative-agent__quote {
    background-color: #fff9ec;
    border-color: rgba(212, 175, 55, 0.22);
    color: #201a14;
}

html[data-theme="light"] .creative-agent__privacy,
html[data-theme="light"] .creative-agent__recap p,
html[data-theme="light"] .creative-agent__header button,
html[data-theme="light"] .creative-agent__track {
    color: #5f554b;
}

html[data-theme="light"] .creative-agent__eye::after {
    background-color: var(--gold-bright);
}

/* Chi sono (About) section */
.about-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.2em;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-photo {
    flex: 0 1 280px;
    width: min(100%, 280px);
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    object-position: center top;
    box-shadow: var(--shadow-soft);
}

.about-text {
    flex: 2 1 400px;
    font-size: 1em;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 12px;
}

/* Blog section styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-post {
    background-color: var(--panel);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post:hover {
    border-color: rgba(199, 164, 90, 0.34);
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px) scale(1.01);
}

.blog-post > img {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    display: block;
    margin-bottom: 18px;
    object-fit: cover;
    width: 100%;
}

.blog-post h4 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 500;
}

.blog-post p {
    font-size: 0.95em;
    color: var(--text-soft);
    margin-bottom: 15px;
}

.blog-post a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.blog-post a:hover,
.blog-post a:focus-visible {
    text-decoration: underline;
    transform: translateY(-2px);
}

.blog-post--featured {
    display: grid;
    gap: 24px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    overflow: hidden;
}

.blog-post--featured > img {
    align-self: stretch;
    border-radius: 6px;
    display: block;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    width: 100%;
}

.blog-post__content {
    align-self: center;
}

.blog-post__meta {
    color: var(--gold) !important;
    font-size: 0.76em !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Blog post page styles */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1em;
    color: var(--text-muted);
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 20px;
}

.editorial-post {
    max-width: 1100px;
    margin: 0 auto;
}

.editorial-post__hero {
    margin: 40px auto 50px;
    max-width: 820px;
}

.editorial-post__hero img {
    background-color: var(--panel-deep);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 820px;
    object-fit: contain;
    width: 100%;
}

.editorial-post__hero figcaption {
    color: var(--text-soft);
    font-size: 0.86em;
    margin-top: 10px;
    text-align: center;
}

.editorial-post__content {
    background: var(--card-surface);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: clamp(24px, 5vw, 54px);
}

.editorial-post__content h2 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(1.6em, 4vw, 2.2em);
    font-weight: 500;
    margin: 42px 0 14px;
}

.editorial-post__content a {
    color: var(--gold);
    font-weight: 700;
}

.editorial-post__content blockquote {
    border-left: 3px solid var(--gold);
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.8em, 5vw, 3em);
    margin: 44px 0;
    padding: 8px 0 8px 24px;
}

.editorial-lede {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.45em, 3vw, 2em);
    line-height: 1.35;
}

.editorial-post__actions {
    justify-content: center;
    margin: 34px auto 0;
}

.legal-content {
    background-color: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 32px;
}

.legal-content h2 {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.25em;
    font-weight: 500;
    margin: 34px 0 12px;
    text-align: left;
}

.legal-content h2:first-of-type {
    margin-top: 18px;
}

.back-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.back-link:hover,
.back-link:focus-visible {
    text-decoration: underline;
    transform: translateY(-2px);
}

@media print {
    body::before {
        color: #000000;
        content: "Le immagini e i contenuti visivi di FR Visual Design sono protetti. Riproduzione e stampa non autorizzate sono vietate.";
        display: block;
        font-weight: 700;
        margin: 0 0 18px;
    }

img[data-protected-media],
.portfolio-preview {
    visibility: hidden !important;
}
}

.method-card,
.package-card,
.deliverable-card,
.service-item,
.transformation-card,
.ai-value,
.portfolio-item,
.review-card,
.work-card,
.art-card,
.blog-post,
.contact-prompt,
.contact-form,
.direct-contact {
    background: var(--card-surface);
    border: 1px solid var(--line-soft);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 48px rgba(0, 0, 0, 0.12);
}

.method-card,
.package-card,
.deliverable-card,
.service-item,
.transformation-card,
.ai-value,
.portfolio-item,
.review-card,
.work-card,
.art-card,
.blog-post {
    position: relative;
}

.method-card::before,
.package-card::before,
.deliverable-card::before,
.service-item::before,
.transformation-card::before,
.ai-value::before,
.review-card::before,
.blog-post::before {
    background: linear-gradient(90deg, var(--gold), transparent);
    content: "";
    height: 2px;
    left: 18px;
    opacity: 0.42;
    position: absolute;
    right: 18px;
    top: 0;
}

.method-card:hover,
.package-card:hover,
.package-card:focus-within,
.deliverable-card:hover,
.service-item:hover,
.transformation-card:hover,
.ai-value:hover,
.portfolio-item:hover,
.review-card:hover,
.work-card:hover,
.art-card:hover,
.blog-post:hover {
    border-color: rgba(199, 164, 90, 0.42);
    box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .portfolio-page #portfolio {
    background: var(--bg);
}

html[data-theme="light"] .portfolio-page #portfolio::before,
html[data-theme="light"] .portfolio-page #portfolio::after {
    opacity: 0.16;
}

@media (min-width: 1024px) {
    .navbar {
        justify-content: space-between;
    }

    .menu-toggle {
        margin-left: 12px;
    }

    .nav-links {
        align-items: center;
        background-color: transparent;
        border-right: 0;
        bottom: auto;
        box-shadow: none;
        flex-direction: row;
        gap: 16px;
        left: auto;
        margin-left: auto;
        max-width: none;
        padding: 0;
        position: static;
        top: auto;
        transform: none;
        width: auto;
        z-index: auto;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        border: 0;
        border-radius: 0;
        display: inline-block;
        padding: 0 0 5px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background-color: transparent;
    }

    .nav-links a::after {
        display: block;
    }

    .nav-links a.nav-cta {
        border-radius: 999px;
        margin-top: 0;
        padding: 7px 14px;
    }
}

@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid,
    .services-grid,
    .method-cards,
    .results-wrapper {
        max-width: 1180px;
    }
}

@media (max-width: 760px) {
    .navbar {
        gap: 10px;
        padding: 12px 16px;
    }

    .site-sidebar {
        top: 68px;
    }

    .nav-links {
        font-size: 0.9em;
    }

    body.page-single {
        padding-top: 150px;
    }

    .site-back-button {
        left: 14px;
        padding: 8px 12px;
        top: 132px;
    }

    .page-nav {
        align-items: stretch;
        gap: 9px;
        justify-content: stretch;
        padding-inline: 4px;
    }

    .page-nav__button {
        flex: 1 1 100%;
        min-height: 46px;
        text-align: center;
    }

    .project-nav {
        align-items: stretch;
    }

    .project-nav .page-nav__button {
        flex-basis: 100%;
    }

    .page-breadcrumb {
        justify-content: flex-start;
        padding-inline: 4px;
        text-align: left;
    }

    .creative-agent {
        bottom: 14px;
        left: 14px;
        right: 14px;
    }

    .creative-agent__toggle {
        justify-content: center;
        width: 100%;
    }

    .creative-agent__panel {
        bottom: 58px;
        left: 0;
        max-height: min(560px, calc(100vh - 124px));
        right: 0;
        width: auto;
    }

    .creative-agent__actions {
        flex-direction: column;
    }

    .creative-agent__actions button {
        width: 100%;
    }

    section {
        padding: 60px 18px;
        scroll-margin-top: 150px;
    }

    .hero {
        min-height: 90vh;
        height: auto;
        padding-top: 150px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero::before {
        background-image:
            linear-gradient(180deg, rgba(9, 8, 7, 0.84) 0%, rgba(9, 8, 7, 0.96) 62%, var(--bg) 100%),
            url("images/portfolio/no-violenza-femminile-optimized.jpg");
        background-position: center, right -60px top 110px;
        background-size: cover, 260px auto;
        opacity: 0.9;
    }

    .hero h1 {
        font-size: 3.2em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero-statement {
        font-size: 1.28em;
    }

    .hero .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a {
        text-align: center;
    }

    .artist-section {
        grid-template-columns: 1fr;
    }

    .artist-section::before {
        height: 58px;
        top: 36px;
        width: 108vw;
    }

    .artist-copy {
        margin-left: 0;
    }

    .artist-copy h2 {
        font-size: 2.45em;
    }

    .artist-gallery {
        grid-template-columns: 1fr;
    }

    .art-card-large {
        grid-row: auto;
    }

    .about-content {
        justify-content: center;
    }

    .about-photo {
        width: min(100%, 240px);
        max-width: 240px;
        height: auto;
    }

    .diagnostic-layout,
    .transformation-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-result {
        padding: 24px;
    }

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

    .gestionali-grid,
    .use-case-list {
        grid-template-columns: 1fr;
    }

    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-copy {
        padding: 22px;
    }

    .results-wrapper {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 72px 1fr;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .portfolio-page #portfolio::before {
        left: -34vw;
        top: 126px;
        width: 108vw;
    }

    .portfolio-page #portfolio::after {
        bottom: 90px;
        right: -38vw;
        width: 92vw;
    }

    .portfolio-brush-strip {
        height: 54px;
        margin-top: -18px;
    }

    .project-actions,
    .direct-contact {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-post--featured {
        grid-template-columns: 1fr;
    }

    .blog-post--featured > img {
        height: auto;
        max-height: 560px;
    }

    .project-gallery {
        columns: 1;
    }

    .project-actions a,
    .direct-contact a {
        text-align: center;
    }

    .cookie-consent {
        bottom: 10px;
        max-width: calc(100% - 20px);
    }

    .cookie-consent__content {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 18px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }
}

/* Home editoriale essenziale */
.home-editorial .hero {
    align-items: center;
    background:
        radial-gradient(circle at 80% 18%, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(23, 19, 15, 0.82) 0%, var(--bg) 100%);
    display: grid;
    gap: clamp(36px, 6vw, 82px);
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    min-height: auto;
    padding: clamp(132px, 16vw, 190px) 8vw clamp(76px, 10vw, 132px);
}

.home-editorial .hero::before {
    background:
        linear-gradient(90deg, rgba(9, 8, 7, 0.92), transparent 58%),
        radial-gradient(circle at 16% 72%, rgba(212, 175, 55, 0.1), transparent 34%);
    opacity: 1;
}

.home-editorial .hero::after {
    height: 120px;
}

.home-hero__copy,
.home-hero__visual {
    position: relative;
    z-index: 1;
}

.home-editorial .hero > * {
    max-width: none;
}

.home-editorial .hero h1 {
    font-size: clamp(3em, 7.4vw, 7.4em);
    letter-spacing: -0.045em;
    line-height: 0.92;
    max-width: 980px;
}

.home-editorial .hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.15em, 2vw, 1.55em);
    font-weight: 500;
    max-width: 760px;
}

.home-hero__visual {
    align-self: stretch;
    justify-self: end;
    margin: 0;
    max-width: 420px;
    width: 100%;
}

.home-hero__visual img {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 18px 18px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
    height: 100%;
    max-height: 620px;
    object-fit: cover;
    width: 100%;
}

.home-hero__visual figcaption {
    color: var(--text-soft);
    font-size: 0.82em;
    line-height: 1.45;
    margin-top: 14px;
}

.home-section-heading {
    margin: 0 auto 46px;
    max-width: 1120px;
}

.home-section-heading h2,
.home-about__copy h2,
.home-contact h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(2.2em, 4.8vw, 4.7em);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.home-section-heading--inline {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.text-link,
.home-contact .primary {
    color: var(--gold);
    display: inline-flex;
    font-weight: 900;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--gold-bright);
    text-decoration: underline;
}

.editorial-areas {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    margin: 0 auto;
    max-width: 1120px;
}

.editorial-area {
    border-top: 1px solid var(--line-soft);
    padding: clamp(28px, 4vw, 54px) 0;
}

.editorial-area--wide {
    border-right: 1px solid var(--line-soft);
    grid-row: span 2;
    padding-right: clamp(30px, 5vw, 72px);
}

.editorial-area:not(.editorial-area--wide) {
    padding-left: clamp(28px, 4vw, 54px);
}

.editorial-area span {
    color: var(--gold-bright);
    display: block;
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin-bottom: 22px;
}

.editorial-area h3 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.7em, 3.6vw, 3.5em);
    font-weight: 500;
    line-height: 1.04;
    margin-bottom: 20px;
}

.editorial-area p {
    color: var(--text-muted);
    font-size: clamp(1em, 1.45vw, 1.2em);
    max-width: 560px;
}

.home-selected-portfolio {
    background-color: var(--bg-soft);
}

.home-portfolio-grid {
    max-width: 1120px;
}

@media (min-width: 980px) {
    .home-portfolio-grid .portfolio-item {
        grid-column: span 4;
    }

    .home-portfolio-grid .portfolio-item:first-child {
        grid-column: span 7;
    }

    .home-portfolio-grid .portfolio-item:nth-child(2) {
        grid-column: span 5;
    }

    .home-portfolio-grid .portfolio-item:nth-child(3),
    .home-portfolio-grid .portfolio-item:nth-child(4) {
        grid-column: span 6;
    }

    .home-portfolio-grid .portfolio-item:first-child img,
    .home-portfolio-grid .portfolio-item:nth-child(2) img {
        aspect-ratio: 4 / 3;
    }
}

.home-portfolio-grid .portfolio-item {
    border-radius: 0;
}

.home-portfolio-grid .portfolio-item .caption p {
    font-size: 0.96em;
}

.testimonials-section {
    background:
        radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.12), transparent 30%),
        var(--bg);
}

.testimonials-section .home-section-heading p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: clamp(1em, 1.35vw, 1.15em);
    margin-top: 16px;
    max-width: 760px;
}

.testimonial-card,
.project-testimonial {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--panel);
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.testimonial-card {
    margin: 0 auto;
    max-width: 960px;
    padding: clamp(30px, 5vw, 58px);
}

.testimonial-stars {
    color: var(--gold-bright);
    font-size: clamp(1.05em, 1.5vw, 1.28em);
    letter-spacing: 0.18em;
    line-height: 1;
    margin-bottom: 28px;
}

.testimonial-text {
    border: 0;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.15em, 2vw, 1.55em);
    font-style: normal;
    line-height: 1.45;
    margin: 0;
    padding: 0;
}

.testimonial-text p + p {
    margin-top: 18px;
}

.testimonial-author {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.testimonial-author cite {
    color: var(--gold);
    font-style: normal;
    font-weight: 900;
}

.testimonial-author span {
    color: var(--text-soft);
    font-size: 0.92em;
}

.testimonial-project,
.testimonial-source {
    color: var(--text-soft);
    font-size: 0.92em;
    margin-top: 14px;
}

.testimonial-project a {
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
}

.testimonial-project a:hover,
.testimonial-project a:focus-visible {
    color: var(--gold-bright);
    text-decoration: underline;
}

.project-testimonial {
    padding: clamp(28px, 4vw, 46px);
}

.project-testimonial .testimonial-text {
    font-size: clamp(1.08em, 1.8vw, 1.36em);
}

.home-about {
    align-items: center;
    display: grid;
    gap: clamp(36px, 7vw, 92px);
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1120px;
}

.home-about__image {
    margin: 0;
}

.home-about__image img {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center top;
    width: min(100%, 380px);
}

.home-about__copy p {
    color: var(--text-muted);
    font-size: clamp(1.02em, 1.5vw, 1.18em);
    margin-top: 16px;
    max-width: 700px;
}

.home-about__copy .text-link {
    margin-top: 26px;
}

.home-contact {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.16), transparent 62%),
        var(--panel);
    margin: 0 auto 90px;
    max-width: 1120px;
    padding: clamp(54px, 8vw, 92px);
}

.home-contact p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: clamp(1.05em, 1.6vw, 1.24em);
    margin: 22px 0 30px;
    max-width: 760px;
}

.home-contact .primary {
    background-color: var(--gold);
    border-radius: 999px;
    color: var(--bg);
    padding: 14px 30px;
}

.home-contact .primary:hover,
.home-contact .primary:focus-visible {
    background-color: var(--gold-bright);
    text-decoration: none;
    transform: translateY(-2px);
}

.gestionali-safety-note {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.11), transparent 64%),
        var(--panel);
    border-left: 3px solid var(--gold);
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(32px, 5vw, 58px);
}

.gestionali-safety-note h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(2em, 3.6vw, 3.4em);
    font-weight: 500;
    line-height: 1.08;
}

.gestionali-safety-note p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.04em;
    margin-top: 18px;
}

@media (max-width: 920px) {
    .home-editorial .hero,
    .home-about,
    .editorial-areas {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        justify-self: start;
        max-width: 360px;
    }

    .home-section-heading--inline {
        align-items: flex-start;
        flex-direction: column;
    }

    .editorial-area--wide {
        border-right: 0;
        grid-row: auto;
        padding-right: 0;
    }

    .editorial-area:not(.editorial-area--wide) {
        padding-left: 0;
    }
}

@media (max-width: 680px) {
    .home-editorial .hero {
        padding: 116px 22px 72px;
    }

    .home-editorial .hero h1 {
        font-size: clamp(2.55em, 14vw, 4em);
    }

    .home-hero__visual {
        max-width: 100%;
    }

    .home-contact {
        margin-bottom: 50px;
        padding: 34px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
