/*
Theme Name: Ottica Template
Theme URI: https://calafato.logosmarketing.eu
Description: Child theme riutilizzabile per negozi di ottica e centri ottici. Design system in theme.json, componenti come pattern, dati attivita centralizzati in "Dati attivita".
Author: Logos Marketing
Template: hostinger-ai-theme
Version: 1.0.0
Text Domain: ottica
*/

/* =========================================================
   1. TOKEN (alias leggibili sopra i preset di theme.json)
   Per cambiare identita visiva basta modificare i colori e i
   font in theme.json: questi alias si aggiornano da soli.
   ========================================================= */
:root {
	--primary: var(--wp--preset--color--primary);
	--primary-dark: var(--wp--preset--color--primary-dark);
	--secondary: var(--wp--preset--color--primary-soft);
	--background: var(--wp--preset--color--base);
	--surface: var(--wp--preset--color--surface);
	--text: var(--wp--preset--color--contrast);
	--text-muted: var(--wp--preset--color--muted);
	--border: var(--wp--preset--color--border);
	--gutter: var(--wp--custom--gutter);
	--r-button: var(--wp--custom--radius--button);
	--r-input: var(--wp--custom--radius--input);
	--r-card: var(--wp--custom--radius--card);
	--r-media: var(--wp--custom--radius--media);
	--shadow-soft: var(--wp--preset--shadow--soft);
	--shadow-lift: var(--wp--preset--shadow--lift);
	--header-h: 72px;
	--ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }

