/* ==========================================================================
   Aleksandra Dobricanovic — proposta di redesign (v2)
   Direzione: atelier editoriale di precisione. Palette avorio/inchiostro/
   bordeaux/bronzo, serif Bodoni Moda + sans Manrope, cornice bronzo scostata
   come motivo ricorrente ispirato al compasso della sezione aurea (φ).
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #221e1b;
    --ink-soft: #3a332e;
    --paper: #faf6f0;
    --paper-deep: #f1e8e0;
    --wine: #6e2b3a;
    --wine-deep: #3f1620;
    --brass: #ad8a54;
    --brass-light: #cbae7c;
    --blush: #e3cec8;
    --stone: #6b6058;
    --white: #fffdfb;
    --line: rgba(34, 30, 27, 0.14);
    --line-on-dark: rgba(250, 246, 240, 0.22);

    --font-display: 'Bodoni Moda', 'Times New Roman', serif;
    --font-body: 'Manrope', -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --container: 1180px;
    --gutter: 1.25rem;

    --s-1: 0.5rem;
    --s-2: 0.75rem;
    --s-3: 1.25rem;
    --s-4: 2rem;
    --s-5: 3rem;
    --s-6: 4.5rem;
    --s-7: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Buttons -------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    touch-action: manipulation;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--wine);
    color: var(--white);
    border-color: var(--wine);
}

.btn--primary:hover {
    background: var(--wine-deep);
    border-color: var(--wine-deep);
}

.btn--outline-dark {
    background: transparent;
    color: var(--paper);
    border-color: var(--line-on-dark);
}

.btn--outline-dark:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn--outline {
    background: transparent;
    color: var(--wine);
    border-color: var(--wine);
}

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

.btn:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* ---- Header / nav ----------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__toggle-bar {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    list-style: none;
    transition: max-height 0.35s ease;
}

.nav__links.is-open {
    max-height: 560px;
}

.nav__links li {
    border-top: 1px solid var(--line);
}

.nav__links a {
    display: block;
    padding: 1rem var(--gutter);
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: var(--wine);
    padding-left: 1.5rem;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.hero__media {
    position: relative;
    min-height: 46vh;
    overflow: hidden;
    background: var(--ink);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: grayscale(0.3) sepia(0.18) contrast(1.05) brightness(0.92);
    animation: heroReveal 1.4s ease both;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 30, 27, 0.15) 0%, rgba(34, 30, 27, 0.55) 100%);
}

.hero__panel {
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    padding: var(--s-6) var(--gutter);
}

.hero__inner {
    max-width: 480px;
    margin: 0 auto;
    animation: heroFadeUp 1s ease 0.2s both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 1.08;
    color: var(--white);
}

.hero__subtitle {
    margin-top: var(--s-3);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--brass-light);
}

.hero__quote {
    margin-top: var(--s-4);
    padding-left: var(--s-3);
    border-left: 1px solid var(--brass);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(250, 246, 240, 0.88);
    line-height: 1.5;
}

.hero__cta {
    margin-top: var(--s-5);
}

@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ---- Sections generic --------------------------------------------------- */

.section {
    padding: var(--s-6) 0;
}

.section--deep {
    background: var(--paper-deep);
}

.section--ink {
    background: var(--ink);
    color: var(--paper);
}

.section__head {
    max-width: 640px;
    margin: 0 auto var(--s-5);
    text-align: center;
}

.section__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.1rem;
    color: var(--ink);
    line-height: 1.15;
}

.section--ink .section__title {
    color: var(--white);
}

.section__rule {
    width: 46px;
    height: 2px;
    background: var(--brass);
    margin: var(--s-3) auto;
    border: none;
}

.section__subtitle {
    color: var(--stone);
    font-size: 1.02rem;
    line-height: 1.6;
}

.section--ink .section__subtitle {
    color: rgba(250, 246, 240, 0.72);
}

/* ---- Offset frame (signature device) ------------------------------------ */

