/*
Theme Name: FotoAstuto Theme
Theme URI: https://www.fotoastuto.com
Author: Andrea
Description: Tema WordPress cinematografico, dinamico e SEO-ready per FotoAstuto.
Version: 1.0.0
Text Domain: fotoastuto
Requires at least: 7.0
Requires PHP: 8.5
*/

:root {
	--primary: #14110f;
	--secondary: #1c1713;
	--accent: #b8935a;
	--background: #14110f;
	--panel: #1c1713;
	--text: #f3ecdf;
	--text-secondary: #c9c0af;
	--gold: #b8935a;
	--borders: #806b4c;
	--hover: #d7a491;
	--font-heading: 'Fraunces', Georgia, serif;
	--font-body: 'Jost', Arial, sans-serif;
	--ink: var(--text);
	--ink-dim: var(--text-secondary);
	--bg: var(--background);
	--bg-panel: var(--panel);
	--gold-soft: #8a6e45;
	--line: color-mix(in srgb, var(--gold) 35%, transparent);
	--site-padding: clamp(1.25rem, 5vw, 6rem);
	--content-width: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.65; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1.2rem; }
button, input, textarea { font: inherit; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: .75rem 1rem; z-index: 1000; top: .5rem; left: .5rem; background: var(--text); color: var(--background); }
.skip-link { position: fixed; }
.eyebrow { display: block; margin-bottom: .9rem; color: var(--gold); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .8rem 1.6rem; border: 1px solid var(--gold); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.button:hover, .button:focus-visible { background: var(--gold); color: var(--background); transform: translateY(-2px); }
.button--gold { background: var(--gold); color: var(--background); }
.button--gold:hover, .button--gold:focus-visible { background: transparent; color: var(--gold); }
.button--quiet { border-color: var(--borders); color: var(--text); }
.button--quiet:hover { border-color: var(--gold); }
.site-main { min-height: 55vh; }
.hero__placeholder, .is-placeholder {
	position: relative;
	background: linear-gradient(135deg, rgba(184,147,90,.14), rgba(0,0,0,0) 60%), repeating-linear-gradient(45deg, #23201b, #23201b 2px, #201c18 2px, #201c18 40px);
}
.hero__placeholder::after, .is-placeholder::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 14px 18px;
	color: var(--text-secondary);
	content: attr(data-label);
	font-size: .68rem;
	letter-spacing: .18em;
	opacity: .55;
	text-transform: uppercase;
}

/* Header and responsive navigation */
.site-header { position: fixed; z-index: 50; top: 0; right: 0; left: 0; padding: 40px 6vw 26px; background: linear-gradient(to bottom, rgba(20,17,15,.85), rgba(20,17,15,0)); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-title, .custom-logo-link { display: inline-block; color: var(--text); text-decoration: none; }
.site-title { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; letter-spacing: .02em; }
.custom-logo { width: auto; max-height: 3.1rem; }
.fotoastuto-site-logo { display: block; width: 3.25rem; height: 3.25rem; }
.fotoastuto-site-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.primary-navigation ul, .footer-navigation ul { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.5rem); padding: 0; margin: 0; list-style: none; }
.primary-navigation a { color: var(--text-secondary); font-size: .78rem; font-weight: 400; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.primary-navigation .current-menu-item a, .primary-navigation a:hover { color: var(--gold); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .6rem; border: 1px solid var(--borders); background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 100%; height: 1px; margin: .34rem 0; background: currentColor; }

/* Home */
.hero { position: relative; display: flex; min-height: 640px; height: 100vh; overflow: hidden; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: var(--secondary); text-align: center; isolation: isolate; }
.hero__image, .hero__placeholder, .hero__overlay { position: absolute; inset: 0; z-index: -1; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; animation: fotoastuto-kenburns 22s ease-out alternate infinite; }
.hero__overlay { background: linear-gradient(to top, rgba(20,17,15,.95) 0%, rgba(20,17,15,.35) 45%, rgba(20,17,15,.55) 100%); }
.hero__content { position: relative; width: auto; max-width: 820px; padding: 0 24px; }
.hero__content .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: none; margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: .01em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero__text { max-width: 520px; margin: 24px auto 0; color: var(--text-secondary); font-size: 1.05rem; }
.hero__actions { margin-top: 38px; }
.hero .button { padding: 14px 34px; font-size: .78rem; letter-spacing: .2em; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-secondary); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll::after { width: 1px; height: 46px; background: var(--line); content: ''; }
.section { padding: 8vw 6vw; }
.section--panel { background: var(--panel); }
.section-heading { max-width: 640px; margin: 0 auto 4.5rem; text-align: center; }
.section-heading h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading p { margin-top: 18px; color: var(--text-secondary); }
.chapters { border-top: 0; }
.chapter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: none; margin: 0; border-top: 1px solid var(--line); gap: 5vw; padding: 6vw; }
.chapter:nth-child(even) { direction: rtl; }
.chapter:nth-child(even) > * { direction: ltr; }
.chapter__media { position: relative; aspect-ratio: auto; min-height: 460px; overflow: hidden; background: var(--secondary); }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.chapter:hover .chapter__media img { transform: scale(1.035); }
.chapter__number { position: absolute; z-index: 1; top: -28px; left: -14px; color: transparent; font-family: var(--font-heading); font-size: 5.5rem; font-style: italic; line-height: 1; -webkit-text-stroke: 1px var(--gold-soft); }
.chapter__content { max-width: none; }
.chapter__content h3 { margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.chapter__content p { max-width: 440px; margin-bottom: 28px; color: var(--text-secondary); }
.text-link { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--gold-soft); color: var(--gold); font-size: .78rem; font-weight: 400; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }

/* Portfolio */
.section#portfolio { border-top: 1px solid var(--line); }
.portfolio-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 130px; gap: 12px; max-width: none; margin: auto; }
.portfolio-card { position: relative; display: block; min-height: 0; overflow: hidden; background: var(--secondary); color: var(--text); }
.portfolio-card:nth-child(7n + 1) { grid-row: span 3; grid-column: span 3; }
.portfolio-card:nth-child(7n + 2) { grid-row: span 2; grid-column: span 3; }
.portfolio-card:nth-child(7n + 3) { grid-row: span 2; grid-column: span 2; }
.portfolio-card:nth-child(7n + 4) { grid-row: span 3; grid-column: span 2; }
.portfolio-card:nth-child(7n + 5) { grid-row: span 2; grid-column: span 2; }
.portfolio-card:nth-child(7n + 6), .portfolio-card:nth-child(7n + 7) { grid-row: span 2; grid-column: span 3; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.portfolio-card__caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgba(20,17,15,.8)); font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.75rem); opacity: 0; transform: translateY(.5rem); transition: opacity .35s ease, transform .35s ease; }
.portfolio-card:hover img, .portfolio-card:focus img { transform: scale(1.04); }
.portfolio-card:hover .portfolio-card__caption, .portfolio-card:focus .portfolio-card__caption { opacity: 1; transform: none; }
.portfolio-more { margin-top: 2rem; text-align: center; }
.quote { border-top: 1px solid var(--line); padding: 9vw 10vw; text-align: center; }
.quote blockquote { max-width: 820px; margin: auto; color: var(--text); font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.3rem); font-style: italic; font-weight: 400; line-height: 1.5; }
.quote cite { display: block; margin-top: 28px; color: var(--gold); font-size: .78rem; font-style: normal; letter-spacing: .18em; text-transform: uppercase; }
.about-home { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; border-top: 1px solid var(--line); gap: 6vw; padding: 8vw 6vw; }
.about-home__image { min-height: 520px; background: var(--secondary); }
.about-home__image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.about-home h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-home p { max-width: 480px; margin-bottom: 16px; color: var(--text-secondary); white-space: pre-line; }