/* =========================================================
   2. ACCESSIBILITA
   ========================================================= */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 3px;
	border-radius: 4px;
}
.ot-on-dark :focus-visible,
.ot-footer :focus-visible { outline-color: #fff; }
.screen-reader-text:focus, .skip-link:focus {
	background: var(--background); color: var(--text); padding: 0.75rem 1rem;
	clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 1000;
	box-shadow: var(--shadow-lift); border-radius: var(--r-button);
}
.ot-placeholder {
	background: #FFF4CC; color: #5C4600; border-radius: 4px; padding: 0 0.3em;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ot-on-dark .ot-placeholder, .ot-footer .ot-placeholder { background: rgba(255,255,255,0.14); color: #FFE9A8; }
p:empty { display: none; }

/* =========================================================
   3. LAYOUT: sezioni, contenitori, gutter
   ========================================================= */
.wp-site-blocks { overflow-x: clip; }
.ot-main { min-height: 50vh; }
.wp-block-post-content > :where(:not(.alignfull)) { padding-inline: var(--gutter); }

.ot-section {
	padding-block: var(--wp--preset--spacing--70);
	padding-inline: var(--gutter);
}
.ot-section--surface { background: var(--surface); }
.ot-section--soft { background: var(--secondary); }
.ot-section--dark { background: var(--primary-dark); color: #fff; }
.ot-section--dark :is(h1, h2, h3, h4) { color: #fff; }
.ot-section--dark :is(p, li) { color: #D6E4E8; }
.ot-section--dark a:not(.wp-block-button__link) { color: #fff; }
.ot-section__head { max-width: 40rem; margin-bottom: var(--wp--preset--spacing--60); }
.ot-section__head > * { margin-block: 0; }
.ot-section__head > * + * { margin-top: 0.75rem; }
.ot-section__head.is-centered { margin-inline: auto; text-align: center; }
.ot-lead { font-size: var(--wp--preset--font-size--medium); color: var(--text-muted); line-height: 1.55; max-width: 38rem; }
.ot-section--dark .ot-lead { color: #D6E4E8; }
.ot-muted { color: var(--text-muted); }
.ot-small { font-size: var(--wp--preset--font-size--small); }

/* =========================================================
   4. PULSANTI
   ========================================================= */
.wp-block-button__link, .wp-element-button {
	min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.wp-block-button__link:active { transform: translateY(0); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--primary); border: 2px solid var(--primary); padding-block: calc(0.85rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--primary); color: #fff; }
.wp-block-button.is-style-ot-on-dark .wp-block-button__link { background: #fff; color: var(--primary-dark); }
.wp-block-button.is-style-ot-on-dark .wp-block-button__link:hover { background: var(--secondary); color: var(--primary-dark); }
.wp-block-button.is-style-ot-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); padding-block: calc(0.85rem - 2px); }
.wp-block-button.is-style-ot-outline-light .wp-block-button__link:hover { background: #fff; color: var(--primary-dark); }
.wp-block-buttons { gap: 0.75rem; }

/* =========================================================
   5. CARD E MEDIA
   ========================================================= */
.ot-card, .is-style-ot-card {
	background: var(--background); border: 1px solid var(--border); border-radius: var(--r-card);
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--shadow-soft);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
	height: 100%; box-sizing: border-box;
}
.ot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #BFCFD5; }
.ot-card > * { margin-block: 0; }
.ot-card > * + * { margin-top: 0.75rem; }
.ot-card h3 { margin-top: 0; }
.ot-card .wp-block-post-featured-image { margin-bottom: 0.5rem; }
.ot-card .wp-block-post-featured-image img { border-radius: calc(var(--r-card) - 6px); }
.ot-icon {
	width: 3rem; height: 3rem; border-radius: 12px; background: var(--secondary); color: var(--primary);
	display: inline-flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--ot-heading); font-weight: 800; font-size: 1.125rem;
}
.ot-media-placeholder {
	position: relative; border-radius: var(--r-media); overflow: hidden; min-height: 220px; width: 100%;
	background: linear-gradient(135deg, var(--secondary) 0%, #CFE0E4 100%);
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
	color: var(--primary-dark); font-weight: 600; box-sizing: border-box;
}
.ot-media-placeholder p { margin: 0; max-width: 18rem; }
.ot-media-placeholder--tall { min-height: 360px; }
.ot-media-placeholder--sq { aspect-ratio: 1 / 1; min-height: 0; }
.ot-media-placeholder--wide { aspect-ratio: 4 / 3; min-height: 0; }

/* =========================================================
   6. HEADER (sticky) E NAVIGAZIONE
   ========================================================= */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border);
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.ot-header__bar {
	min-height: var(--header-h); padding-inline: var(--gutter); max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-sizing: border-box;
}
.ot-brand { display: flex; align-items: center; gap: 0.75rem; }
.ot-brand .wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--ot-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.ot-brand .wp-block-site-title a { color: var(--text); text-decoration: none; }
.ot-brand .wp-block-site-logo img { max-height: 48px; width: auto; border-radius: 0; }
.ot-nav { font-family: var(--wp--preset--font-family--ot-heading); font-weight: 600; font-size: 0.975rem; }
.ot-nav .wp-block-navigation-item__content { padding: 0.5rem 0.25rem; text-decoration: none; color: var(--text); position: relative; }
.ot-nav .wp-block-navigation-item__content:hover { color: var(--primary); }
.ot-nav .current-menu-item > .wp-block-navigation-item__content,
.ot-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--primary); }
.ot-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	content: ""; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px;
}
.ot-nav .wp-block-navigation__container { gap: 1.25rem; }
.ot-nav .wp-block-buttons { margin: 0; }
.ot-nav .wp-block-button__link { padding: 0.65rem 1.1rem; min-height: 44px; font-size: 0.95rem; }
.ot-nav .wp-block-navigation__responsive-container-open { min-width: 48px; min-height: 48px; justify-content: center; border-radius: var(--r-button); }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem var(--gutter) 2rem; background: var(--background); }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 0; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content { font-size: 1.375rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); width: 100%; box-sizing: border-box; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-buttons { margin-top: 1.25rem; width: 100%; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-button { width: 100%; }
.ot-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-button__link { width: 100%; font-size: 1.125rem; min-height: 56px; }
/* menu a tendina da tablet in giu: il menu core scatta a 600px, qui lo estendiamo a 899px */
@media (min-width: 600px) and (max-width: 899px) {
	.ot-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.ot-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* =========================================================
   7. HERO
   ========================================================= */
.ot-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-inline: var(--gutter); background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%); }
.ot-hero__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; max-width: 1200px; margin-inline: auto; }
@media (min-width: 900px) { .ot-hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.ot-hero h1 { margin: 0; }
.ot-hero .ot-lead { margin-top: 1rem; }
.ot-hero .wp-block-buttons { margin-top: 1.75rem; }
.ot-page-hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-inline: var(--gutter); background: var(--secondary); }
.ot-page-hero > * { max-width: 1200px; margin-inline: auto; }
.ot-page-hero h1 { margin: 0; }
.ot-page-hero .ot-lead { margin-top: 0.75rem; margin-inline: auto 0; }

/* =========================================================
   8. GRIGLIE (servizi, team, marchi, recensioni)
   ========================================================= */
.ot-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); max-width: 1200px; margin-inline: auto; }
.ot-grid > * { margin: 0; }
.wp-block-post-template.is-layout-grid { gap: 1.25rem; }
.ot-query { max-width: 1200px; margin-inline: auto; }
.ot-query .wp-block-post-title { margin: 0; font-size: var(--wp--preset--font-size--large); }
.ot-query .wp-block-post-excerpt { margin: 0; color: var(--text-muted); }
.ot-query .wp-block-post-excerpt__excerpt { margin: 0; }

