/*
Theme Name: Angolo Immobiliare
Theme URI: https://angolo-immobiliare.it/
Description: Restyling 2026 per L'Angolo Immobiliare. Tema figlio di Genesis, compatibile con AgentPress Listings.
Author: Restyling 2026
Template: genesis
Version: 1.0.0
Text Domain: angolo
*/

/* ==========================================================================
   Variabili
   ========================================================================== */
:root {
	--blue: #24498a;
	--blue-dark: #183463;
	--blue-900: #12285a;
	--blue-50: #eef4fc;
	--orange: #e76a12;
	--orange-dark: #c95a0a;
	--ink: #1d2b44;
	--muted: #6b7a8c;
	--line: #e3e9f2;
	--bg: #f6f9fd;
	--white: #fff;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 2px 10px rgba(20, 41, 90, .06);
	--shadow: 0 10px 34px rgba(20, 41, 90, .10);
	--shadow-lg: 0 18px 50px rgba(20, 41, 90, .16);
	--font: "Poppins", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

body.nav-open, body.lightbox-open { overflow: hidden; }

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font); line-height: 1.18; color: var(--blue); letter-spacing: -.012em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 200;
	background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible { outline: 3px solid rgba(231, 106, 18, .55); outline-offset: 2px; }

.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 860px); }

/* ==========================================================================
   Bottoni
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .85rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--radius-sm);
	font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(231, 106, 18, .28); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--orange); border-color: var(--orange); border-radius: 999px; }
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--outline-blue { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--outline-blue:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 41, 90, .08); border-color: var(--line); }

.header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 228px; height: auto; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; flex: 1; }
.nav__list { display: flex; align-items: center; gap: 2.2rem; }
.nav__list li { position: relative; margin: 0; }
.nav__list a {
	position: relative; display: block; padding: .5rem 0; color: var(--ink);
	font-size: .9rem; font-weight: 500;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--blue); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after, .nav__list .current_page_item > a::after { transform: scaleX(1); }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
	align-items: center; justify-content: center; background: var(--blue-50);
	border: 0; border-radius: 10px; color: var(--blue); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(180deg, #eef4fc 0%, #f7fafe 100%); overflow: hidden; }

.hero__media {
	position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
	background: var(--hero-img) center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
.hero__media::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
	background: linear-gradient(0deg, rgba(247, 250, 254, .9), transparent);
}

.hero__inner { position: relative; padding: 4.5rem 0 8.5rem; }
.hero__copy { max-width: 560px; }

.pill {
	display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem;
	padding: .45rem 1rem; background: #fff; border-radius: 999px;
	font-size: .8rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
}
.pill .icon { color: var(--orange); }

.hero__title { margin-bottom: .55em; font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.08; color: var(--blue); }
.hero__title span { display: block; color: var(--orange); }

.hero__lead { max-width: 480px; margin-bottom: 1.8rem; font-size: 1rem; color: var(--ink); opacity: .82; }

/* ==========================================================================
   Modulo di ricerca
   ========================================================================== */
.search-wrap { position: relative; z-index: 5; margin-top: -4.6rem; }
.search-wrap--archive { margin-top: -2.6rem; }

.search__tabs { display: flex; gap: .15rem; width: max-content; max-width: 100%; padding: .55rem 1.2rem 0; background: #fff; border-radius: 16px 16px 0 0; }
.search__tab {
	display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .8rem;
	background: none; border: 0; border-bottom: 3px solid transparent;
	font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: color .2s, border-color .2s;
}
.search__tab .icon { color: var(--blue); }
.search__tab:hover { color: var(--orange); }
.search__tab.is-active { color: var(--orange); border-color: var(--orange); }
.search__tab.is-active .icon { color: var(--orange); }

.search__panel {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .8rem;
	padding: 1.2rem; background: #fff; border-radius: 0 16px 16px 16px; box-shadow: var(--shadow-lg);
}

.field { display: block; margin: 0; }
.field__label {
	display: block; margin: 0 0 .15rem .15rem; font-size: .7rem; font-weight: 600;
	letter-spacing: .02em; color: var(--muted);
}
.field__control { position: relative; display: block; }
.field select {
	width: 100%; height: 3.1rem; padding: 0 2.4rem 0 .95rem; appearance: none; -webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center;
	border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink);
	cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.field select:hover { border-color: #c9d4e4; }
.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 73, 138, .12); outline: 0; }
.field__icon { position: absolute; right: 2.3rem; top: 50%; width: 1em; height: 1em; transform: translateY(-50%); color: var(--orange); pointer-events: none; }