/* Inner pages */
.page-hero { padding: clamp(9rem, 16vw, 13rem) var(--site-padding) clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid color-mix(in srgb, var(--borders) 55%, transparent); text-align: center; }
.single-portfolio .page-hero { padding-top: clamp(7rem, 10vw, 9rem); }
.post-type-archive-portfolio .page-hero { padding-top: clamp(8rem, 14vw, 11rem); }
.page-hero h1 { max-width: 18ch; margin: auto; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-hero p { max-width: 43rem; margin: 1.25rem auto 0; color: var(--text-secondary); }
.page-hero .eyebrow { margin: 0 auto .9rem; color: var(--gold); }
.single-portfolio .page-hero h1 + p { font-size: 20px; color: var(--gold); }
.content-shell { width: min(100% - 2 * var(--site-padding), 50rem); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.entry-content { color: var(--text-secondary); font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2, .entry-content h3 { color: var(--text); }
.entry-content a { color: var(--gold); }
.entry-content img, .entry-content .wp-block-image img { height: auto; border: 1px solid color-mix(in srgb, var(--borders) 45%, transparent); }
.entry-content .wp-block-gallery { margin-top: 2rem; }
.theme-breadcrumbs { max-width: var(--content-width); margin: 0 auto 2rem; padding: 0 var(--site-padding); color: var(--text-secondary); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; }
.theme-breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.theme-breadcrumbs li { display: flex; gap: .5rem; }
.theme-breadcrumbs a { color: var(--gold); text-decoration: none; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--content-width); margin: auto; gap: 1.25rem; }
.archive-card { overflow: hidden; background: var(--panel); }
.archive-card__image { display: block; aspect-ratio: 4 / 3; background: var(--secondary); }
.archive-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.archive-card:hover .archive-card__image img { transform: scale(1.04); }
.archive-card__body { padding: 1.5rem; }
.archive-card__body h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
.archive-card__body h2 a { text-decoration: none; }
.archive-card__body p { margin: .8rem 0 0; color: var(--text-secondary); }
.post-meta { color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.pagination { display: flex; justify-content: center; margin-top: 3rem; color: var(--gold); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination a, .pagination span { padding: .5rem .75rem; border: 1px solid var(--borders); text-decoration: none; }
.portfolio-story { width: min(100% - 2 * var(--site-padding), 58rem); margin: auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.portfolio-cover { aspect-ratio: 16 / 9; margin: 0 0 clamp(2rem, 5vw, 4rem); background: var(--secondary); }
.portfolio-cover img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-section { margin-top: clamp(3rem, 7vw, 6rem); }
.portfolio-section__title { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.portfolio-album-intro { margin: -.5rem 0 1.5rem; color: var(--text-secondary); font-family: var(--font-body); font-size: 1.08rem; font-weight: 300; line-height: 1.65; text-align: left; }
.portfolio-book-recommendations > .portfolio-section__title { font-size: 1.25rem; line-height: 1.4; }
.portfolio-story-title { color: var(--gold); font-size: clamp(1.75rem, 3.5vw, 3rem); }
.portfolio-password .post-password-form input[type="password"] { max-width: 100%; padding: .7rem; border: 1px solid var(--borders); background: var(--panel); color: var(--text); }
.portfolio-password .post-password-form input[type="submit"] { padding: .75rem 1.3rem; border: 1px solid var(--gold); background: var(--gold); color: var(--background); cursor: pointer; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.portfolio-gallery figure { min-height: 16rem; margin: 0; overflow: hidden; background: var(--secondary); }
.portfolio-gallery figure:nth-child(5n + 1) { grid-column: span 2; min-height: 32rem; }
.portfolio-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.portfolio-gallery figure:hover img { transform: scale(1.03); }
.trailer { overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.trailer iframe { width: 100%; height: 100%; border: 0; }
.portfolio-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.portfolio-details__item { padding: 1.5rem; background: var(--panel); }
.portfolio-details__item h3 { margin-bottom: .65rem; color: var(--gold); font-family: var(--font-body); font-size: .73rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.portfolio-details__item p { margin: 0; white-space: pre-line; color: var(--text-secondary); }
.portfolio-location-image { display: block; width: 100%; height: auto; margin-top: 1rem; }
.portfolio-testimonial { padding: clamp(2rem, 5vw, 4rem); background: var(--panel); text-align: center; }
.portfolio-testimonial blockquote { font-size: clamp(1.4rem, 3vw, 2.4rem); font-style: italic; }
.portfolio-testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portfolio-testimonial__entry { min-width: 0; margin: 0; padding: 1.5rem; border: 1px solid var(--line); }
.portfolio-testimonial__entry:only-child { grid-column: 1 / -1; }
.portfolio-testimonial__entry blockquote { font-size: clamp(1.2rem, 2vw, 1.7rem); overflow-wrap: anywhere; }
.portfolio-testimonial__entry blockquote { white-space: pre-line; }
.portfolio-testimonial__entry figcaption { margin-top: 1rem; color: var(--gold); font-size: .9rem; }
.portfolio-testimonial__entry figcaption { display: flex; justify-content: center; align-items: center; gap: .5rem; }
.testimonial-source { display: inline-flex; flex-shrink: 0; width: 20px; height: 20px; }
.testimonial-source svg { width: 100%; height: 100%; }
.testimonial-source--instagram { color: #e1306c; }
.testimonial-source--facebook { color: #4267b2; }
.testimonial-source--whatsapp { color: #25d366; }
.testimonial-source--google { color: #4285f4; }
.testimonial-source--matrimonio { color: var(--gold); }
.flip-album { width: 100%; }
.flip-album__stage { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--background); perspective: 1600px; }
[data-flip-album] .flip-album__stage { touch-action: pan-y pinch-zoom; }
@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  [data-book-recommendations]:not(.is-fullscreen) .flip-album__stage {
    height: 65vh;
    height: 65svh;
    aspect-ratio: auto;
  }
}
.flip-album__page { position: absolute; inset: 0; visibility: hidden; margin: 0; opacity: 0; transform: rotateY(7deg) scale(.98); transform-origin: left center; transition: opacity .55s ease, transform .75s cubic-bezier(.2,.7,.2,1), visibility .55s; }
.flip-album__page.is-active { visibility: visible; opacity: 1; transform: rotateY(0) scale(1); }
.flip-album__page.turn-backward { transform-origin: right center; }
.flip-album__page { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.flip-album__page img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--background); }
.flip-album__caption { padding: .75rem 1rem 0; color: var(--text-secondary); font-size: 18px; line-height: 1.5; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.flip-album__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding-top: 1rem; color: var(--text-secondary); font-size: .72rem; letter-spacing: .16em; }
.flip-album__controls button { display: grid; width: 2.75rem; height: 2.75rem; border: 1px solid var(--borders); background: transparent; color: var(--gold); cursor: pointer; place-items: center; transition: background .25s ease, color .25s ease; }
.flip-album__controls button:hover, .flip-album__controls button:focus-visible { background: var(--gold); color: var(--background); }
.flip-album.is-fullscreen { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; width: 100%; height: 100%; height: 100dvh; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--background); }
.flip-album.is-fullscreen .flip-album__stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.flip-album.is-fullscreen .flip-album__controls { flex-shrink: 0; gap: clamp(.6rem, 3vw, 1.4rem); }
.flip-album.is-fullscreen [data-album-fullscreen] { font-size: 0; }
.flip-album.is-fullscreen [data-album-fullscreen]::after { content: '×'; font-size: 1.6rem; }
.not-found { padding: 13rem var(--site-padding) 8rem; text-align: center; }
.not-found h1 { font-size: clamp(3rem, 8vw, 7rem); }

/* Portfolio category: editorial album index. */
.category-hero { padding: clamp(8rem, 14vw, 11rem) var(--site-padding) clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); text-align: center; }
.category-hero h1 { font-size: clamp(3rem, 7vw, 6rem); font-style: italic; }
.single-servizi .category-hero h1, .tax-portfolio_category.term-eventi .category-hero h1 { max-width: 18ch; margin: auto; color: var(--text); font-family: var(--font-heading); font-size: clamp(2.8rem, 6vw, 5.5rem); font-style: normal; }
.category-hero__intro { max-width: 45rem; margin: 1.5rem auto 0; color: var(--text-secondary); font-size: 1.08rem; }
.category-albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 90rem; margin: auto; gap: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 3vw, 3rem); padding: clamp(4rem, 8vw, 8rem) var(--site-padding); }
.album-card:nth-child(even) { margin-top: clamp(2rem, 8vw, 8rem); }
.album-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.album-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184,147,90,.14), transparent 60%), repeating-linear-gradient(45deg, #23201b, #23201b 2px, #201c18 2px, #201c18 40px); }
.album-card__view { position: absolute; right: 1.2rem; bottom: 1.2rem; padding: .65rem .9rem; background: rgba(20,17,15,.82); color: var(--gold); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(.5rem); transition: opacity .3s ease, transform .3s ease; }
.album-card:hover .album-card__media img { transform: scale(1.035); }
.album-card:hover .album-card__view, .album-card__media:focus-visible .album-card__view { opacity: 1; transform: none; }
.album-card__content { padding: 1.5rem .25rem 0; }
.album-card__content h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.album-card__content h2 a { text-decoration: none; }
.album-card__content > p:last-child { max-width: 34rem; margin-top: .9rem; color: var(--text-secondary); }
.category-empty { grid-column: 1 / -1; color: var(--text-secondary); text-align: center; }

/* Footer */
.site-footer { padding: 8vw 6vw 4vw; border-top: 1px solid var(--line); background: var(--background); text-align: center; }
.site-footer__cta { max-width: 42rem; margin: auto; }
.site-footer h2 { margin-bottom: 24px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-style: italic; }
.site-footer__cta > p:not(.eyebrow) { max-width: 460px; margin: 0 auto 34px; color: var(--text-secondary); }
.site-footer .button { padding: 16px 40px; border: 0; font-size: .78rem; letter-spacing: .2em; }
.site-footer__meta { display: flex; align-items: center; justify-content: space-between; max-width: none; margin: 5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); gap: 1.5rem; color: var(--text-secondary); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__meta p { margin: 0; }
.footer-navigation a { text-decoration: none; }

[data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes fotoastuto-kenburns { to { transform: scale(1.045); } }

@media (max-width: 880px) {
	.site-header { position: absolute; padding-top: calc(1rem + 12px); }
	.menu-toggle { display: block; }
	.primary-navigation { position: absolute; top: calc(100% + .6rem); right: var(--site-padding); left: var(--site-padding); visibility: hidden; padding: 1.2rem; border: 1px solid var(--borders); background: var(--panel); opacity: 0; transform: translateY(-.5rem); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
	.primary-navigation.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-navigation ul { align-items: stretch; flex-direction: column; gap: .9rem; }
	.primary-navigation a { display: block; padding: .45rem; }
	.hero { min-height: 640px; }
	.chapter, .about-home { grid-template-columns: 1fr; }
	.chapter { padding: 8vw 6vw; }
	.chapter:nth-child(even) { direction: ltr; }
	.chapter__media { min-height: 380px; }
	.chapter__content { padding: 0; }
	.portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.portfolio-card:nth-child(n) { grid-row: span 2; grid-column: span 1; }
	.portfolio-card__caption { opacity: 1; transform: none; }
	.about-home__image, .about-home__image img { min-height: 400px; }
	.archive-grid { grid-template-columns: 1fr; }
	.portfolio-details { grid-template-columns: 1fr; }
	.portfolio-testimonials-grid { grid-template-columns: 1fr; }
	.portfolio-gallery figure, .portfolio-gallery figure:nth-child(5n + 1) { min-height: 12rem; grid-column: span 1; }
	.portfolio-gallery figure:nth-child(3n + 1) { min-height: 18rem; grid-column: span 2; }
	.site-footer__meta { align-items: center; flex-direction: column; }
	.footer-navigation ul { justify-content: center; flex-wrap: wrap; }
}

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

/* Homepage: structure and proportions matched to mockup-astuto.html */
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; letter-spacing: .02em; }
.home-page .ph { position: relative; display: flex; min-height: 260px; align-items: flex-end; justify-content: flex-start; background: linear-gradient(135deg, rgba(184,147,90,.14), rgba(0,0,0,0) 60%), repeating-linear-gradient(45deg, #23201b, #23201b 2px, #201c18 2px, #201c18 40px); }
.home-page .ph::after { position: static; padding: 14px 18px; color: var(--text-secondary); content: attr(data-label); font-size: .68rem; letter-spacing: .18em; opacity: .55; text-transform: uppercase; }
.home-page .hero .ph, .hero-media { position: absolute; inset: 0; z-index: -1; min-height: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: fotoastuto-kenburns 22s ease-out alternate infinite; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,17,15,.95) 0%, rgba(20,17,15,.35) 45%, rgba(20,17,15,.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 24px; }
.hero-content .eyebrow { display: block; margin-bottom: 22px; }
.hero-content h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; line-height: 1.05; }
.hero-content h1 em { color: var(--gold); font-style: italic; }
.hero-content p.sub { max-width: 520px; margin: 16px auto 0; color: var(--text-secondary); font-size: 1.05rem; }
.hero-cta { display: inline-block; margin-top: 38px; padding: 14px 34px; border: 1px solid var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; transition: all .3s; }
.hero-cta:hover { background: var(--gold); color: var(--background); }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-secondary); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue::after { width: 1px; height: 46px; background: var(--line); content: ''; }
.home-page .chapter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-top: 1px solid var(--line); gap: 5vw; padding: 6vw; }
.home-page .chapter { direction: ltr; }
.home-page .chapter:nth-of-type(even) { direction: rtl; }
.home-page .chapter:nth-of-type(even) > * { direction: ltr; }
.chapter-media { position: relative; }
.chapter-media .ph, .chapter-media .img-wrap { display: block; min-height: 460px; height: 460px; overflow: hidden; }
.chapter-media .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.chapter-media:hover img { transform: scale(1.03); }
.chapter-num { position: absolute; z-index: 1; top: -28px; left: -14px; color: transparent; font-family: var(--font-heading); font-size: 5.5rem; font-style: italic; -webkit-text-stroke: 1px var(--gold-soft); }
.home-page .chapter-media .chapter-num, .home-page .chapter-media .ph::after { display: none; }
.chapter-text .eyebrow { display: block; margin-bottom: 16px; }
.chapter-text h3 { margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.chapter-text p { max-width: 440px; margin-bottom: 28px; color: var(--text-secondary); }
.chapter-link { padding-bottom: 6px; border-bottom: 1px solid var(--gold-soft); color: var(--gold); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.home-page .portfolio { border-top: 1px solid var(--line); padding: 8vw 6vw; }
.home-page .section-head { max-width: 640px; margin: 0 auto 4.5rem; text-align: center; }
.home-page .section-head h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.home-page .section-head p { margin-top: 18px; color: var(--text-secondary); }
.home-page .grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 130px; gap: 12px; }
.home-page .grid-item { position: relative; min-height: 0; height: 100%; overflow: hidden; background: var(--secondary); }
.home-page .grid-item img, .home-page .grid-item .ph { width: 100%; height: 100%; object-fit: cover; }
.home-page .grid-item .ph { display: flex; min-height: 0; }
.home-page .grid-item img { transition: transform .8s ease; }
.home-page .grid-item:hover img, .home-page .grid-item:focus img { transform: scale(1.04); }
.home-page .home-portfolio-name { position: absolute; inset: auto 0 0; z-index: 1; display: block; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgba(20,17,15,.8)); color: var(--hover); font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.75rem); overflow-wrap: anywhere; }
.home-page .grid-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.home-page .home-portfolio-name { opacity: 0; transform: translateY(.5rem); transition: opacity .35s ease, transform .35s ease; }
.home-page .grid-item:hover .home-portfolio-name, .home-page .grid-item:focus .home-portfolio-name { opacity: 1; transform: none; }
@media (hover: none), (max-width: 880px) {
	.home-page .home-portfolio-name { opacity: 1; transform: none; }
}
.home-page .g1 { grid-row: span 3; grid-column: span 3; }
.home-page .g2 { grid-row: span 2; grid-column: span 3; }
.home-page .g3 { grid-row: span 2; grid-column: span 2; }
.home-page .g4 { grid-row: span 3; grid-column: span 2; }
.home-page .g5 { grid-row: span 2; grid-column: span 2; }
.home-page .g6, .home-page .g7 { grid-row: span 2; grid-column: span 3; }
@media (orientation: portrait) and (max-width: 600px) {
  .post-type-archive-portfolio .portfolio-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .post-type-archive-portfolio .portfolio-grid > .portfolio-card { grid-area: auto; aspect-ratio: 3 / 2; }
  .home-page .portfolio > .grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .home-page .portfolio .grid-item { grid-area: auto; height: auto; aspect-ratio: 3 / 2; }
}
.home-page .quote { border-top: 1px solid var(--line); padding: 9vw 10vw; }
.home-page .quote blockquote { max-width: 820px; margin: 0 auto; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.5; }
.home-page .quote cite { margin-top: 28px; font-size: .78rem; }
.home-page .about { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; border-top: 1px solid var(--line); gap: 6vw; padding: 8vw 6vw; }
.home-page .about-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--gold); }
.video-quality-note { margin: .75rem 0 1.25rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.home-page .about-media .ph, .home-page .about-media > img { position: absolute; inset: 0; display: block; width: 100%; min-height: 0; height: 100%; object-fit: cover; object-position: center; }
.about-text .eyebrow { display: block; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-text p { max-width: 480px; margin-bottom: 16px; color: var(--text-secondary); white-space: pre-line; }
.site-footer .display { margin-bottom: 24px; font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); font-style: italic; line-height: 1.08; }
.site-footer p.sub { max-width: 460px; margin: 0 auto 34px; color: var(--text-secondary); }
.footer-cta { display: inline-block; padding: 16px 40px; background: var(--gold); color: var(--background); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.footer-cta:hover { background: transparent; color: var(--gold); outline: 1px solid var(--gold); }
.site-footer .footer-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); gap: 1.5rem; color: var(--text-secondary); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-meta__copyright { justify-self: start; text-align: left; }
.footer-meta__vat { display: block; margin-top: .4rem; }
.footer-meta__place { justify-self: center; text-align: center; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-socials { display: flex; align-items: center; justify-self: end; gap: 25px; }
.footer-socials a { display: inline-flex; width: 2rem; height: 2rem; color: var(--text-secondary); transition: opacity .3s ease, transform .3s ease; }
.footer-socials .is-instagram { color: #e1306c; }
.footer-socials .is-facebook { color: #4267b2; }
.footer-socials .is-whatsapp { color: #25d366; }
.footer-socials a:hover, .footer-socials a:focus-visible { opacity: .8; transform: scale(1.2); }
.footer-socials svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 880px) {
	.site-footer .footer-meta { grid-template-columns: 1fr; justify-items: center; }
	.footer-meta__copyright, .footer-meta__place, .footer-socials { justify-self: center; text-align: center; }
	.home-page .chapter, .home-page .about { grid-template-columns: 1fr; }
	.home-page .chapter:nth-of-type(even) { direction: ltr; }
	.home-page .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.home-page .g1, .home-page .g2, .home-page .g3, .home-page .g4, .home-page .g5, .home-page .g6, .home-page .g7 { grid-row: span 2; grid-column: span 1; }
	.category-albums { grid-template-columns: 1fr; }
	.album-card:nth-child(even) { margin-top: 0; }
	.album-card__view { opacity: 1; transform: none; }
	.flip-album__stage { aspect-ratio: 4 / 5; }
}

/* Il mockup è interamente visibile al caricamento: nessuna sezione della home resta nascosta in attesa dello scroll. */
.home-page [data-reveal] { opacity: 1; transform: none; }

/* Match the serif actually rendered by the standalone maintenance screen. */
.fotoastuto-legal { margin-top: 1.5rem; font-size: .8rem; line-height: 1.6; color: var(--muted, inherit); }
.fotoastuto-legal a { color: inherit; text-underline-offset: .2em; }
.fotoastuto-legal a:hover, .fotoastuto-legal a:focus-visible { color: var(--gold); }
.home-page .hero h1.hero-title--maintenance { font-family: 'Times New Roman', Times, serif; font-size: clamp(2.35rem, 5vw, 3rem); font-weight: 500; line-height: 1.12; letter-spacing: normal; color: var(--text); }
.home-page .hero h1.hero-title--maintenance em { font-family: inherit; font-size: inherit; font-weight: inherit; font-style: italic; color: var(--gold); }
