/* Ceretti Arredamenti — tema del sito (restyling 2026).
   Direzione: "artigianale contemporaneo": fondo avorio caldo, testo antracite,
   rosso del logo come unico accento, titoli in serif, fotografie protagoniste. */
:root {
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-surface-2: #efebe3;
  --color-text: #1c1b19;
  --color-muted: #6b665e;
  --color-primary: #a3271e;
  --color-primary-dark: #7f1c15;
  --color-primary-contrast: #ffffff;
  --color-accent: #c9a24d;
  --color-border: #e3ddd2;
  --color-dark: #1c1b19;
  --color-error: #b3261e;
  --color-success: #2e7d4f;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --radius: 4px;
  --gap: 28px;
  --shadow: 0 10px 30px rgba(28, 27, 25, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font-body); color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
.h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--color-primary); margin: 1.6rem 0 .6rem; }
p { margin: 0 0 1em; }
h1, h2, h3, .lead, .section__intro, .hero__text, .cta__inner p, .banner__body p, .card__body p { text-wrap: balance; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: 32px; }
.section__title { position: relative; margin-bottom: 1.1em; }
.section__title::before { content: ""; display: block; width: 44px; height: 3px; background: var(--color-primary); margin-bottom: 18px; }
.section__intro { color: var(--color-muted); max-width: 66ch; margin: -.6em 0 2.4em; font-size: 1.08rem; }
.section__more { margin-top: 2.4em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose h3 { margin-top: 1.6em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-primary); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); min-height: 84px; }
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { max-height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.site-nav a { white-space: nowrap; display: block; padding: 10px 13px; text-decoration: none; color: var(--color-text); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.site-nav .lang-switch { border-left: 1px solid var(--color-border); padding-left: 14px !important; }
.site-nav .lang-switch a { font-size: .75rem; padding: 6px 7px; letter-spacing: .06em; color: var(--color-muted); }
.site-nav .lang-switch a[aria-current="true"] { color: var(--color-text); border-bottom-color: var(--color-text); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 24px; height: 2px; background: var(--color-text); position: absolute; left: 10px; transition: transform .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--color-border); padding: 8px 24px 24px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: .95rem; }
  .site-nav .lang-switch { border-left: 0; padding-left: 0 !important; flex-direction: row !important; gap: 12px; margin-top: 8px; }
  .site-nav .lang-switch a { border-bottom: 0; }
}

/* Titoli di pagina */
.page-title { padding-block: 64px 16px; }
.page-title h1 { max-width: 18ch; }

.page-title__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.page-title__row h1 { margin-bottom: .3em; }
.page-title__back { white-space: nowrap; }
/* Su mobile il ritorno al catalogo è già nei breadcrumb */
@media (max-width: 700px) { .page-title__row .page-title__back { display: none; } }