.frame {
    position: relative;
}

.frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: -14px;
    bottom: -14px;
    border: 1px solid var(--brass);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.frame > img {
    border-radius: var(--radius-lg);
}

.frame > img,
.frame > .frame__inner {
    position: relative;
    z-index: 1;
}

/* ---- Portfolio / gallery -------------------------------------------------- */

.gallery {
    background: var(--paper);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5) var(--s-4);
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item__frame {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portfolio-item__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-item__frame img {
    transform: scale(1.04);
}

.portfolio-item__caption {
    margin-top: var(--s-3);
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
}

.portfolio-item__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink);
}

.portfolio-item__desc {
    margin-top: 0.35rem;
    color: var(--stone);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---- About ---------------------------------------------------------------- */

.about {
    background: var(--paper);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    align-items: center;
}

.about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 20%;
    filter: grayscale(0.3) sepia(0.15) contrast(1.05);
    border-radius: var(--radius-lg);
}

.about__body p {
    margin-bottom: var(--s-3);
    font-size: 1.02rem;
    color: var(--ink-soft);
}

.about__body p:last-child {
    margin-bottom: 0;
}

.about__body strong {
    color: var(--wine);
    font-weight: 600;
}

/* ---- Specs (treatment info) ------------------------------------------------ */

.specs {
    margin-top: var(--s-6);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
}

.specs__item {
    padding-top: var(--s-3);
    border-top: 2px solid var(--brass);
}

.specs__item h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: var(--s-2);
}

.specs__item p {
    color: var(--stone);
    font-size: 0.98rem;
}

.specs__item strong {
    color: var(--ink-soft);
    font-weight: 700;
}

/* ---- Features (why choose) ------------------------------------------------- */

.features {
    background: var(--paper-deep);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-3);
}

.features-grid__item {
    padding: var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.features-grid__mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brass);
    margin-bottom: var(--s-2);
}

.features-grid__item h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: var(--s-2);
}

.features-grid__item p {
    color: var(--stone);
    font-size: 0.96rem;
}

.features-grid__item strong {
    color: var(--ink-soft);
    font-weight: 700;
}

.highlight {
    margin-top: var(--s-6);
    padding: var(--s-5) var(--gutter);
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--brass);
    border-radius: var(--radius-lg);
}

.highlight h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: var(--s-2);
}

.highlight p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(250, 246, 240, 0.78);
    font-size: 1rem;
}

.highlight strong {
    color: var(--brass-light);
    font-weight: 700;
}

/* ---- FAQ --------------------------------------------------------------------- */

.faq {
    background: var(--paper);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 1.3rem 0.2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
    cursor: pointer;
}

.faq-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--brass);
    transition: transform 0.3s ease;
}

.faq-item__icon::before {
    width: 14px;
    height: 1px;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    width: 1px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-item__a {
    max-height: 400px;
}

.faq-item__a p {
    padding: 0 0.2rem 1.4rem;
    color: var(--stone);
    line-height: 1.65;
}

.faq-item__a strong {
    color: var(--wine);
    font-weight: 700;
}

.faq-item__q:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.faq-cta {
    max-width: 760px;
    margin: var(--s-6) auto 0;
    padding: var(--s-5);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq-cta h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.35rem;
    margin-bottom: var(--s-2);
    color: var(--ink);
}

.faq-cta p {
    color: var(--stone);
    margin-bottom: var(--s-4);
}

/* ---- Precautions timeline ------------------------------------------------- */

.precautions {
    background: var(--paper-deep);
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}

.timeline__item {
    position: relative;
    padding-left: var(--s-4);
    border-left: 1px solid var(--brass);
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brass);
}

.timeline__period {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: var(--s-2);
}

.timeline__list {
    list-style: none;
}

.timeline__list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--stone);
    font-size: 0.96rem;
    line-height: 1.5;
}

.timeline__list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--wine);
}