.search__submit { align-self: end; height: 3.1rem; padding-inline: 2rem; }

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section--tight { padding-top: 0; padding-bottom: 4.5rem; }
.section--page { padding: 3rem 0 5rem; }
.section--archive { padding-top: 2rem; }
.section--related { background: var(--bg); }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; }
.eyebrow { display: block; margin-bottom: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.section__title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--blue); }
.section__title span { display: block; color: var(--orange); }

/* ==========================================================================
   Griglia e schede immobili
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }

.card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.card__image { display: block; width: 100%; height: 100%; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__image img { transform: scale(1.04); }
.card__placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
	width: 100%; height: 100%; color: var(--muted); font-size: .85rem;
}
.card__placeholder .icon { width: 2rem; height: 2rem; }

.card__tag {
	position: absolute; top: .8rem; left: .8rem; padding: .28rem .7rem;
	background: var(--orange); color: #fff; border-radius: 6px;
	font-size: .75rem; font-weight: 600; line-height: 1.3;
}
.card__tag--static { position: static; display: inline-block; margin-bottom: .8rem; }

.card__fav {
	position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center;
	width: 2.2rem; height: 2.2rem; padding: 0; background: #fff; border: 0; border-radius: 50%;
	color: var(--orange); box-shadow: 0 3px 10px rgba(0, 0, 0, .15); cursor: pointer; transition: transform .2s, background .2s;
}
.card__fav .icon { width: 1.05rem; height: 1.05rem; }
.card__fav:hover { transform: scale(1.1); }
.card__fav.is-on { background: var(--orange); color: #fff; }
.card__fav.is-on .icon { fill: currentColor; }

.card__price {
	position: absolute; left: .8rem; bottom: .8rem; padding: .3rem .85rem;
	background: rgba(18, 40, 90, .88); color: #fff; border-radius: 999px;
	font-size: .88rem; font-weight: 700; backdrop-filter: blur(4px);
}
.card__price small { margin-left: .15rem; font-size: .72rem; font-weight: 500; opacity: .85; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.card__title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--orange); }

.card__loc { display: flex; align-items: center; gap: .4rem; margin: 0 0 .8rem; font-size: .85rem; color: var(--muted); }
.card__loc .icon { color: var(--orange); width: .95rem; height: .95rem; }

.card__features { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 1.1rem; font-size: .8rem; color: var(--muted); }
.card__features li { display: inline-flex; align-items: center; gap: .35rem; }
.card__features .icon { width: .95rem; height: .95rem; }

.card__cta { align-self: flex-start; margin-top: auto; }

.card--post .card__image--post { aspect-ratio: 16 / 10; }
.card--post .card__date { margin: 0 0 .3rem; font-size: .78rem; color: var(--muted); }
.card--post .card__excerpt { font-size: .9rem; color: var(--muted); }

.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.empty h2 { color: var(--blue); }
.empty .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ==========================================================================
   Statistiche
   ========================================================================== */
.stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 1.7rem 1rem; background: linear-gradient(100deg, #e86d14, #e25f0a); color: #fff;
	border-radius: var(--radius); box-shadow: 0 14px 34px rgba(231, 106, 18, .3);
}
.stats__item { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .3rem 1rem; }
.stats__item + .stats__item { border-left: 1px solid rgba(255, 255, 255, .35); }
.stats__item .icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.5; }
.stats__item strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stats__item span { font-size: .82rem; opacity: .92; }

/* ==========================================================================
   Intestazioni di pagina
   ========================================================================== */
