/* ============================================================
   Ca du Gattu — foglio di stile condiviso (IT su /, EN su /en/)
   Direzione "Terra". Ogni sezione indossa il manto di un gatto:
   Casa = Calico · Galleria = Soriano · Contatti = Certosino.
   ============================================================ */
:root {
  color-scheme: light;
  --maxw: 1080px;
  --radius: 16px;
  --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* MANTO: CALICO (default / Casa) */
  --bg: #F6EEE0; --surface: #FFFFFF; --surface-2: #FBF3E6;
  --ink: #2B2320; --muted: #806E5D; --line: #E7D9C4;
  --accent: #C8632E; --accent-d: #A94F22; --accent-ink: #FFF6EC; --accent-2: #3A322C;
  --topbar-bg: rgba(251,243,230,0.92); --topbar-ink: #2B2320;
  --hero-a: #C8632E; --hero-b: #A94F22;
}
[data-coat="soriano"] {
  --bg: #EFE4D1; --surface: #F8F1E2; --surface-2: #F2E8D4;
  --ink: #2E2117; --muted: #7C6650; --line: #DFCDB1;
  --accent: #B07A2E; --accent-d: #8F611F; --accent-ink: #FBF3E3; --accent-2: #6E5433;
  --topbar-bg: rgba(242,232,212,0.92); --topbar-ink: #2E2117;
  --hero-a: #B07A2E; --hero-b: #8F611F;
}
/* MANTO: CERTOSINO (grigio-azzurro, occhi ramati) */
[data-coat="certosino"] {
  --bg: #E5E9EB; --surface: #F5F7F8; --surface-2: #EBEFF1;
  --ink: #2A3034; --muted: #697278; --line: #D4DADD;
  --accent: #5E7C8C; --accent-d: #4B6675; --accent-ink: #F3F6F7; --accent-2: #C08A45;
  --topbar-bg: rgba(235,239,241,0.92); --topbar-ink: #2A3034;
  --hero-a: #5E7C8C; --hero-b: #4B6675;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body);
  line-height: 1.62; -webkit-font-smoothing: antialiased;
  transition: background-color .55s ease, color .55s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }

/* TOP BAR */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--topbar-bg); color: var(--topbar-ink);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: background-color .55s ease, color .55s ease, border-color .55s ease;
}
.topbar .bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; text-decoration: none; }
.brand .mk { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; flex: none; transition: background-color .55s ease; }
.brand .mk svg { width: 25px; height: 25px; }
.brand .name { font-family: var(--font-display); font-size: 22px; letter-spacing: .01em; }
nav.links { display: flex; align-items: center; gap: 6px; }
nav.links button.navlink {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 14px; border-radius: 999px; opacity: .72;
}
nav.links button.navlink:hover { opacity: 1; }
nav.links button.navlink.active { opacity: 1; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-weight: 700; font-size: 12.5px; }
.lang a { background: none; color: inherit; cursor: pointer; padding: 6px 11px; opacity: .55; text-decoration: none; display: inline-block; }
.lang a.on { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.hamb { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: inherit; width: 40px; height: 38px; font-size: 18px; cursor: pointer; }

/* SECTION */
.sec { padding-bottom: 60px; }
.sec-head { padding-top: 30px; }
.sec-title { font-size: clamp(30px, 5.5vw, 46px); margin: 0 0 8px; }

/* HERO */
.hero { position: relative; overflow: hidden; border-radius: 22px; margin-top: 22px;
  background: linear-gradient(145deg, var(--hero-a), var(--hero-b)); color: var(--accent-ink); transition: background .55s ease; }
.hero::after { content:""; position:absolute; width:340px; height:340px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,246,236,.20), transparent 70%); top:-130px; right:-70px; }
.hero .in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 38px; }
.hero-title { margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.hero-title .brand-line { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 64px); line-height: 1.0; }
.hero-title .kw-line { font-family: var(--font-body); font-weight: 700; font-size: clamp(15px, 2.3vw, 19px); letter-spacing: .01em; opacity: .95; }
.hero .photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 48px rgba(0,0,0,.30); }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; border: 0; }
.pill svg { width: 16px; height: 16px; }
.pill-solid { background: var(--accent-ink); color: var(--accent-d); }
.pill-ghost { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent-ink) 42%, transparent); }