.ot-why { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); max-width: 1200px; margin-inline: auto; }
.ot-why > .ot-card { display: flex; flex-direction: column; gap: 0.75rem; }

.ot-brands .wp-block-post-template { gap: 1rem; }
.ot-brands .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.ot-brand-tile { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 1rem; background: var(--background); border: 1px solid var(--border); border-radius: var(--r-card); text-align: center; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.ot-brand-tile:hover { border-color: #BFCFD5; box-shadow: var(--shadow-soft); }
.ot-brand-tile .wp-block-post-title { margin: 0; font-size: 1rem; font-weight: 700; }
.ot-brand-tile img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.ot-brand-tile:hover img { filter: none; opacity: 1; }

.ot-review .wp-block-post-content { color: var(--text); font-size: var(--wp--preset--font-size--base); }
.ot-review .wp-block-post-content p { margin: 0; }
.ot-review__who { margin-top: auto; }
.ot-review__who .wp-block-post-title { margin: 0; font-size: 1rem; }
.ot-review__who p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--text-muted); }
.ot-review { display: flex; flex-direction: column; }

.ot-team-member .wp-block-post-featured-image { margin: 0 0 0.75rem; }
.ot-team-member .wp-block-post-featured-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--r-media); }
.ot-team-member__role { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin: 0; }

/* =========================================================
   9. TIMELINE (con o senza anni; verticale; progressione allo scroll)
   ========================================================= */
.ot-timeline .wp-block-post-template { position: relative; display: block; list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; }
.ot-timeline .wp-block-post-template::before { content: ""; position: absolute; left: 0.425rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--border); }
.ot-timeline .wp-block-post-template::after { content: ""; position: absolute; left: 0.425rem; top: 0.6rem; width: 2px; height: calc((100% - 1.2rem) * var(--ot-progress, 1)); background: var(--primary); }
.ot-timeline .wp-block-post-template > li { position: relative; margin: 0; padding: 0 0 2.25rem 2rem; display: block; }
.ot-timeline .wp-block-post-template > li:last-child { padding-bottom: 0; }
.ot-timeline .wp-block-post-template > li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--surface); z-index: 1; transition: background-color 0.3s var(--ease); }
.js .ot-timeline .wp-block-post-template > li:not(.is-in)::before { background: var(--surface); box-shadow: 0 0 0 2px var(--border) inset, 0 0 0 4px var(--surface); }
.ot-section:not(.ot-section--surface) .ot-timeline .wp-block-post-template > li::before { box-shadow: 0 0 0 4px var(--background); }
.ot-timeline__year { font-family: var(--wp--preset--font-family--ot-heading); font-weight: 800; font-size: 1.125rem; color: var(--primary); margin: 0 0 0.25rem; line-height: 1.3; }
.ot-timeline__body > * { margin-block: 0; }
.ot-timeline__body > * + * { margin-top: 0.5rem; }
.ot-timeline__body .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.ot-timeline__body .wp-block-post-content { color: var(--text-muted); }
/* con anni: da tablet in su l'anno sta a sinistra della linea */
@media (min-width: 782px) {
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty)) { max-width: 52rem; }
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty))::before,
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty))::after { left: 7rem; }
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty)) > li { display: grid; grid-template-columns: 6rem 1fr; column-gap: 2rem; padding-left: 0; }
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty)) > li::before { left: calc(7rem - 0.425rem); }
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty)) .ot-timeline__year { text-align: right; margin: 0; padding-top: 0.05rem; }
	.ot-timeline .wp-block-post-template:has(.ot-timeline__year:not(:empty)) .ot-timeline__body { grid-column: 2; padding-left: 0.75rem; }
}
/* =========================================================
   10. GALLERY
   ========================================================= */