.notice {
    margin-top: var(--s-6);
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--brass);
    border-radius: var(--radius);
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.6;
    background: var(--paper);
}

.notice strong {
    color: var(--wine);
}

/* ---- Pricing --------------------------------------------------------------- */

.pricing {
    background: var(--paper);
}

.pricing-plate {
    max-width: 460px;
    margin: 0 auto;
    padding: var(--s-6) var(--s-4);
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--brass);
    border-radius: var(--radius-lg);
}

.pricing-plate__price {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 3.4rem;
    color: var(--white);
}

.pricing-plate__label {
    margin-top: var(--s-1);
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.98rem;
}

.pricing-plate__divider {
    width: 40px;
    height: 1px;
    background: var(--brass);
    margin: var(--s-4) auto;
    border: none;
}

.pricing-plate__list {
    list-style: none;
    text-align: left;
    margin-bottom: var(--s-5);
}

.pricing-plate__list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
    color: rgba(250, 246, 240, 0.9);
}

.pricing-plate__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brass-light);
}

/* ---- Contact ------------------------------------------------------------------ */

.contact {
    background: var(--paper-deep);
}

.contact-highlight {
    padding: var(--s-5) var(--s-4);
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    margin-bottom: var(--s-6);
    border-radius: var(--radius-lg);
}

.contact-highlight h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: var(--s-2);
}

.contact-highlight p {
    color: rgba(250, 246, 240, 0.78);
    margin-bottom: var(--s-4);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}

.contact-info,
.social {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-4);
}

.contact-info h3,
.social h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: var(--s-4);
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row__label {
    color: var(--stone);
}

.contact-row__value {
    color: var(--ink-soft);
    font-weight: 500;
    text-align: right;
    text-decoration: none;
}

.contact-row__value:hover {
    color: var(--wine);
    text-decoration: underline;
}

.social {
    text-align: center;
}

.social p {
    color: var(--stone);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: var(--s-4);
}

.social__links {
    display: flex;
    justify-content: center;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.social__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.15rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.social__links a:hover,
.social__links a:focus-visible {
    background: var(--brass);
    color: var(--white);
}

.social__note {
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
    color: var(--stone);
    font-size: 0.9rem;
}

/* ---- Footer -------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(250, 246, 240, 0.75);
    text-align: center;
    padding: var(--s-4) 0;
}

.site-footer p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.site-footer a {
    color: rgba(250, 246, 240, 0.75);
}

.privacy-link {
    display: inline-block;
    margin-top: var(--s-2);
    font-size: 0.86rem;
    text-decoration: underline;
}

/* ---- Focus ring baseline -------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (min-width: 860px) {
    .nav__toggle {
        display: none;
    }

    .nav__links {
        position: static;
        max-height: none;
        overflow: visible;
        display: flex;
        background: none;
        border: none;
        width: auto;
    }

    .nav__links li {
        border: none;
    }

    .nav__links {
        gap: var(--s-4);
    }

    .nav__links a {
        padding: 0.4rem 0;
        position: relative;
    }

    .nav__links a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 100%;
        bottom: 0;
        height: 1px;
        background: var(--wine);
        transition: right 0.25s ease;
    }

    .nav__links a:hover,
    .nav__links a:focus-visible {
        padding-left: 0;
        color: var(--wine);
    }

    .nav__links a:hover::after,
    .nav__links a:focus-visible::after {
        right: 0;
    }

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

    .hero__panel {
        order: -1;
        padding: var(--s-6) var(--s-6);
    }

    .hero__title {
        font-size: 3.6rem;
    }

    .section {
        padding: var(--s-7) 0;
    }

    .section__title {
        font-size: 2.7rem;
    }

    .about__grid {
        grid-template-columns: 1fr 1.1fr;
    }

    .specs {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-5);
    }

    .specs__item:not(:first-child) {
        padding-left: var(--s-4);
        border-left: 1px solid var(--line);
        border-top: 2px solid var(--brass);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .hero__inner {
        max-width: 520px;
    }
}