.page-hero { padding: 2.6rem 0 4.4rem; background: linear-gradient(180deg, #eef4fc 0%, #f7fafe 100%); }
.page-hero--listing { padding-bottom: 2rem; }
.page-hero__title { margin: .3rem 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero__meta { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.crumbs strong { color: var(--blue); font-weight: 600; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.results-bar__count { margin: 0; color: var(--muted); }
.results-bar__count strong { color: var(--blue); font-size: 1.15rem; }
.results-bar__sort { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.results-bar__sort select { height: 2.6rem; padding: 0 .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }

.pagination { margin-top: 2.6rem; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 2.7rem; height: 2.7rem; padding: 0 .8rem;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600;
}
.pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ==========================================================================
   Scheda immobile
   ========================================================================== */
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 1.2rem; }
.listing-head__title { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.listing-head__loc { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); }
.listing-head__loc .icon { color: var(--orange); }
.listing-head__price { margin: 0; flex: none; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--orange); white-space: nowrap; }
.listing-head__price small, .side-card__price small { margin-left: .2rem; font-size: .45em; font-weight: 600; color: var(--muted); }

.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.4rem; align-items: start; padding-top: 1.8rem; padding-bottom: 4.5rem; }

.gallery { display: grid; gap: 8px; height: 440px; margin-bottom: 1.4rem; overflow: hidden; border-radius: var(--radius); }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--blue-50); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item.is-hidden { display: none; }
.gallery--n1 { grid-template-columns: 1fr; }
.gallery--n2 { grid-template-columns: 1.6fr 1fr; }
.gallery--n3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--n3 .gallery__item:first-child, .gallery--n4 .gallery__item:first-child, .gallery--n5 .gallery__item:first-child { grid-row: 1 / span 2; }
.gallery--n4 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.gallery--n4 .gallery__item:first-child { grid-row: 1 / span 3; }
.gallery--n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery__more {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem;
	background: rgba(18, 40, 90, .55); color: #fff; font-weight: 600; font-size: .95rem; transition: background .2s;
}
.gallery__item:hover .gallery__more { background: rgba(18, 40, 90, .7); }

.facts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 2rem; }
.facts li {
	display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem;
	background: var(--blue-50); border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--blue);
}
.facts .icon { color: var(--orange); }

.listing-text h2 { font-size: 1.5rem; margin-bottom: .8em; }

.side-card { padding: 1.5rem; margin-bottom: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.listing-side { position: sticky; top: calc(var(--header-h) + 1rem); }
.side-card__price { margin: 0 0 1rem; font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
.side-card__title { font-size: 1.2rem; margin-bottom: .3rem; }
.side-card__sub { font-size: .88rem; color: var(--muted); }

.details { margin: 0 0 1.3rem; }
.details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }

.side-card__phones { display: grid; gap: .6rem; }

/* ==========================================================================
   Contenuti (pagine, articoli, testo annunci)
   ========================================================================== */
.entry-content { font-size: 1.02rem; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.6rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.25rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft, .entry-content .alignright, .entry-content .aligncenter { float: none; margin: 1.2rem auto; }
.entry-content .gallery, .entry-content .gallery-item img { height: auto; }
.entry-content .gallery { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; border-radius: 0; }
.entry-content .gallery-item { margin: 0; width: calc(25% - 6px); }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .gallery-caption { display: none; }
.entry-thumb { width: 100%; margin-bottom: 1.6rem; border-radius: var(--radius); }

/* Contenuti vecchi: mappe e tabelle a larghezza fissa */
.entry-content mappress-map, .entry-content .mapp-layout { display: block; width: 100% !important; max-width: 100% !important; margin: 1.2rem 0; border-radius: var(--radius-sm); overflow: hidden; }
.entry-content table { max-width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: .4rem .6rem; vertical-align: top; }

/* Modulo di contatto (Contact Form 7) */
.wpcf7 form p { margin-bottom: 1rem; }
.wpcf7 label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; margin-top: .3rem; padding: .8rem .95rem; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 73, 138, .12); outline: 0; }
.wpcf7 input[type="submit"] {
	width: 100%; padding: .9rem 1.4rem; background: var(--orange); color: #fff; border: 0; border-radius: var(--radius-sm);
	font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(231, 106, 18, .28); transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--orange-dark); }
