/*
Theme Name: Borghi di Sicilia
Description: Tema del portale Borghi di Sicilia. Da usare con il plugin “Borghi di Sicilia — Contenuti e importazione”.
Version: 2.9.1
Requires at least: 6.7
Requires PHP: 8.0
Author: Borghi di Sicilia
License: GPL-2.0-or-later
Text Domain: borghi-di-sicilia
*/

/* ==========================================================================
   0. Fonts — served by the site (assets/fonts, SIL Open Font License)
   ========================================================================== */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   1. Design tokens — every color, spacing and radius of the site lives here
   ========================================================================== */
:root {
	--brand: #A00404;
	--brand-dark: #7D0303;
	--ink: #302725;
	--cream: #F7F3EC;
	--paper: #fff;
	--muted: #6B605D;
	--line: #DDD3C8;

	--font-body: 'DM Sans', Arial, sans-serif;
	--font-head: Manrope, Arial, sans-serif;
	--font-serif: Georgia, 'Times New Roman', serif;

	--wrap: 1320px;                                            /* content width */
	--gutter: clamp(20px, 5vw, 72px);                          /* minimum side margin */
	--pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2)); /* full-width bands, aligned content */
	--space-section: clamp(56px, 7vw, 96px);                   /* between page sections */
	--space-intro: clamp(40px, 5vw, 72px);                     /* cream page headers */
	--space-block: clamp(40px, 5vw, 64px);                     /* between blocks inside a section */
	--radius: 8px;
	--radius-sm: 4px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-family: var(--font-head); font-size: clamp(54px, 6.2vw, 92px); line-height: 1.04; letter-spacing: -.045em; margin: 28px 0 25px; font-weight: 600; }
