/* Gusti e Tradizioni di Altamura - foglio di stile (ripreso dalla grafica del vecchio tema The7). */

/* ---------- Font (ospitati sul server, nessuna chiamata a Google Fonts) ---------- */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/lato-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-bold-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fredoka-one-latin.woff2) format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/josefin-sans-italic-latin.woff2) format('woff2'); }

/* ---------- Variabili ---------- */
:root {
  --gold: #be7f2e;
  --gold-dark: #9f6a24;
  --brown: #542b11;
  --text: #8b9091;
  --text-dark: #5f6465;
  --grey-head: #4a4c4c;
  --bg: #f7f7f7;
  --bg-soft: #f3f4f8;
  --white: #ffffff;
  --line: rgba(51, 51, 51, 0.12);
  --sans: 'Lato', Helvetica, Arial, Verdana, sans-serif;
  --round: 'Fredoka One', Helvetica, Arial, Verdana, sans-serif;
  --script: 'Josefin Sans', Helvetica, Arial, Verdana, sans-serif;
  --side: 250px;
  --wrap: 1100px;
  --gutter: 30px;
  --mobile-head: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 17px/30px var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brown); }
p { margin: 0 0 15px; }
h1, h2, h3, h4 { font-family: var(--round); font-weight: 400; color: var(--brown); margin: 0 0 15px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
strong { color: var(--text-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.sr-only { 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: -60px; z-index: 1000; background: var(--brown); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--gold);
  border-radius: 0; background: var(--gold); color: #fff; font: 700 17px/19px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-wide { width: 200px; }
.btn-sm { padding: 8px 14px; font-size: 14px; line-height: 16px; min-width: 150px; }
.btn .icon { font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; font-size: inherit; }

/* ---------- Titoli ---------- */
.kicker { font: italic 400 26px/36px var(--script); color: var(--gold); margin-bottom: 10px; }
.kicker-sm { font-size: 22px; line-height: 32px; margin-bottom: 25px; }
.title { font-size: 50px; line-height: 58px; margin-bottom: 0; }
.title-sm { font-size: 30px; line-height: 38px; margin-bottom: 6px; }
.section { padding: 70px 0; background: var(--white); }
.section-head { text-align: center; margin-bottom: 50px; }

/* ---------- Intestazione laterale (desktop) ---------- */
.site-header { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); z-index: 100; background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, .07); overflow-y: auto; }
.header-inner { padding: 20px 25px 30px; }
.logo { display: block; }
.logo-side { width: 200px; height: auto; margin: 0 auto 30px; }
.logo-mobile, .menu-toggle { display: none; }
.main-nav li { margin: 0 0 6px; }
.main-nav a { font: 18px/22px var(--round); color: var(--brown); display: inline-block; padding: 2px 0; }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold); }
.header-contacts { margin-top: 28px; font-size: 13px; line-height: 20px; font-weight: 700; }
.header-contacts a { display: flex; align-items: center; gap: 8px; color: var(--brown); margin-bottom: 6px; }
.header-contacts a:hover { color: var(--gold); }
.header-contacts .icon { font-size: 12px; color: var(--brown); }
.socials { display: flex; gap: 6px; margin-top: 10px; }
.social { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; }
.social:hover { background: var(--gold); color: #fff; }
.site-main { margin-left: var(--side); }

/* ---------- Presentazione (hero) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 50px 0;
  background: #f2f3f7 url(../../media/2021/11/bread-bck-3.jpg) center / cover no-repeat; }
/* Come le colonne WPBakery del vecchio tema: testo 6/12, collage 5/12, 1/12 libero (dove sporge l'ultima foto piccola) */
.hero-inner { width: 100%; display: grid; grid-template-columns: 6fr 5fr 1fr; align-items: center; }
.hero-text { text-align: center; padding: 20px 12% 30px; }
.hero-text .kicker { margin-bottom: 20px; }
.hero-title { font-size: 70px; line-height: 76px; margin-bottom: 15px; }
.hero-lead { font-size: 24px; line-height: 38px; margin-bottom: 35px; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.hero-buttons .btn { margin: 0 10px; }
/* Collage: slider quadrato di lato --s (colonna - 150px), con 100px (--u) di spazio sopra e sotto per le foto piccole.
   Mostra a destra un pezzo della foto successiva, come il carosello del vecchio tema. */
.hero-collage { container-type: inline-size; width: 100%; }
.collage { --u: 100px; --s: calc(100cqw - 150px); position: relative; padding: var(--u) 0; }
.collage .slider { width: calc(var(--s) + var(--u)); }
.collage .slider-track { gap: calc(var(--u) * .3); }
.collage .slide { flex: 0 0 var(--s); }
.collage .slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.collage .slider-nav { left: 0; bottom: 0; }
.decor { position: absolute; z-index: 2; width: var(--u); height: auto; object-fit: cover; }
.decor-a { left: var(--s); top: 0; }
.decor-b { left: calc(var(--s) + var(--u)); top: calc(var(--s) - var(--u)); }
.decor-c { left: calc(var(--s) - var(--u)); top: var(--s); width: calc(2 * var(--u)); }

/* ---------- Slider (presentazione e album) ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .8s ease; }
.slide { flex: 0 0 100%; }
.slide img { width: 100%; height: auto; }
.slider-nav { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; }
.slider-nav button { width: 30px; height: 30px; border: 0; background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.slider-nav button:hover { background: var(--gold); color: #fff; }
.slider-album .slider-nav { left: auto; right: 14px; bottom: 14px; }
.slider-album .slide { display: flex; align-items: center; justify-content: center; background: #f4f5f7; }
.slider-album .slide img { width: auto; max-height: 640px; }

/* ---------- Chi siamo ---------- */
.about { padding: 70px 0 40px; }
.about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin: 0 auto; }
.about-text .btn { margin-top: 10px; }

/* ---------- Numeri ---------- */
.stats { position: relative; padding: 50px 0 40px; background: #3a2a1d url(../../media/2021/11/bread-3.jpg) center / cover no-repeat fixed; }
.stats::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.stats-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { display: flex; align-items: center; gap: 20px; justify-content: center; }
.stat-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-body { margin: 0; color: #fff; }
.stat-number { display: block; font: 36px/40px var(--round); }
.stat-label { display: block; font: italic 20px/24px var(--script); }

/* ---------- Le nostre specialità ---------- */
.specialties { padding: 70px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { border: 4px solid var(--gold); padding: 30px 10px; text-align: center; }
.card-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; }
.card h3 { font-size: 26px; line-height: 34px; margin-bottom: 0; }
.card-sub { font: italic 18px/28px var(--script); color: var(--text); margin-bottom: 18px; }

/* ---------- Pane, frise, focacce ---------- */
.product { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; min-height: 700px;
  background: center / cover no-repeat; }
.product-pane { background-image: url(../../media/2021/11/grano-bck.jpg); }
.product-frise { background-image: url(../../media/2019/10/b-f-003.jpg); }
.product-focacce { background-image: url(../../media/2021/11/forno-1.jpg); }
.product-media { padding: 80px 0; }
.product-media img { width: 100%; height: auto; aspect-ratio: 450 / 650; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.product-text { background: #fff; align-self: stretch; padding: 80px 57px; display: flex; flex-direction: column; justify-content: center; }
.product-img-left .product-media { grid-column: 3 / span 4; grid-row: 1; }
.product-img-left .product-text { grid-column: 7 / span 6; grid-row: 1; }
.product-img-right .product-text { grid-column: 1 / span 6; grid-row: 1; }
.product-img-right .product-media { grid-column: 7 / span 4; grid-row: 1; }
.number-list { counter-reset: num; margin: 0 0 25px; }
.number-list li { counter-increment: num; position: relative; padding-left: 32px; margin-bottom: 8px; font-size: 15px; line-height: 24px; }
.number-list li::before { content: counter(num); position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #fff; font: 700 11px/20px var(--sans); text-align: center; }
.product-text p:not(.kicker) { font-size: 15px; line-height: 26px; }

/* ---------- Foto Gallery ---------- */
.gallery { padding: 70px 0 50px; background: #eeeae4 url(../../media/2021/11/grano-bck-contact.jpg) center / cover no-repeat; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lb-item { position: relative; display: block; overflow: hidden; }
.lb-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s; }
.lb-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(84, 43, 17, .45); color: #fff;
  font-size: 22px; opacity: 0; transition: opacity .3s; }
.lb-item:hover img, .lb-item:focus-visible img { transform: scale(1.05); }
.lb-item:hover .lb-zoom, .lb-item:focus-visible .lb-zoom { opacity: 1; }
.gallery-more { text-align: center; margin: 30px 0 0; }
.gallery .btn-outline { background: rgba(255, 255, 255, .7); }
.gallery .btn-outline:hover { background: var(--gold); }

/* ---------- Contatti ---------- */
.contact { background: var(--bg-soft); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info p { font-size: 15px; line-height: 26px; }
.contact-list { margin-top: 25px; }
.contact-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; font: 22px/30px var(--round); color: var(--brown); }
.contact-list .icon { font-size: 30px; color: var(--gold); width: 32px; }
.contact-list a { color: var(--brown); }
.contact-list a:hover { color: var(--gold); }

/* ---------- Modulo contatti ---------- */
.contact-form .field { margin-bottom: 12px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; border: 1px solid var(--line); background: #fdfdfd; color: var(--text-dark); font: 15px/24px var(--sans); padding: 6px 15px; border-radius: 0; min-height: 38px; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; }
.contact-form ::placeholder { color: var(--text); opacity: 1; }
.field-check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; }
.field-check input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.field-check label { flex: 1; }
.field-check .field-error { flex-basis: 100%; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error { display: block; color: #c0392b; font-size: 13px; line-height: 18px; margin-top: 4px; }
.form-submit { position: relative; display: inline-block; margin-top: 8px; }
.contact-form .btn { font-size: 14px; padding: 10px 16px; }
.contact-form.is-sending .btn { padding-right: 42px; }
.form-spinner { display: none; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.contact-form.is-sending .form-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-response { font-size: 14px; line-height: 22px; margin-top: 12px; }
.form-response:empty { display: none; }
.form-response.is-ok { color: #1e7e34; border: 1px solid #a8d5b1; background: #eef8f0; padding: 10px 14px; }
.form-response.is-error { color: #a12b20; border: 1px solid #e8b4ae; background: #fbefed; padding: 10px 14px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-noscript { font-size: 14px; margin-top: 10px; }

/* ---------- Mappa ---------- */
.map-box { position: relative; height: 400px; background: #e9e6e2; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 30px; font-size: 15px; line-height: 24px; }
.map-placeholder[hidden] { display: none; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 0; }
.map-actions .btn { font-size: 14px; padding: 9px 16px; }

/* ---------- Intestazioni di pagina ---------- */
.page-title { padding: 60px 0 55px; text-align: center; background: #f4f5f7; }
.page-title h1 { font-size: 50px; line-height: 58px; color: var(--grey-head); margin-bottom: 10px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; font-size: 13px; line-height: 23px; }
.breadcrumbs li + li::before { content: '/'; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- Album ---------- */
.album-meta { text-align: center; font-size: 13px; line-height: 23px; margin: 20px 0 40px; }
.gallery-grid-album { margin-bottom: 10px; }
.album .gallery-more { margin-top: 40px; }

/* ---------- Pagine legali ed errori ---------- */
.legal .prose { color: var(--text-dark); font-size: 16px; line-height: 27px; }
.legal .prose h2 { font-size: 26px; line-height: 32px; margin-top: 35px; }
.legal .prose h3 { font-size: 19px; line-height: 26px; margin-top: 20px; }
.legal .prose ul { list-style: disc; padding-left: 22px; margin-bottom: 15px; }
.legal .prose li { margin-bottom: 6px; }
.legal-updated { font-size: 14px; color: var(--text); }
.table-wrap { overflow-x: auto; margin-bottom: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border: 1px solid #e3e4e8; vertical-align: top; }
th { background: #f4f5f7; color: var(--brown); font-weight: 700; }
code { font-size: 13px; background: #f4f5f7; padding: 1px 5px; }
.error-page { text-align: center; }

/* ---------- Piè di pagina ---------- */
.bottom-bar { background: var(--brown); color: #fff; font-size: 13px; line-height: 22px; padding: 26px 0; }
.bottom-bar p { margin: 0; }
.bottom-bar a { color: #fff; }
.bottom-bar a:hover { color: #e8b871; }
.bottom-bar-inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-right: 70px; }
.bottom-logo img { width: 32px; height: 32px; }
.bottom-text { flex: 1; min-width: 240px; }
.footer-legal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; opacity: .9; }
.bottom-credits { margin-left: auto !important; }
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(84, 43, 17, .75); color: #fff; font-size: 16px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s; }
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--gold); color: #fff; }

/* ---------- Visualizzatore foto ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: calc(100% - 140px); max-height: calc(100% - 80px); text-align: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; margin: 0 auto; }
.lb-caption { color: #ddd; font-size: 14px; margin-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 26px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -25px; }
.lb-next { right: 10px; top: 50%; margin-top: -25px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- Banner e pannello cookie ---------- */
/* Banner compatto in basso a sinistra, dopo la colonna dell'intestazione (il pulsante "torna su" sta a destra) */
.cookie-banner { position: fixed; left: calc(var(--side) + 16px); bottom: 16px; z-index: 200; width: 410px; max-width: calc(100% - var(--side) - 32px); background: #fff; color: var(--text-dark);
  border-top: 3px solid var(--gold); box-shadow: 0 6px 28px rgba(0, 0, 0, .22); padding: 14px 18px 16px; font-size: 13px; line-height: 20px; }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-text p { margin: 0; }
.cookie-title { font: 18px/24px var(--round); color: var(--brown); margin: 0 26px 4px 0 !important; }
.cookie-text a { color: var(--gold); white-space: nowrap; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; font-size: 14px; line-height: 17px; }
.cookie-banner .cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cookie-banner .cookie-actions .btn { padding: 8px 6px; font-size: 13px; white-space: nowrap; }
.cookie-banner .cookie-close { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 14px; }
.cookie-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: none; color: var(--text-dark); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.cookie-close:hover { color: var(--gold); }
.cookie-modal { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal-box { position: relative; background: #fff; color: var(--text-dark); max-width: 620px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; font-size: 14px; line-height: 22px; }
.cookie-modal-box h2 { font-size: 26px; line-height: 32px; }
.cookie-modal-box h2:focus { outline: none; }
.cookie-cat { border: 1px solid #e3e4e8; padding: 14px 16px; margin-bottom: 12px; }
.cookie-cat p { margin: 6px 0 0; }
.cookie-cat a { text-decoration: underline; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-cat-head strong { color: var(--brown); }
.cookie-always { font-size: 13px; color: #1e7e34; white-space: nowrap; }
.cookie-modal .cookie-actions { margin-top: 18px; justify-content: flex-end; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; transition: background .2s; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .product-text { padding: 60px 40px; }
  .product-img-left .product-media { grid-column: 2 / span 5; padding-right: 30px; }
  .product-img-right .product-media { grid-column: 7 / span 5; padding-left: 30px; }
}

@media (max-width: 1199px) {
  /* Testo sopra e collage sotto, centrato e intero (stesse proporzioni dell'originale a 1400px) */
  .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 30px; padding: 0 var(--gutter); }
  .hero-text { max-width: 700px; padding: 0; }
  .hero-collage { max-width: 522px; }
  .collage { --u: 19.12cqw; --s: 61.76cqw; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .stat { justify-content: flex-start; padding-left: 15%; }
}

/* Intestazione mobile in alto (come il vecchio tema sotto i 1050px circa) */
@media (max-width: 1049px) {
  html { scroll-padding-top: var(--mobile-head); }
  .site-header { position: sticky; bottom: auto; width: 100%; height: var(--mobile-head); overflow: visible; box-shadow: 0 1px 10px rgba(0, 0, 0, .08); }
  .header-inner { height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: center; }
  .logo-side { display: none; }
  .logo-mobile { display: block; width: 70px; height: 70px; }
  .menu-toggle { display: flex; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none;
    color: var(--gold); font-size: 26px; cursor: pointer; align-items: center; justify-content: center; }
  .header-panel { display: none; position: absolute; left: 0; right: 0; top: var(--mobile-head); background: #fff; padding: 20px var(--gutter) 26px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1); max-height: calc(100vh - var(--mobile-head)); overflow-y: auto; }
  .site-header.menu-open .header-panel { display: block; }
  .main-nav li { margin-bottom: 0; border-bottom: 1px solid #f0f0f0; }
  .main-nav a { display: block; padding: 12px 0; font-size: 20px; }
  .site-main { margin-left: 0; }
  .hero { min-height: calc(100vh - var(--mobile-head)); }
  .cookie-banner { left: 16px; max-width: calc(100% - 32px); }
  .about-inner { grid-template-columns: 1fr; gap: 35px; }
  .about-image img { max-width: 380px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .product { display: block; min-height: 0; }
  .product-media { padding: 50px var(--gutter); }
  .product-img-left .product-media, .product-img-right .product-media { padding: 50px var(--gutter); }
  .product-media img { max-width: 360px; margin: 0 auto; }
  .product-text { padding: 45px var(--gutter); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 35px; }
  .stats { background-attachment: scroll; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; line-height: 27px; }
  .hero { padding: 40px 0 50px; }
  .hero-title { font-size: 42px; line-height: 48px; }
  .hero-lead { font-size: 20px; line-height: 32px; }
  .kicker { font-size: 21px; line-height: 30px; }
  .kicker-sm { font-size: 19px; line-height: 28px; }
  .title, .page-title h1 { font-size: 34px; line-height: 40px; }
  .title-sm { font-size: 27px; line-height: 34px; }
  .section, .specialties { padding: 55px 0; }
  .section-head { margin-bottom: 35px; }
  .stats-inner { grid-template-columns: 1fr; gap: 26px; }
  .stat { padding-left: 0; justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .contact-list li { font-size: 18px; line-height: 26px; }
  .contact-list .icon { font-size: 24px; width: 26px; }
  .map-box { height: 340px; }
  .bottom-bar-inner { flex-direction: column; align-items: flex-start; }
  .bottom-credits { margin-left: 0 !important; }
  .lightbox figure { max-width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; margin-top: 0; }
  .cookie-modal-box { padding: 24px 18px; }
  .cookie-banner { left: 10px; bottom: 10px; right: 10px; width: auto; max-width: none; padding: 12px 14px 14px; }
  .cookie-banner .cookie-actions .btn { font-size: 12.5px; padding: 8px 4px; }
}

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