.ot-gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); max-width: 1200px; margin-inline: auto; }
@media (min-width: 782px) { .ot-gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.ot-gallery > * { margin: 0; }
.ot-gallery .wp-block-image img, .ot-gallery .ot-media-placeholder { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; min-height: 0; }
.ot-gallery > :first-child { grid-column: span 2; }
.ot-gallery > :first-child .ot-media-placeholder, .ot-gallery > :first-child img { aspect-ratio: 16 / 9; }

/* =========================================================
   11. CTA APPUNTAMENTO
   ========================================================= */
.ot-cta { max-width: 1200px; margin-inline: auto; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 782px) { .ot-cta { grid-template-columns: 1fr auto; } }
.ot-cta h2 { margin: 0; }
.ot-cta p { margin: 0.5rem 0 0; max-width: 36rem; }
.ot-cta .wp-block-buttons { margin: 0; }

/* =========================================================
   12. CONTATTI, ORARI, MAPPA, FORM
   ========================================================= */
.ot-contact-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); max-width: 1200px; margin-inline: auto; }
@media (min-width: 900px) { .ot-contact-grid { grid-template-columns: 1fr 1fr; } }
.ot-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ot-info-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.ot-info-list svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.ot-info-list strong { display: block; font-family: var(--wp--preset--font-family--ot-heading); }
.ot-info-list a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
.ot-info-list a:hover { color: var(--primary); text-decoration-color: currentColor; }
.ot-hours { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--base); }
.ot-hours th, .ot-hours td { padding: 0.65rem 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; vertical-align: top; }
.ot-hours th { font-weight: 700; font-family: var(--wp--preset--font-family--ot-heading); padding-right: 1rem; white-space: nowrap; }
.ot-hours tr.is-today th, .ot-hours tr.is-today td { color: var(--primary); font-weight: 700; }
.ot-map { border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--border); background: var(--secondary); min-height: 320px; }
.ot-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.ot-map__fallback { padding: 2rem; display: grid; gap: 1rem; justify-items: start; align-content: center; min-height: 320px; box-sizing: border-box; }
.ot-map__fallback p { margin: 0; }
.ot-form { display: grid; gap: 1.1rem; }
.ot-form__row { display: grid; gap: 0.4rem; }
.ot-form__row--2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .ot-form__row--2 { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.ot-form label, .ot-form legend { font-weight: 700; font-family: var(--wp--preset--font-family--ot-heading); font-size: 0.95rem; }
.ot-form label .req { color: #9B1C1C; }
.ot-form input[type="text"], .ot-form input[type="email"], .ot-form input[type="tel"], .ot-form textarea, .ot-form select {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; color: var(--text);
	background: var(--background); border: 1.5px solid #6A7F88; border-radius: var(--r-input);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ot-form textarea { min-height: 140px; resize: vertical; }
.ot-form input:hover, .ot-form textarea:hover, .ot-form select:hover { border-color: var(--primary); }
.ot-form input:focus, .ot-form textarea:focus, .ot-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,92,0.2); outline: none; }
.ot-form__check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.ot-form__check input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--primary); }
.ot-form__check label { font-family: var(--wp--preset--font-family--ot-body); font-weight: 400; font-size: 0.95rem; }
.ot-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ot-form button[type="submit"] { justify-self: start; cursor: pointer; border: 0; }
.ot-notice { padding: 1rem 1.25rem; border-radius: var(--r-input); border: 1.5px solid; margin-bottom: 1rem; font-weight: 600; }
.ot-notice--ok { background: #E8F5EE; border-color: #1F7A4D; color: #0F4B2E; }
.ot-notice--err { background: #FDECEC; border-color: #B42318; color: #7A1410; }

/* FAQ */
.ot-faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.ot-faq details { background: var(--background); border: 1px solid var(--border); border-radius: var(--r-card); padding: 0; overflow: hidden; }
.ot-faq summary { cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--wp--preset--font-family--ot-heading); font-weight: 700; min-height: 48px; box-sizing: border-box; }
.ot-faq details[open] summary { color: var(--primary); }
.ot-faq details > :not(summary) { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--text-muted); }