/* Hero */
.hero { position: relative; padding-block: clamp(96px, 14vw, 180px); background: var(--color-dark); color: #fff; min-height: 72vh; display: flex; align-items: center; }
.hero--image { background-size: cover; background-position: center; }
.hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,16,.82) 0%, rgba(20,18,16,.55) 45%, rgba(20,18,16,.15) 100%); }
.hero__inner { position: relative; }
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__text, .hero--center .hero__title { margin-inline: auto; }
.hero__kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--color-accent); margin-bottom: 1.2em; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 16ch; font-weight: 500; text-wrap: balance; }
.hero__text { font-size: 1.15rem; max-width: 52ch; opacity: .9; line-height: 1.6; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0 0; }
.hero--center .buttons { justify-content: center; }
.btn { display: inline-block; padding: 14px 26px; background: var(--color-primary); color: var(--color-primary-contrast); text-decoration: none; border: 1px solid var(--color-primary); border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: currentColor; }
.btn--ghost:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.hero .btn--ghost, .btn--invert.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover, .btn--invert.btn--ghost:hover { background: #fff; color: var(--color-text); border-color: #fff; }
.btn--invert { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn--invert:hover { background: var(--color-bg); border-color: var(--color-bg); }

/* Griglie e card */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; background: var(--color-surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; }
.card__body p { color: var(--color-muted); margin: 0; font-size: .95rem; }
.card__icon { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-primary); margin-bottom: .5em; line-height: 1; }
.card__icon svg { width: 44px; height: 44px; display: block; }
.card__title { margin-bottom: .4em; }
/* Card categoria: nome sovrapposto alla foto */
.category-card { position: relative; background: var(--color-dark); }
.category-card .card__media { aspect-ratio: 5 / 4; }
.category-card .card__media img { opacity: .92; }
.category-card .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,.85) 100%); color: #fff; }
.category-card .card__title { color: #fff; margin: 0; font-size: 1.3rem; }
.category-card .card__body p { color: rgba(255,255,255,.8); margin-top: .3em; font-size: .9rem; }
/* Card "perché sceglierci" senza foto: fondo chiaro */
.cards .card:not(.category-card):not(.product-card) { background: var(--color-surface); border: 1px solid var(--color-border); }

.text-image__inner { display: grid; gap: calc(var(--gap) * 2); align-items: center; }
@media (min-width: 860px) {
  .text-image__inner { grid-template-columns: 1fr 1fr; }
  .text-image--left .text-image__media { order: -1; }
}
.text-image__media { margin: 0; }
.text-image__media img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.gallery__grid { gap: 14px; }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--color-surface-2); }
.gallery__item a { display: block; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__more .buttons { justify-content: center; margin-top: 1.6em; }
.gallery__item figcaption { font-size: .85rem; color: var(--color-muted); padding: 8px 4px 10px; }
.cta { background: var(--color-primary); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta__inner { max-width: 760px; }
.cta p { font-size: 1.1rem; opacity: .92; }
.cta .buttons { justify-content: center; }
.text-block.section, .columns.section { background: var(--color-surface); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2.4em; }
.pagination a { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); font-size: .9rem; }
.pagination a[aria-current="page"] { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* Prodotto (non usato: le realizzazioni sono gallerie) */
.product__layout { display: grid; gap: calc(var(--gap) * 2); }
@media (min-width: 900px) { .product__layout { grid-template-columns: 1.1fr 1fr; } }
.product-carousel { border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.product__image { margin: 0; }
.product__image a { display: block; }
.product__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.specs > div { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.specs dt { font-weight: 600; } .specs dd { margin: 0; }

/* Contatti */
.contact.section { background: var(--color-surface); }
.contact__inner { display: grid; gap: calc(var(--gap) * 2); }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 3fr 2fr; } }
.contact__aside { background: var(--color-bg); padding: 32px; border-radius: var(--radius); align-self: start; border: 1px solid var(--color-border); }
.contact__aside h3 { font-size: 1.2rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; background: #fff; color: inherit; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--color-error); }
.field__error { color: var(--color-error); font-size: .9rem; margin: 6px 0 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; }
.checkbox input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.alert--success { background: #e7f3ec; color: var(--color-success); }
.alert--error { background: #fbe9e7; color: var(--color-error); }

/* FAQ */
.faq.section { background: var(--color-surface); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary { cursor: pointer; padding: 20px 0; font-family: var(--font-heading); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--color-primary); flex-shrink: 0; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 22px; color: var(--color-muted); max-width: 70ch; }

/* Colonne */
.columns__col h3 { margin-top: .6em; }
.columns__image { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.columns .prose ul { columns: 2; column-gap: 32px; padding-left: 1.1em; }
@media (max-width: 600px) { .columns .prose ul { columns: 1; } }

/* Banner partner */
.banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); padding: 32px 36px; border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--color-surface); border: 1px solid var(--color-border); transition: box-shadow .25s; }
.banner__inner:hover { box-shadow: var(--shadow); }
.banner__image { max-width: 150px; }
.banner__body { flex: 1; min-width: 240px; }
.banner__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--color-primary); margin: 0 0 6px; }
.banner__title { margin-bottom: .3em; }
.banner__body p { color: var(--color-muted); }

/* PhotoSwipe */
.pswp__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; text-align: center; color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.5)); }