h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.035em; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.15; margin-bottom: 0; }
h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.02em; }
em { font-family: var(--font-serif); font-weight: 400; }
[hidden] { display: none !important; }
.bds-section { display: contents; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. Shared components: labels, buttons, links
   ========================================================================== */
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.teal { color: var(--brand); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); }
.num { font-size: 12px; color: var(--brand); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.dark, .button.yellow { background: var(--brand); color: #fff; }
.button.dark:hover, .button.yellow:hover { background: var(--brand-dark); }
.button.outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.button.outline:hover { background: var(--brand); color: #fff; }
.events .button.yellow, .wide-callout .button.yellow { background: var(--cream); color: var(--brand); }
.events .button.yellow:hover, .wide-callout .button.yellow:hover { background: #fff; }
.text-link { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.text-link:hover { border-bottom-color: var(--brand); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }

/* ==========================================================================
   4. Header and navigation
   ========================================================================== */
.site-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding: 0 var(--pad-x); background: var(--paper); }
.brand-logo { display: block; flex-shrink: 0; line-height: 0; }
.brand-logo img { display: block; width: auto; height: 72px; }
.bds-menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.bds-menu li { position: relative; list-style: none; }
.bds-menu a { display: block; padding: 12px 0; }
.bds-menu a:hover, .bds-menu .current-menu-item > a, .bds-menu .current_page_item > a { color: var(--brand); }
.bds-menu .current-menu-item > a, .bds-menu .current_page_item > a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.bds-menu .bds-menu-contact > a { padding: 12px 18px; border: 1px solid var(--brand); border-radius: 30px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.bds-menu .bds-menu-contact > a:hover { background: var(--brand); color: #fff; }
.bds-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; margin: 0; padding: 10px 18px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(48, 39, 37, .14); }
.bds-menu li:hover > .sub-menu, .bds-menu li:focus-within > .sub-menu { display: block; }
.bds-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.menu { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: none; border: 1px solid var(--brand); border-radius: var(--radius-sm); color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu[aria-expanded="true"] .menu-bars { background: transparent; }
.menu[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1101px) and (max-width: 1320px) {
	.brand-logo img { height: 60px; }
	.bds-menu { gap: 15px; font-size: 13px; }
}
@media (max-width: 1100px) {
	.site-header { min-height: 84px; }
	.brand-logo img { height: 56px; }
	.menu { display: inline-flex; }
	.site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 28px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(48, 39, 37, .12); }
	.site-header nav.open { display: block; }
	.bds-menu { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
	.bds-menu > li > a { padding: 15px 0; border-bottom: 1px solid var(--line); }
	.bds-menu .bds-menu-contact > a { display: inline-block; margin-top: 18px; border-bottom: 1px solid var(--brand); }
	.bds-menu .sub-menu, .bds-menu .sub-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 18px; box-shadow: none; border-left: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 480px) {
	.site-header { min-height: 72px; gap: 12px; }
	.brand-logo img { height: 46px; }
	.menu-text { display: none; }
	.menu { padding: 12px; }
}

/* Mobile menu: full-screen panel that opens in a circle from the button */
.menu-extra { display: none; }
@media (max-width: 1100px) {
	.site-header { --menu-top: 84px; z-index: 50; }
	.site-header > .brand-logo, .site-header > .menu { position: relative; z-index: 2; }
	/* Opens with a circle growing from the button, closes with a quick fade. */
	.site-header nav { --menu-origin: calc(100% - var(--gutter) - 40px) calc(var(--menu-top) / 2); display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1; padding: calc(var(--menu-top) + 20px) var(--gutter) 32px; overflow-y: auto; border: 0; box-shadow: none; background: var(--brand); color: #fff; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
	.site-header nav.open { display: flex; visibility: visible; opacity: 1; transition: none; animation: bds-menu-reveal .65s cubic-bezier(.7, 0, .2, 1); }
	.admin-bar .site-header nav { padding-top: calc(var(--menu-top) + 66px); }
	.has-hero-overlay .site-header nav { color: #fff; }
	.site-header .bds-menu { font-family: var(--font-head); font-size: clamp(26px, 7vw, 34px); font-weight: 600; letter-spacing: -.02em; }
	.site-header .bds-menu > li { opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
	.site-header nav.open .bds-menu > li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i, 0) * 55ms); }
	.site-header .bds-menu > li > a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); color: #fff; }
	.site-header .bds-menu a:hover, .site-header .bds-menu .current-menu-item > a, .site-header .bds-menu .current_page_item > a { color: var(--cream); text-decoration-color: var(--cream); }
	.site-header .bds-menu .bds-menu-contact > a { display: inline-block; margin-top: 24px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--cream); color: var(--brand); font-family: var(--font-body); font-size: 17px; letter-spacing: 0; }
	.site-header .bds-menu .sub-menu { border-left-color: rgba(255, 255, 255, .25); font-size: 18px; }
	.menu-extra { display: grid; gap: 16px; margin-top: auto; padding-top: 36px; opacity: 0; transition: opacity .4s ease; }
	.site-header nav.open .menu-extra { opacity: 1; transition-delay: .5s; }
	.menu-extra__mail { font-size: 16px; font-weight: 600; color: var(--cream); }
	.menu-extra .social-link { border-color: rgba(255, 255, 255, .45); color: #fff; }
	.menu-open { overflow: hidden; }
	/* The header stays on screen while the menu is open; the page keeps its place (no jump). */
	.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
	.menu-open body:not(.has-hero-overlay) { padding-top: var(--header-space, 84px); }
	.menu-open .admin-bar .site-header { top: 46px; }
	/* Logo and button turn white only once the red circle has reached them, and back to red after it has left. */
	.site-header > .brand-logo img { transition: filter .25s ease; }
	.site-header > .menu { transition: color .25s ease, border-color .25s ease; }
	.menu-open .site-header > .brand-logo img { filter: brightness(0) invert(1); transition-delay: .2s; }
	.menu-open .site-header > .menu { border-color: rgba(255, 255, 255, .75); color: #fff; transition-delay: .05s; }
	.site-header nav :focus-visible { outline-color: var(--cream); }
}
@media (max-width: 480px) { .site-header { --menu-top: 72px; } .menu-open body:not(.has-hero-overlay) { --header-space: 72px; } .site-header nav { --menu-origin: calc(100% - var(--gutter) - 22px) calc(var(--menu-top) / 2); } }
@keyframes bds-menu-reveal { from { clip-path: circle(0 at var(--menu-origin)); } to { clip-path: circle(150% at var(--menu-origin)); } }

/* ==========================================================================
   5. Page structure and section spacing
   ========================================================================== */
.section, .page-section { padding: var(--space-section) var(--pad-x); }
.page-section + .page-section { padding-top: 0; }
.page-intro { padding: var(--space-intro) var(--pad-x); background: var(--cream); }
.page-intro .eyebrow { margin-bottom: 16px; }
.page-intro h1 { max-width: 1000px; margin: 0 0 24px; color: var(--brand); font-size: clamp(40px, 5.4vw, 76px); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: break-word; }
.page-intro h1 em { color: var(--brand); }
.page-intro .lead { max-width: 720px; margin-bottom: 0; font-size: 18px; line-height: 1.8; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--brand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 40px); }
.section-head h2, .about h2 { color: var(--brand); }
/* Blocks inside a section are always separated by the same space. */
* + .service-grid, * + .fact-grid, * + .wide-callout, * + .section-head, * + .gadget-contact, .story-grid + .service-grid { margin-top: var(--space-block); }

/* ==========================================================================
   6. Homepage
   ========================================================================== */
.hero { position: relative; isolation: isolate; min-height: 640px; margin: 0 20px; overflow: hidden; border-radius: var(--radius); color: #fff; }
.hero-img, .hero-shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-img { object-position: center 53%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(40, 16, 14, .78), rgba(40, 16, 14, .12)), linear-gradient(0deg, rgba(35, 15, 13, .6), transparent 35%); }
.hero-content { padding: 73px 5% 120px; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--cream); }
.hero-content > p:not(.eyebrow) { margin-bottom: 30px; font-size: 18px; line-height: 1.7; color: var(--cream); }
.hero-bottom { position: absolute; left: 5%; right: 5%; bottom: 26px; display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; border-top: 1px solid rgba(255, 255, 255, .32); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; }

/* Homepage hero: the borgo of the week */
.hero.hero--feature { display: flex; flex-direction: column; min-height: max(700px, 100svh); max-width: none !important; margin: 0 !important; padding: 170px var(--pad-x) 32px; border-radius: 0; }
.hero.hero--feature .hero-img { transition: opacity .6s ease; }
.hero.hero--feature .hero-img--composite { width: 200%; max-width: none; object-position: left center; }
.hero.hero--feature .hero-shade { background: linear-gradient(90deg, rgba(30, 12, 10, .75), rgba(30, 12, 10, .08) 65%), linear-gradient(180deg, rgba(30, 12, 10, .5), transparent 28%), linear-gradient(0deg, rgba(30, 12, 10, .55), transparent 32%); }
/* margin-top: auto shares the free height with .week-thumbs: the title sits in the middle of the photo. */
.hero.hero--feature .hero-content { max-width: 760px; margin-top: auto; padding: 0; }
.hero.hero--feature h1 { margin: 0 0 24px; font-size: clamp(50px, 6.4vw, 92px); }
.hero.hero--feature .hero-content > p { max-width: 540px; margin-bottom: 32px; font-size: 19px; }
.hero--feature .button.yellow { background: var(--cream); color: var(--brand); }
.hero--feature .button.yellow:hover { background: #fff; }
.week-card { position: absolute; right: var(--pad-x); bottom: 128px; width: 380px; padding: 26px 28px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); transition: opacity .18s ease; }
.week-card.is-switching { opacity: 0; }
.week-card__label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); }
.week-card__name { margin: 0 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.week-card__place { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.week-card__text { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.week-card__link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 700; color: var(--brand); }
.week-card__link::after { content: " →"; }
.week-thumbs { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
.week-thumbs__label { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.week-thumbs__list { display: flex; gap: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.week-thumbs__all { flex-shrink: 0; margin-left: auto; padding: 13px 22px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 40px; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.week-thumbs__all::after { content: " →"; }
.week-thumbs__all:hover { border-color: var(--brand); background: var(--brand); }
.week-thumbs__all:focus-visible { outline-color: var(--cream); }
.week-thumbs__list::-webkit-scrollbar { display: none; }
.week-thumb { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 40px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s, color .2s; }
.week-thumb:hover { background: rgba(255, 255, 255, .26); }
.week-thumb.is-active { background: #fff; color: var(--ink); }
.week-thumb:focus-visible { outline-color: var(--cream); }
.week-thumb__img { display: block; position: relative; flex-shrink: 0; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; }
.week-thumb__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.week-thumb__img.is-composite img { width: 200%; max-width: none; object-position: left center; }
.hero.hero--feature + .ticker { margin-top: 0; }
@media (min-width: 1101px) {
	/* No button under the text any more: the last paragraph keeps no margin, so the text is centred for real. */
	.hero.hero--feature .hero-content > :last-child { margin-bottom: 0; }
}
@media (max-width: 1100px) {
	.week-card { position: relative; right: auto; bottom: auto; width: auto; max-width: 460px; margin-top: 40px; }
	.week-thumbs { margin-top: 32px; }
}
@media (max-width: 650px) {
	.hero.hero--feature { min-height: 0; padding: 120px var(--gutter) 24px; }
	.hero.hero--feature h1 { font-size: 46px; letter-spacing: -2px; }
	.hero.hero--feature .hero-content > p { font-size: 16px; margin-bottom: 26px; }
	.week-card { margin-top: 32px; padding: 22px; }
	.week-card__name { font-size: 26px; }
	.week-thumbs { flex-direction: column; align-items: flex-start; gap: 12px; }
	.week-thumbs__list { width: 100%; }
	.week-thumbs__all { margin-left: 0; }
}

/* Homepage panorama hero (photo edge to edge, search and numbers) */
.has-hero-overlay .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: #fff; }
.admin-bar.has-hero-overlay .site-header { top: 32px; }
.has-hero-overlay .site-header :focus-visible { outline-color: var(--cream); }
.has-hero-overlay .menu { border-color: rgba(255, 255, 255, .8); color: #fff; }
@media (min-width: 1101px) {
	.has-hero-overlay .bds-menu a:hover, .has-hero-overlay .bds-menu .current-menu-item > a, .has-hero-overlay .bds-menu .current_page_item > a { color: var(--cream); }
	.has-hero-overlay .bds-menu .bds-menu-contact > a { border-color: rgba(255, 255, 255, .8); color: #fff; }
	.has-hero-overlay .bds-menu .bds-menu-contact > a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
	.has-hero-overlay .bds-menu .sub-menu { color: var(--ink); }
}
@media (max-width: 782px) { .admin-bar.has-hero-overlay .site-header { top: 46px; } }

.hero.hero--panorama { display: flex; flex-direction: column; min-height: max(720px, 100svh); max-width: none !important; margin: 0 !important; padding: 170px var(--pad-x) 32px; border-radius: 0; }
.hero.hero--panorama .hero-img { object-position: center 40%; }
.hero.hero--panorama .hero-shade { background: linear-gradient(90deg, rgba(30, 12, 10, .72), rgba(30, 12, 10, .1) 70%), linear-gradient(0deg, rgba(30, 12, 10, .6), transparent 45%), linear-gradient(180deg, rgba(30, 12, 10, .5), transparent 28%); }
.hero.hero--panorama .hero-content { max-width: 800px; padding: 0; }
.hero.hero--panorama h1 { margin: 0 0 24px; font-size: clamp(52px, 6.6vw, 96px); }
.hero.hero--panorama .hero-content > p { max-width: 560px; margin-bottom: 0; font-size: 19px; }
.hero-search { margin-top: auto; padding-top: 48px; }
.hero-search-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; max-width: 1100px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.hero-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 24px; border-right: 1px solid var(--line); cursor: text; }
.hero-field > span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.hero-field input, .hero-field select { width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.hero-field input:focus, .hero-field select:focus { outline: none; }
.hero-field:focus-within { box-shadow: inset 0 -3px 0 var(--brand); }
.hero-field select { appearance: none; -webkit-appearance: none; padding-right: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A00404' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; cursor: pointer; }
.hero-search-form .button { min-height: 0; padding: 0 34px; border-radius: 0; font-size: 16px; }
.hero-search-form .button:hover { transform: none; }
.hero.hero--panorama .hero-bottom { position: static; align-items: center; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; padding-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 44px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.hero-stats b { margin-right: 4px; font-family: var(--font-head); font-size: 24px; letter-spacing: -.5px; color: var(--cream); }
.hero-credit { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .85; }
.hero.hero--panorama + .ticker { margin-top: 0; }
@media (max-width: 900px) {
	.hero-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hero-field:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
	.hero-field:nth-child(3) { border-right: 0; }
	.hero-search-form .button { grid-column: 1 / -1; min-height: 56px; }
}
@media (max-width: 650px) {
	.hero.hero--panorama { min-height: 0; padding: 130px var(--gutter) 24px; }
	.hero.hero--panorama h1 { font-size: 46px; letter-spacing: -2px; }
	.hero.hero--panorama .hero-content > p { font-size: 16px; }
	.hero-search { padding-top: 36px; }
	.hero-search-form { grid-template-columns: minmax(0, 1fr); }
	.hero-field--select { display: none; }
	.hero-field:first-child { border-bottom: 0; }
	.hero-stats { gap: 10px 22px; font-size: 11px; letter-spacing: 1px; }
	.hero-stats b { font-size: 20px; }
}

.ticker { display: flex; align-items: center; justify-content: space-around; gap: 25px; margin-top: 20px; padding: 24px var(--gutter); overflow: hidden; white-space: nowrap; background: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.ticker-sep { display: block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.editorial-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(35px, 4.5vw, 65px); }
.feature-card { position: relative; isolation: isolate; min-height: 470px; overflow: hidden; border-radius: var(--radius); color: #fff; }
.feature-card img, .card-shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-card:hover img { transform: scale(1.04); }
.card-shade { z-index: -1; background: linear-gradient(0deg, rgba(35, 15, 13, .88), transparent 85%); }
.pill { position: absolute; top: 25px; left: 25px; padding: 9px 13px; border-radius: 20px; background: var(--cream); color: var(--brand); font-size: 10px; letter-spacing: 1.3px; }
.card-copy { position: absolute; left: 32px; right: 32px; bottom: 33px; }
.card-copy p { font-size: 10px; letter-spacing: 1.6px; }
.card-copy h3 { margin-bottom: 22px; font-size: clamp(36px, 3vw, 43px); line-height: 1.1; letter-spacing: -1px; }
.card-copy > span { display: block; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .32); font-size: 14px; }

.discovery { padding: 16px 0; }
.discovery > h3 { margin: 22px 0; font-family: var(--font-serif); font-size: clamp(35px, 3vw, 42px); font-weight: 400; line-height: 1.12; letter-spacing: -1px; }
.discovery > a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 18px; margin-top: 12px; padding: 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 19px; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.discovery > a::after { content: "Esplora i borghi"; grid-column: 2; margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.discovery > a:focus-visible { outline-offset: 3px; background: var(--cream); }
.discovery small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .discovery > a:hover { background: var(--cream); border-color: var(--brand); transform: translateX(4px); } }
@media (hover: none) { .discovery > a { background: var(--cream); border-color: #d9b9b2; } .discovery > a:active { background: #eee0d8; transform: scale(.98); } }

/* “Che Sicilia vuoi incontrare?”: the three themes in one box, one button to the borghi. */
.themes { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--cream); }
.themes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.themes__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 14px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.themes__list li + li { padding-left: clamp(22px, 3vw, 44px); border-left: 1px solid var(--line); }
.themes__list .num { padding-top: 4px; }
.themes__list small { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.themes .button { margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 900px) {
	.themes__list { grid-template-columns: minmax(0, 1fr); }
	.themes__list li + li { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
.stories { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px, 5vw, 70px); }
.story-grid img { width: 100%; height: 370px; object-fit: cover; border-radius: var(--radius); }
.story-grid h3 { margin: 22px 0; font-size: clamp(30px, 2.6vw, 35px); line-height: 1.2; letter-spacing: -1px; }
.story-grid p { max-width: 470px; line-height: 1.8; color: var(--muted); }
.story-grid .button { margin-top: 12px; }
.home-latest { margin-top: var(--space-block); padding-top: var(--space-block); border-top: 1px solid var(--line); }
.home-latest .eyebrow { margin-bottom: 24px; }

.events { display: flex; justify-content: space-between; gap: 40px; background: var(--brand); color: #fff; }
.events h2 { margin: 24px 0; font-size: clamp(38px, 4vw, 60px); }
.events h2 em { color: var(--cream); }
.events p:not(.eyebrow) { font-size: 16px; line-height: 1.7; color: var(--cream); }
.events-right { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.events-right p { margin: 20px 0 0; font-size: 13px !important; }
.events-right p a { text-decoration: underline; text-underline-offset: 3px; }
.event-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; margin-bottom: 28px; border: 1px solid rgba(247, 243, 236, .6); border-radius: 50%; transform: rotate(-8deg); font-family: var(--font-head); font-size: 22px; line-height: 1.1; color: var(--cream); }
.event-stamp i { font-family: var(--font-serif); font-size: 30px; }
.event-stamp small { margin-top: 10px; font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: 2px; }

.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 45px; }
.about > .eyebrow { align-self: start; margin-top: 14px; }
.about p:not(.eyebrow) { max-width: 650px; margin: 25px 0; line-height: 1.9; color: var(--muted); }
.collab { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 0 var(--pad-x) var(--space-section); padding: 38px 40px; border-radius: var(--radius); background: var(--cream); color: var(--brand); }
.collab p { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.collab h2 { font-size: 30px; letter-spacing: -1px; }

@media (min-width: 1600px) { .hero { max-width: 1560px; margin: 0 auto; } }
@media (max-width: 1000px) {
	.hero { min-height: 590px; }
	.ticker { justify-content: flex-start; }
}
@media (max-width: 650px) {
	.hero { min-height: 595px; margin: 0 10px; }
	.hero-content { padding: 57px 7% 120px; }
	.hero-content .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
	.hero h1 { font-size: 52px; letter-spacing: -2.5px; line-height: 1.08; }
	.hero-content > p:not(.eyebrow) { font-size: 16px; }
	.hero-img { object-position: 60% center; }
	.hero-bottom { left: 7%; right: 7%; font-size: 9px; letter-spacing: .6px; }
	.hero-bottom > span { max-width: 135px; line-height: 1.5; }
	.ticker { margin-top: 10px; padding: 20px; font-size: 10px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
	h2 { font-size: 34px; letter-spacing: -1px; }
	.editorial-grid, .story-grid, .about { grid-template-columns: 1fr; gap: 28px; }
	.feature-card { min-height: 410px; }
	.discovery > a { font-size: 18px; }
	.story-grid img { height: 300px; }
	.events { flex-direction: column; gap: 0; }
	.events-right { align-items: flex-start; text-align: left; }
	.event-stamp { display: none; }
	.about { gap: 6px; }
	.collab { flex-direction: column; align-items: flex-start; padding: 30px; }
	.collab h2 { font-size: 28px; }
}

/* ==========================================================================
   7. Catalogs: filters and cards (borghi, storie, attività)
   ========================================================================== */
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; padding: 22px; border-radius: var(--radius); background: var(--cream); }
.filterbar label { display: flex; flex: 1 1 200px; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.filterbar label:first-child { flex-grow: 1.6; }
.filterbar input, .filterbar select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.filterbar select { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A00404' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; cursor: pointer; }
.filter-actions { display: flex; align-items: center; gap: 6px; }
.filter-actions .button { min-height: 50px; }
.filter-reset { min-height: 50px; padding: 12px 10px; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.filter-reset:hover { color: var(--brand); }
.results-count { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.empty { margin-top: 8px; padding: 36px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty p { margin: 0; line-height: 1.7; }
.empty a { color: var(--brand); text-decoration: underline; }

.catalog-grid, .business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.catalog-card, .business-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.catalog-card > a { display: flex; flex-direction: column; flex: 1; }
.catalog-card img, .business-image { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: var(--radius); transition: filter .2s; }
.catalog-card:hover img { filter: brightness(.88); }
.catalog-card .tag { display: block; margin: 18px 0 10px; }
.catalog-card h2, .catalog-card h3, .business-copy h2, .business-copy h3 { margin: 0 0 10px; font-family: var(--font-head); font-size: clamp(22px, 1.9vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; }
.catalog-card:hover h2, .catalog-card:hover h3 { color: var(--brand); }
.card-date { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.card-author { font-weight: 600; color: var(--ink); }
.article-author strong { color: var(--ink); font-weight: 600; }
.catalog-card p, .business-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-bottom: 18px; overflow: hidden; font-size: 16px; line-height: 1.7; color: var(--muted); }
/* “Leggi la storia” / “Esplora il borgo”: round button like “Contatti” in the menu, red when the card is hovered. */
.catalog-card .read { align-self: center; margin-top: auto; padding: 12px 18px; border: 1px solid var(--brand); border-radius: 30px; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--brand); transition: background-color .2s, color .2s; }
.catalog-card > a:hover .read, .catalog-card > a:focus-visible .read { background: var(--brand); color: #fff; }
.catalog-card.product img { aspect-ratio: 4 / 3; padding: 20px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.catalog-card.product p { display: block; }
.price { font-size: 26px !important; font-weight: 600; color: var(--ink) !important; }
.gadget-contact { text-align: center; }
.gadget-contact p { margin-bottom: 18px; line-height: 1.7; color: var(--muted); }

.business-image { position: relative; overflow: hidden; background: var(--cream); }
.business-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.business-location { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; }
.business-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 18px; }
.business-copy .tag { margin-bottom: 10px; }
.business-copy .button { margin-top: auto; }

/* Original borgo photos are photo + map side by side: show one half. */
.borgo-photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.borgo-photo img, .catalog-card .borgo-photo img { width: 200%; max-width: none; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: left center; border-radius: 0; }
.borgo-photo--map { aspect-ratio: 1 / 1; background: #fff; }
.borgo-photo--map img { margin-left: -100%; object-position: right center; }

@media (max-width: 1000px) { .catalog-grid, .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
	.catalog-grid, .business-grid { grid-template-columns: 1fr; gap: 36px; }
	.filterbar { padding: 18px; }
	.filterbar label { flex-basis: 100%; }
	.filter-actions { width: 100%; }
	.filter-actions .button { flex: 1; }
}

/* ==========================================================================
   8. Detail pages: borgo, attività, article
   ========================================================================== */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.detail-hero:not(:has(.detail-hero__media)) { grid-template-columns: minmax(0, 1fr); }
.detail-hero > .crumbs { grid-column: 1 / -1; margin-bottom: 0; }
.detail-hero h1 { font-size: clamp(46px, 5.6vw, 84px); }
.detail-hero__media > img, .detail-hero__media .borgo-photo { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; gap: clamp(32px, 5vw, 72px); }
.side-note { position: sticky; top: 24px; padding: 28px; border-top: 4px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius); background: var(--cream); }
.side-note h2 { margin: 10px 0 18px; font-size: 26px; }
.side-note .side-title { margin: 16px 0 8px; font-family: var(--font-head); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.side-note p { line-height: 1.7; color: var(--muted); }
.side-note a { display: block; margin-top: 18px; font-weight: 600; }
.side-note a:not(.button):hover { color: var(--brand); }
.side-note .button { display: flex; width: 100%; }
.side-note .borgo-photo--map { margin-top: 16px; border-radius: var(--radius-sm); }

.fact-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fact-grid--stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 20px; }
.service-card { padding: 30px; border-radius: var(--radius); background: var(--cream); }
.service-card .num { font-size: 18px; }
.service-card h2 { margin: 16px 0 14px; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; letter-spacing: -.02em; }
.service-card p { margin-bottom: .8em; line-height: 1.8; color: var(--muted); }
.service-card p:last-child { margin-bottom: 0; }

.article-head h1 { max-width: 1040px; font-size: clamp(36px, 4.4vw, 64px); }
.article-head .lead { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.article-head:has(+ .article-cover) { padding-bottom: calc(var(--space-intro) + clamp(60px, 10vw, 150px)); }
.article-cover { margin: calc(-1 * clamp(60px, 10vw, 150px)) var(--pad-x) 0; }
.article-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; max-height: 600px; object-fit: cover; border-radius: var(--radius); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; align-items: start; gap: clamp(40px, 5vw, 80px); }
.article-aside { position: sticky; top: 24px; display: grid; gap: 32px; }
.toc summary { list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 14px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc li a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--muted); }
.toc li a:hover { border-left-color: var(--brand); color: var(--brand); }
.share .tag, .article-places .tag { margin-bottom: 12px; }
.article-places ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article-places a { display: inline-block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--brand); font-size: 13px; font-weight: 600; }
.article-places a:hover { border-color: var(--brand); }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-copy { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.share-links a:hover, .share-copy:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 1000px) {
	.detail-layout { gap: 32px; }
	.fact-grid, .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.article-aside { position: static; }
	.toc { padding: 16px 20px; border-radius: var(--radius); background: var(--cream); }
	.toc summary::after { content: " +"; }
	.toc[open] summary::after { content: " –"; }
}
@media (max-width: 800px) {
	.detail-hero { grid-template-columns: minmax(0, 1fr); }
	.detail-layout { grid-template-columns: minmax(0, 1fr); }
	.side-note { position: static; }
}
@media (max-width: 650px) {
	.page-intro h1 { font-size: 40px; letter-spacing: -1.3px; }
	.detail-hero h1 { font-size: 46px; }
	.article-head h1 { font-size: 34px; }
	.page-intro .lead { font-size: 17px; }
	.crumbs { margin-bottom: 22px; font-size: 12px; }
	.article-cover img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   9. Long texts (articles, borghi, information pages)
   ========================================================================== */
.prose { max-width: 760px; font-size: 18px; line-height: 1.85; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin: 1.8em 0 .6em; font-size: clamp(26px, 2.4vw, 32px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 22px; font-weight: 600; line-height: 1.3; }
.prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brand); font-family: var(--font-serif); font-size: 22px; font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose .wp-block-button__link { display: inline-flex; padding: 14px 24px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
@media (max-width: 650px) { .prose { font-size: 17px; } }

/* ==========================================================================
   10. Content blocks of the pages
   ========================================================================== */
.wide-callout { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--brand); color: #fff; }
.wide-callout h2 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; }
.wide-callout p { margin: 12px 0 0; line-height: 1.7; color: var(--cream); }
.wide-callout .eyebrow { margin: 0 0 12px; color: var(--cream); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notice { margin: 25px 0; padding: 22px 28px; border-left: 4px solid var(--brand); background: var(--cream); line-height: 1.8; }
.source-note { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--muted); }
.contact-links { display: grid; gap: 16px; margin-top: 32px; }
.contact-links a { display: flex; justify-content: space-between; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; transition: border-color .2s, background-color .2s; }
.contact-links a:hover { border-color: var(--brand); background: var(--cream); }
.contact-links small { display: block; margin-top: 8px; color: var(--muted); }
.more-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.more-links a { padding: 13px 18px; border: 1px solid var(--line); border-radius: 25px; font-size: 14px; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 28px; }
.search-form input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-block); }
.page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.page-numbers.current { border-color: var(--brand); background: var(--brand); color: #fff; }
@media (max-width: 1000px) { .wide-callout { flex-direction: column; align-items: flex-start; } }
@media (max-width: 650px) { .contact-links a { padding: 20px; font-size: 15px; } }

/* Contact Form 7 */
.bds-contact-form { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.bds-contact-form h2 { margin: 0 0 18px; }
.bds-form-intro { line-height: 1.7; color: var(--muted); }
.bds-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bds-form-field p { margin: 0; }
.bds-form-grid label { display: block; font-size: 14px; font-weight: 600; }
.bds-form-wide { grid-column: 1 / -1; }
:is(.bds-contact-form, .bds-form) :is(input[type=text], input[type=email], input[type=tel], textarea) { display: block; width: 100%; min-height: 50px; margin-top: 9px; padding: 14px 16px; border: 1px solid #cfc3b8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; }
:is(.bds-contact-form, .bds-form) textarea { min-height: 170px; resize: vertical; }
.bds-form-privacy { margin-top: 24px; font-size: 14px; line-height: 1.6; }
.bds-form-privacy a { color: var(--brand); text-decoration: underline; }
.bds-form-privacy .wpcf7-list-item { margin-left: 0; }
.bds-form-privacy input { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; accent-color: var(--brand); }
.bds-form-required { margin-top: 18px; font-size: 13px; color: var(--muted); }
:is(.bds-contact-form, .bds-form) .bds-submit { min-width: 180px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
:is(.bds-contact-form, .bds-form) .bds-submit:disabled { opacity: .55; cursor: not-allowed; }
:is(.bds-contact-form, .bds-form) .wpcf7-response-output { margin: 24px 0 0 !important; padding: 16px !important; }
:is(.bds-contact-form, .bds-form) .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; }
@media (max-width: 750px) { .bds-form-grid { grid-template-columns: 1fr; } .bds-form-wide { grid-column: auto; } }

/* ==========================================================================
   12. Contact page
   ========================================================================== */
.icon { display: inline-grid; place-items: center; flex-shrink: 0; }
.icon::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.icon--chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-11.6 7.1L4 20l1-4.4A8 8 0 1 1 20 12Z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
.icon--megaphone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5v3a1 1 0 0 0 1 1h2.5L12 19V5L6.5 9.5H4a1 1 0 0 0-1 1Z'/%3E%3Cpath d='M15.5 9a4.5 4.5 0 0 1 0 6'/%3E%3Cpath d='M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E"); }
.icon--calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.icon--instagram { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E"); }
.icon--tiktok { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v11.5a3.5 3.5 0 1 1-3.5-3.5'/%3E%3Cpath d='M14 3c.4 2.6 2.4 4.6 5 5'/%3E%3C/svg%3E"); }
.icon--facebook { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2.5A3.5 3.5 0 0 0 9 6.5V10H6.5v3.5H9V21h3.5v-7.5H15l.5-3.5h-3V7a1 1 0 0 1 1-1H15Z'/%3E%3C/svg%3E"); }

.contact-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.contact-hero > .crumbs { grid-column: 1 / -1; margin-bottom: 0; }
.contact-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px rgba(48, 39, 37, .08); }
.contact-card .tag { display: block; margin-bottom: 14px; }
.contact-card__email { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; color: var(--brand); overflow-wrap: anywhere; }
.contact-card__email:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-card__email .icon, .option-card .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--brand); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s; }
.social-link .icon::before { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--brand); color: var(--brand); }

.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.option-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.option-card:hover { border-color: var(--brand); box-shadow: 0 16px 36px rgba(48, 39, 37, .1); transform: translateY(-4px); }
.option-card h3 { margin: 22px 0 10px; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.25; color: var(--ink); }
.option-card p { margin: 0 0 22px; line-height: 1.7; color: var(--muted); }
.option-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--brand); }
.option-card__cta::after { content: "→"; transition: transform .2s; }
.option-card:hover .option-card__cta::after { transform: translateX(4px); }

.contact-form-section { background: var(--cream); }
.page-section + .contact-form-section { padding-top: var(--space-section); }
.contact-form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: clamp(24px, 3vw, 40px); }
.contact-form-main { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px rgba(48, 39, 37, .06); }
.contact-form-main h2 { margin: 0 0 14px; }
.contact-form-main .bds-form-intro { margin-bottom: 28px; }
.contact-aside { position: sticky; top: 24px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--brand); color: #fff; }
.contact-aside .eyebrow { color: var(--cream); }
.contact-aside h2 { margin: 0 0 16px; font-size: clamp(26px, 2.4vw, 32px); color: #fff; }
.contact-aside p:not(.eyebrow) { margin-bottom: 26px; line-height: 1.7; color: var(--cream); }
.contact-aside .button.yellow { background: var(--cream); color: var(--brand); }
.contact-aside .button.yellow:hover { background: #fff; }
.contact-aside :focus-visible { outline-color: var(--cream); }
.bds-form .bds-submit { min-height: 54px; padding: 14px 28px; }

/* Community numbers (Pubblicità, Contatti) */
* + .community-block { margin-top: var(--space-block); }
.community-block { padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--cream); }
.community-block__head { max-width: 640px; margin-bottom: clamp(28px, 3vw, 40px); }
.community-block__head h2 { margin: 0 0 14px; font-size: clamp(28px, 2.8vw, 40px); color: var(--brand); }
.community-block__head p:not(.eyebrow) { margin: 0; line-height: 1.7; color: var(--muted); }
.community-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 26px 24px; border-radius: var(--radius); background: #fff; transition: opacity .6s ease, transform .6s ease; container-type: inline-size; }
.stat .icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--cream); color: var(--brand); }
/* The number follows the width of its box (cqi), so “+37.000” always fits, in narrow boxes too. */
.stat-num { max-width: 100%; font-family: var(--font-head); font-size: clamp(26px, 3vw, 44px); font-size: clamp(20px, 22cqi, 52px); font-weight: 700; line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.community-stats.is-animated .stat:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.community-band { background: var(--brand); color: #fff; }
.page-section + .community-band { padding-top: var(--space-section); }
.community-band + .contact-form-section { padding-top: var(--space-section); }
.community-band .eyebrow { color: var(--cream); }
.community-band .community-block__head h2 { color: #fff; }
.community-band .community-block__head p:not(.eyebrow) { color: var(--cream); }
.community-band .stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.community-band .stat .icon { background: rgba(255, 255, 255, .14); color: #fff; }
.community-band .stat-num { color: #fff; }
.community-band .stat-label { color: var(--cream); }
.community-band__social { margin-top: clamp(28px, 3vw, 40px); }
.community-band .social-link { border-color: rgba(255, 255, 255, .5); color: #fff; }
.community-band .social-link:hover { border-color: #fff; background: #fff; color: var(--brand); }
.community-band :focus-visible { outline-color: var(--cream); }

/* Contact page opening with a photo */
.contact-hero--photo { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: stretch; }
.contact-hero--photo .contact-hero__text { align-self: center; }
.contact-hero--photo .contact-card { margin-top: 32px; max-width: 560px; }
.contact-hero__media { position: relative; min-height: 420px; margin: 0; overflow: hidden; border-radius: var(--radius); }
.contact-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }

@media (max-width: 1000px) { .community-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
	.contact-hero--photo { grid-template-columns: minmax(0, 1fr); }
	.contact-hero__media { min-height: 0; aspect-ratio: 4 / 3; }
}
/* Phones: one row per channel (icon, number, label), so the numbers stay big. */
@media (max-width: 560px) {
	.community-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 14px 18px; }
	.stat .icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
	.stat-num { font-size: 30px; }
	.stat-label { margin-top: 4px; font-size: 14px; }
}

@media (max-width: 1000px) {
	.option-grid { grid-template-columns: minmax(0, 1fr); }
	.contact-form-layout { grid-template-columns: minmax(0, 1fr); }
	.contact-aside { position: static; }
}
@media (max-width: 800px) { .contact-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 650px) { .bds-form .bds-submit { width: 100%; } }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { padding: clamp(48px, 6vw, 72px) var(--pad-x) 24px; background: var(--brand); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-logo img { height: 76px; }
.footer-brand p { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: var(--cream); }
.footer-title { margin-bottom: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--cream); opacity: .85; }
.footer-menu { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-social a { display: inline-flex; align-items: center; gap: 12px; }
.footer-social .icon { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; transition: background-color .2s, color .2s, border-color .2s; }
.footer-social .icon::before { width: 18px; height: 18px; }
.footer-social a:hover { text-decoration: none; }
.footer-social a:hover .icon { border-color: #fff; background: #fff; color: var(--brand); }
.site-footer :focus-visible, .events :focus-visible, .wide-callout :focus-visible { outline-color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 12px; color: var(--cream); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .brand-logo img { height: 64px; } .footer-bottom { flex-direction: column; } }

/* ==========================================================================
   12. Language switch (IT · EN) and cookie banner
   ========================================================================== */
.lang-switch { display: flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .8px; }
.lang-switch > a, .lang-switch > span { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 9px; }
.lang-switch > * + *::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--line); }
.lang-switch > span { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.lang-switch > a { color: var(--muted); }
.lang-switch > a:hover { color: var(--brand); }
.has-hero-overlay .lang-switch > a, .has-hero-overlay .lang-switch > span { color: #fff; }
.has-hero-overlay .lang-switch > * + *::before { background: rgba(255, 255, 255, .45); }
@media (min-width: 1101px) {
	.site-header > nav { margin-left: auto; }
	.lang-switch { padding-left: 14px; border-left: 1px solid var(--line); }
	.has-hero-overlay .lang-switch { border-left-color: rgba(255, 255, 255, .35); }
}
@media (max-width: 1100px) {
	.lang-switch { position: relative; z-index: 2; margin-left: auto; margin-right: -12px; }
	.lang-switch > a, .lang-switch > span { transition: color .25s ease; }
	.menu-open .lang-switch > a, .menu-open .lang-switch > span { color: #fff; transition-delay: .05s; }
	.menu-open .lang-switch > * + *::before { background: rgba(255, 255, 255, .45); }
}

.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(440px, calc(100% - 32px)); padding: 24px 24px 20px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(48, 39, 37, .28); opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__title { margin: 0 36px 10px 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.cookie-banner p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cookie-banner p a { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__choice { min-height: 46px; padding: 12px 18px; background: var(--brand); color: #fff; }
.cookie-banner__choice:hover { background: var(--brand-dark); }
.cookie-banner__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.cookie-banner__close:hover { background: var(--cream); color: var(--ink); }
.cookie-banner :focus-visible { outline-offset: 2px; }
@media (max-width: 480px) { .cookie-banner { right: 16px; bottom: 16px; padding: 20px 18px 16px; } }
.bds-consent-open:not(.button) { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.bds-consent-open:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
	.discovery > a:hover, .discovery > a:active, .button:hover { transform: none; }
	.site-header nav.open { animation: none; }
}