/* =========================================================
   13. FOOTER
   ========================================================= */
.ot-footer { background: var(--primary-dark); color: #D6E4E8; padding: var(--wp--preset--spacing--70) var(--gutter) 0; font-size: 0.975rem; }
.ot-footer a { color: #fff; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; }
.ot-footer a:hover { text-decoration-color: #fff; }
.ot-footer h2, .ot-footer h3 { color: #fff; font-size: 1.0625rem; letter-spacing: 0; margin: 0 0 0.9rem; }
.ot-footer__grid { display: grid; gap: 2.5rem; max-width: 1200px; margin-inline: auto; }
@media (min-width: 700px) { .ot-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ot-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.ot-footer p { margin: 0 0 0.6rem; }
.ot-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ot-footer .wp-block-site-title, .ot-footer .ot-footer__name { font-family: var(--wp--preset--font-family--ot-heading); font-weight: 800; font-size: 1.5rem; margin: 0 0 0.75rem; color: #fff; }
.ot-footer .wp-block-site-title a { text-decoration: none; }
.ot-footer__hours { font-variant-numeric: tabular-nums; }
.ot-footer__hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 0.4rem; }
.ot-footer__bottom { max-width: 1200px; margin: 2.5rem auto 0; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.18); display: grid; gap: 0.75rem; font-size: 0.875rem; }
@media (min-width: 900px) { .ot-footer__bottom { grid-template-columns: 1fr auto; align-items: start; } }
.ot-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.ot-footer__bottom p { margin: 0; }
.ot-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }

/* =========================================================
   14. BARRA CONTATTI MOBILE
   ========================================================= */
.ot-mobile-bar { display: none; }
@media (max-width: 781px) {
	.ot-mobile-bar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--background); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(22,35,43,0.08);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.ot-mobile-bar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: 56px; padding: 0.4rem;
		text-decoration: none; color: var(--text); font-family: var(--wp--preset--font-family--ot-heading); font-weight: 700; font-size: 0.8125rem;
	}
	.ot-mobile-bar a svg { width: 1.375rem; height: 1.375rem; }
	.ot-mobile-bar a.is-primary { background: var(--primary); color: #fff; }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   15. ANIMAZIONI LEGGERE (degradano a visibile)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
	.js .ot-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
	.js .ot-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.ot-card:hover, .wp-block-button__link:hover { transform: none; }
}

/* =========================================================
   16. PAGINE DI TESTO (privacy, cookie, articoli)
   ========================================================= */
.ot-icon svg { width: 1.5rem; height: 1.5rem; }
.ot-brand-tile:has(img) .wp-block-post-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ot-prose { padding-block: var(--wp--preset--spacing--60); }
.ot-prose :where(h2) { margin-top: 2.25rem; }
.ot-prose :where(h3) { margin-top: 1.75rem; }
.ot-prose :where(ul, ol) { padding-left: 1.25rem; }
.ot-prose :where(li + li) { margin-top: 0.4rem; }

/* =========================================================
   17. FASE 2: HOME (hero ampia, card servizi, recensioni)
   ========================================================= */
.ot-hero { padding-block: clamp(2.5rem, 1rem + 6vw, 6rem); }
.ot-hero__grid { gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) {
	.ot-hero { min-height: min(78vh, 720px); display: flex; align-items: center; }
	.ot-hero__grid { width: 100%; grid-template-columns: 1fr 1fr; }
}
.ot-hero__media { min-height: 280px; }
@media (min-width: 900px) { .ot-hero__media { min-height: clamp(380px, 52vh, 560px); } }
.ot-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); }
.ot-hero .ot-lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); }
.ot-hero .wp-block-buttons { margin-top: 2rem; }
.ot-hero .wp-block-button__link { min-height: 52px; padding-inline: 1.75rem; }