.wpcf7-not-valid-tip { margin-top: .3rem; font-size: .8rem; color: #c0392b; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item-label { font-weight: 400; font-size: .82rem; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(8, 16, 36, .94); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__figure img { max-width: 90vw; max-height: 82vh; margin: 0 auto; border-radius: 6px; object-fit: contain; }
.lightbox__count { margin-top: .8rem; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.lightbox__btn {
	position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
	background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: background .2s;
}
.lightbox__btn:hover { background: var(--orange); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 0; background: var(--blue-50); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 2.4rem; padding: 3.6rem 0 2.8rem; }
.footer__brand img { width: 220px; margin-bottom: 1rem; }
.footer__brand p { max-width: 320px; font-size: .9rem; color: var(--muted); }
.footer__title { margin-bottom: 1rem; font-size: 1rem; font-weight: 700; color: var(--blue); }
.footer__list li { margin-bottom: .55rem; font-size: .9rem; color: var(--ink); }
.footer__list a { color: var(--ink); }
.footer__list a:hover { color: var(--orange); }
.footer__list--icons li { display: flex; align-items: flex-start; gap: .65rem; }
.footer__list--icons .icon { margin-top: .25em; color: var(--orange); }
.footer__bar { background: var(--blue-900); color: rgba(255, 255, 255, .8); font-size: .8rem; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; }
.footer__note { max-width: 560px; text-align: right; opacity: .75; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.nav__list { gap: 1.5rem; }
	.search__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.search__submit { grid-column: 1 / -1; }
	.listing-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 1.8rem; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.brand img { width: 190px; }
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
		gap: 1.2rem; padding: 1.4rem 1.2rem 2rem; background: #fff; overflow-y: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list li { border-bottom: 1px solid var(--line); }
	.nav__list a { padding: 1rem .2rem; font-size: 1.05rem; }
	.nav__list a::after { display: none; }
	.nav__cta { width: 100%; }

	.hero__media { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; }
	.hero__inner { padding: 3rem 0 7.5rem; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
	.stats__item:nth-child(3) { border-left: 0; }

	.listing-layout { grid-template-columns: 1fr; }
	.listing-side { position: static; }
	.gallery { height: 340px; }
	.listing-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
}

@media (max-width: 640px) {
	.section { padding: 3rem 0; }
	.section--tight { padding-bottom: 3rem; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.search-wrap { margin-top: -4rem; }
	.search__tabs { width: 100%; padding-inline: .6rem; border-radius: 14px 14px 0 0; }
	.search__tab { flex: 1; justify-content: center; padding-inline: .4rem; font-size: .8rem; }
	.search__tab .icon { display: none; }
	.search__panel { grid-template-columns: 1fr; border-radius: 0 0 14px 14px; padding: 1rem; }
	.grid { grid-template-columns: 1fr; }
	.stats { padding: 1.3rem .4rem; }
	.stats__item { flex-direction: column; gap: .4rem; text-align: center; padding-inline: .4rem; }
	.stats__item .icon { width: 2rem; height: 2rem; }
	.stats__item strong { font-size: 1.35rem; }
	.gallery { height: 260px; }
	.gallery--n3, .gallery--n4, .gallery--n5 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
	.gallery--n3 .gallery__item:nth-child(n+4), .gallery--n4 .gallery__item:nth-child(n+4), .gallery--n5 .gallery__item:nth-child(n+4) { display: none; }
	.entry-content .gallery-item { width: calc(50% - 4px); }
	.entry-content table, .entry-content tbody, .entry-content tr, .entry-content td, .entry-content th { display: block; width: 100% !important; }
	.footer__grid { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.6rem 0 2rem; }
	.footer__bar-inner { flex-direction: column; gap: .5rem; }
	.footer__note { text-align: left; }
	.lightbox__prev { left: .5rem; }
	.lightbox__next { right: .5rem; }
}

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