/* CASA content */
.intro { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink); max-width: 66ch; margin: 40px auto 0; text-align: center; }
.rows { margin-top: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 28px 0; }
.row img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 28px rgba(60,40,20,.14); }
.row h2 { font-size: clamp(24px, 3.6vw, 32px); color: var(--ink); margin: 0 0 10px; }
.row p { color: var(--muted); font-size: 16px; margin: 0; }
.standalone { margin: 10px 0; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(60,40,20,.16); }
.standalone img { width: 100%; max-height: 420px; object-fit: cover; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--line), transparent); margin: 6px 0; }

.info { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin-top: 30px; transition: background-color .55s ease, border-color .55s ease; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.info h2 { color: var(--ink); font-size: 24px; margin: 0 0 14px; }
.info ul { margin: 0; padding-left: 18px; color: var(--muted); }
.info li { margin-bottom: 10px; }
.info strong { color: var(--ink); }
.info .ph { border-radius: 12px; overflow: hidden; min-height: 200px; }
.info .ph img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }

.reviews-wrap { margin-top: 26px; }
.reviews-wrap .lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* GALLERIA */
.grid { margin-top: 22px; columns: 3; column-gap: 14px; }
.grid figure { margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 8px 22px rgba(60,40,20,.14); background: var(--surface); }
.grid img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.grid figure:hover img { transform: scale(1.05); }

.lb { position: fixed; inset: 0; background: rgba(20,14,10,.92); z-index: 90; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb .x, .lb .arw { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; border-radius: 10px; }
.lb .x { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 20px; }
.lb .arw { top: 50%; transform: translateY(-50%); width: 52px; height: 58px; font-size: 26px; }
.lb .prev { left: 16px; } .lb .next { right: 16px; }
.lb .count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 13px; opacity: .85; }

/* CONTATTI */
.contact-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cbox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; transition: background-color .55s ease, border-color .55s ease; }
.cbox .lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.cbox .val { font-size: 17px; color: var(--ink); font-weight: 600; word-break: break-word; }
.cbox .val a { text-decoration: none; }
.cbox .val a:hover { text-decoration: underline; }
.portals { margin-top: 26px; }
.portals h3 { color: var(--ink); font-size: 22px; margin: 0 0 14px; }
.portal-row { display: flex; flex-wrap: wrap; gap: 12px; }
.portal { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 12px 18px; transition: transform .15s ease, border-color .55s ease, background-color .55s ease; }
.portal:hover { transform: translateY(-2px); border-color: var(--accent); }
.portal .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.portal .ic svg { width: 17px; height: 17px; }

/* FOOTER */
footer.foot { border-top: 1px solid var(--line); background: var(--surface-2); transition: background-color .55s ease, border-color .55s ease; }
footer.foot .in { padding-block: 30px 42px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
footer .legend-title { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
footer .coats { display: flex; gap: 18px; flex-wrap: wrap; }
footer .coat-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); font-weight: 600; }
footer .coat-item .sw { display: inline-flex; gap: 3px; }
footer .coat-item .sw i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
footer .copy { color: var(--muted); font-size: 12.5px; max-width: 34ch; }
footer .copy b { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 15px; }

/* MOBILE */
@media (max-width: 860px) {
  .hero .in { grid-template-columns: 1fr; }
  .hero .photo { max-width: 460px; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hamb { display: block; }
  nav.links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; gap: 2px; }
  nav.links[hidden] { display: none; }
  nav.links button.navlink { text-align: left; padding: 12px 14px; font-size: 16px; }
  .topbar .bar { position: relative; }
}
@media (max-width: 440px) { .grid { columns: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .grid figure:hover img { transform: none; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