.ot-service-card { display: flex; flex-direction: column; }
.ot-service-card .ot-media-placeholder, .ot-service-card .wp-block-post-featured-image { width: 100%; }
.ot-service-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ot-ph-service { aspect-ratio: 3 / 2; min-height: 0; border-radius: calc(var(--r-card) - 6px); }
.ot-ph-person { aspect-ratio: 4 / 5; min-height: 0; }
.ot-more { margin-top: auto !important; padding-top: 0.5rem; }
.ot-more a { font-weight: 700; font-family: var(--wp--preset--font-family--ot-heading); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.ot-more a::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.ot-more a:hover::after { transform: translateX(3px); }
.ot-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

.ot-stars { display: flex; align-items: center; gap: 2px; color: var(--primary); margin: 0 0 0.25rem; }
.ot-stars svg { width: 1.25rem; height: 1.25rem; flex: none; }
.ot-stars .ot-placeholder { margin-left: 0.5rem; font-size: var(--wp--preset--font-size--small); }
.ot-review .wp-block-post-content { flex: 1; }
.ot-review__who { border-top: 1px solid var(--border); padding-top: 0.9rem; margin-top: 0.5rem !important; }
@media (max-width: 599px) {
	.ot-hero .wp-block-buttons, .ot-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.ot-hero .wp-block-button, .ot-cta .wp-block-button { width: 100%; }
	.ot-hero .wp-block-button__link, .ot-cta .wp-block-button__link { width: 100%; }
}
/* Allineamento: tutti i contenuti di sezione sul contenitore da 1200px; il testo introduttivo resta stretto */
.ot-section > * { max-width: 1200px; margin-inline: auto; }
.ot-section > .ot-section__head { max-width: 1200px; width: 100%; }
.ot-section__head > * { max-width: 40rem; }
.ot-section__head.is-centered > * { margin-inline: auto; }
.ot-section > .wp-block-buttons { width: 100%; }

/* =========================================================
   18. FASE 3: CHI SIAMO
   ========================================================= */
.ot-hero--page { min-height: 0 !important; }
.ot-hero--page .ot-hero__media { min-height: 280px; }
@media (min-width: 900px) { .ot-hero--page .ot-hero__media { min-height: clamp(340px, 46vh, 480px); } }
.ot-hero--page .ot-hero__text > p { max-width: 38rem; }
.ot-hero--page .ot-hero__text > p + p { margin-top: 1rem; }

/* Galleria a mosaico */
.ot-gallery--mosaic { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.ot-gallery--mosaic > :first-child { grid-column: span 2; }
.ot-gallery--mosaic .ot-media-placeholder { aspect-ratio: auto; min-height: 11rem; height: 100%; }
.ot-gallery--mosaic .ot-media-placeholder small { font-weight: 400; }
.ot-gallery--mosaic .wp-block-image, .ot-gallery--mosaic figure { height: 100%; margin: 0; }
.ot-gallery--mosaic .wp-block-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (min-width: 782px) {
	.ot-gallery--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(11rem, 1fr); gap: 1rem; }
	.ot-gallery--mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
	.ot-gallery--mosaic > :first-child .ot-media-placeholder { aspect-ratio: auto; }
}

.ot-team-member.ot-card { padding: 1rem 1rem 1.5rem; }
.ot-team-member .wp-block-post-title { margin-top: 0.25rem; }