/* Footer */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.78); margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; gap: var(--gap); padding-block: 64px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.site-footer__logo { display: inline-block; margin-bottom: 14px; }
.site-footer__logo img { max-height: 46px; width: auto; }
.site-footer strong { color: #fff; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; display: block; margin-bottom: 8px; }
.site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 14px; }
.site-footer__text { color: rgba(255,255,255,.72); }
.site-footer__text p { margin-bottom: .6em; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { text-decoration: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__legal { padding-block: 18px 30px; color: rgba(255,255,255,.5); font-size: .82rem; border-top: 1px solid rgba(255,255,255,.12); }
.error-page { text-align: center; padding-block: 120px; }
.debug { text-align: left; background: #222; color: #eee; padding: 16px; overflow: auto; font-size: .8rem; }

/* Mappa contatti */
.map { line-height: 0; }
.map iframe { width: 100%; height: 460px; }

/* Swiper (caroselli) */
.swiper { --swiper-theme-color: var(--color-primary); --swiper-navigation-size: 14px; --swiper-navigation-sides-offset: 12px; }
/* Frecce: cerchio scuro semitrasparente ai lati della slide, chevron piccolo e centrato */
.swiper .swiper-button-prev, .swiper .swiper-button-next { width: 44px; height: 44px; margin-top: 0; top: 50%; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(20,18,16,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.swiper .swiper-button-prev:hover, .swiper .swiper-button-next:hover { background: rgba(20,18,16,.75); }
/* Swiper 14 inserisce un'icona SVG nel pulsante: la dimensioniamo noi, altrimenti riempie tutto il cerchio */
.swiper .swiper-button-prev svg, .swiper .swiper-button-next svg { width: 9px; height: 16px; }
.swiper .swiper-button-prev svg { margin-left: -2px; }
.swiper .swiper-button-next svg { margin-right: -2px; }
.swiper .swiper-button-prev::after, .swiper .swiper-button-next::after { font-size: 14px; line-height: 1; font-weight: 700; }
.swiper .swiper-button-prev { left: 12px; right: auto; }
.swiper .swiper-button-next { right: 12px; left: auto; }
.swiper .swiper-button-disabled { opacity: .35; }
/* Puntini in una riga sotto le slide (le frecce restano centrate sull'immagine, non sulla riga) */
.swiper-nav { display: flex; justify-content: center; margin-top: 18px; }
.swiper-nav .swiper-pagination { position: static !important; width: auto !important; display: flex; gap: 8px; align-items: center; }
.swiper-nav .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: var(--color-text); opacity: .25; transition: opacity .2s, transform .2s; }
.swiper-nav .swiper-pagination-bullet-active { opacity: 1; background: var(--color-primary); transform: scale(1.25); }
.swiper-nav .swiper-pagination-lock { display: none; }
.swiper:has(.swiper-nav) > .swiper-button-prev, .swiper:has(.swiper-nav) > .swiper-button-next { top: calc(50% - 22px); }
/* Hero a slide: frecce più grandi e puntini bianchi sopra la foto */
.hero-carousel { --carousel-height: 72vh; }
.hero-carousel .swiper-slide.hero { min-height: var(--carousel-height); height: auto; }
.swiper.hero-carousel .swiper-button-prev, .hero-carousel .swiper .swiper-button-prev, .hero-carousel .swiper .swiper-button-next { width: 48px; height: 48px; }
.hero-carousel .swiper .swiper-button-prev svg, .hero-carousel .swiper .swiper-button-next svg { width: 10px; height: 18px; }
.hero-carousel .swiper .swiper-button-prev { left: 20px; }
.hero-carousel .swiper .swiper-button-next { right: 20px; }
.hero-carousel .swiper-pagination-bullet { width: 9px; height: 9px; background: #fff; opacity: .5; }
.hero-carousel .swiper-pagination-bullet-active { opacity: 1; }
@media (max-width: 700px) { .swiper .swiper-button-prev, .swiper .swiper-button-next { display: none; } }
.gallery-carousel .swiper-slide { height: auto; }
.gallery-carousel .swiper-slide img { aspect-ratio: 4 / 3; }
.cards-carousel .swiper-slide { height: auto; display: flex; }
.cards-carousel .swiper-slide > * { width: 100%; }

/* Navigazione in riga sotto il carosello: frecce e puntini non coprono mai le immagini */
.swiper-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.swiper-nav .swiper-button-prev, .swiper-nav .swiper-button-next { position: static; margin: 0; width: 42px; height: 42px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); color: var(--color-text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.swiper-nav .swiper-button-prev:hover, .swiper-nav .swiper-button-next:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.swiper-nav .swiper-button-prev::after, .swiper-nav .swiper-button-next::after { font-size: 14px; font-weight: 700; }
.swiper-nav .swiper-button-disabled { opacity: .3; cursor: default; }
.swiper-nav .swiper-pagination { position: static !important; width: auto !important; display: flex; gap: 8px; align-items: center; }
.swiper-nav .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: var(--color-text); opacity: .25; transition: opacity .2s, transform .2s; }
.swiper-nav .swiper-pagination-bullet-active { opacity: 1; background: var(--color-primary); transform: scale(1.25); }
.swiper-nav .swiper-pagination-lock { display: none; }
/* Hero a slide: frecce ai lati e puntini in basso, sopra la foto */
.hero-carousel { --carousel-height: 72vh; }
.hero-carousel .swiper-slide.hero { min-height: var(--carousel-height); height: auto; }
.hero-carousel .swiper-button-prev, .hero-carousel .swiper-button-next { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; }
.hero-carousel .swiper-button-prev::after, .hero-carousel .swiper-button-next::after { font-size: 16px; font-weight: 700; }
.hero-carousel .swiper-button-prev:hover, .hero-carousel .swiper-button-next:hover { background: rgba(0,0,0,.6); }
.hero-carousel .swiper-pagination-bullet { width: 9px; height: 9px; background: #fff; opacity: .5; }
.hero-carousel .swiper-pagination-bullet-active { opacity: 1; }
@media (max-width: 700px) { .hero-carousel .swiper-button-prev, .hero-carousel .swiper-button-next { display: none; } }
.gallery-carousel .swiper-slide { height: auto; }
.gallery-carousel .swiper-slide img { aspect-ratio: 4 / 3; }
.cards-carousel .swiper-slide { height: auto; display: flex; }
.cards-carousel .swiper-slide > * { width: 100%; }

/* Crediti footer */
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-credits { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: .8rem; }
.footer-credits:hover { color: #fff; }
.footer-credits-logo { height: 18px; width: auto; }

/* Animazione allo scroll ([data-reveal], vedi blocco cards "reveal") */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-reveal] .card__icon svg { transform: scale(.5) rotate(-8deg); opacity: 0; transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .4s ease; transition-delay: calc(var(--reveal-delay, 0ms) + 250ms); }
html.js [data-reveal].is-visible .card__icon svg { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal], html.js [data-reveal] .card__icon svg { opacity: 1; transform: none; transition: none; } }

/* Social */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.social svg { width: 22px; height: 22px; }
.site-nav .social a { padding: 0; border: 0; }
.social--header svg { width: 24px; height: 24px; }
.social a:hover { background: var(--color-surface-2, var(--color-surface)); color: var(--color-primary); }
.social--header { border-left: 1px solid var(--color-border); padding-left: 8px; margin-left: 0; gap: 0; }
.social--header a { width: 34px; height: 34px; }
.social--footer { margin-top: 16px; }
.social--footer a { border: 1px solid rgba(255,255,255,.2); }
.social--footer a:hover { background: #fff; color: var(--color-dark, #1c1b19); }
@media (max-width: 1200px) { .social--header { border-left: 0; padding-left: 0; margin: 14px 0 0; } }

/* Pre-header (contatti rapidi, social, lingue). Scorrendo esce dallo schermo e resta fisso solo il menu. */
.site-header--topbar { top: calc(-1 * var(--topbar-h, 40px)); }
.site-topbar { height: var(--topbar-h, 40px); background: var(--color-dark); color: #fff; font-size: .82rem; }
.site-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.site-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-topbar__contacts { gap: 22px; }
.site-topbar__contacts a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; opacity: .9; }
.site-topbar__contacts a:hover { opacity: 1; text-decoration: underline; }
.site-topbar__contacts svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-topbar__tools { display: flex; align-items: center; gap: 12px; }
.site-topbar .social { gap: 0; }
.site-topbar .social a { width: 30px; height: 30px; }
.site-topbar .social svg { width: 18px; height: 18px; }
.site-topbar .social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.site-topbar .lang-switch { border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; gap: 2px; }
.site-topbar .lang-switch a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: 4px 5px; border-bottom: 1px solid transparent; }
.site-topbar .lang-switch a:hover { color: #fff; }
.site-topbar .lang-switch a[aria-current="true"] { color: #fff; border-bottom-color: #fff; }
@media (max-width: 760px) {
  .site-topbar__contacts { gap: 2px; }
  .site-topbar__contacts span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-topbar__contacts a { width: 34px; height: 34px; justify-content: center; }
  .site-topbar__contacts svg { width: 18px; height: 18px; }
}
/* Voce di menu "brand" (link a un marchio o sito esterno) */
.site-nav li.menu-brand { margin-left: 10px; }
.site-nav li.menu-brand a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid var(--color-accent); border-radius: var(--radius); }
.site-nav li.menu-brand a::after { content: "\2197"; font-size: .95em; line-height: 1; color: var(--color-accent); }
.site-nav li.menu-brand a:hover { background: var(--color-accent); color: #fff; }
.site-nav li.menu-brand a:hover::after { color: #fff; }
@media (max-width: 1200px) {
  .site-nav li.menu-brand { margin: 16px 0 0; }
  .site-nav li.menu-brand a { display: inline-flex; padding: 10px 18px; border-bottom: 1px solid var(--color-accent); }
}
