/* ==========================================================================
   Inkmate Tattoo Studio — stylesheet
   ========================================================================== */

:root {
  --color-black: #121212;
  --color-black-soft: #1b1b1b;
  --color-red: #c41e28;
  --color-red-dark: #9c141d;
  --color-white: #ffffff;
  --color-cream: #f6f3ee;
  --color-paper: #efece5;
  --color-ink: #1a1a1a;
  --color-grey: #6b6863;
  --color-grey-light: #d8d4cb;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }

.lead {
  font-size: 1.15rem;
  color: var(--color-grey);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-red);
  display: inline-block;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-black { background: var(--color-black); color: var(--color-white); }
.bg-black .lead { color: #b9b6b0; }
.bg-paper { background: var(--color-paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-red); color: var(--color-white); }
.btn-primary:hover { background: var(--color-red-dark); }

.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand img { height: 46px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-desktop a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9d6d0;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--color-white); border-color: var(--color-red); }

.nav-desktop .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-desktop {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--color-black);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav-desktop.open { transform: translateX(0); }
  .nav-desktop a { font-size: 1.1rem; }
  .nav-desktop .btn { margin-left: 0; margin-top: 10px; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-black);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.35) 0%, rgba(18,18,18,0.55) 55%, rgba(18,18,18,0.96) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  color: var(--color-white);
  /* padding-top/bottom only (shorthand "padding" would tie with .container's
     specificity and — being later in the file — win outright, zeroing out
     its left/right padding; this is exactly what broke mobile spacing). */
  padding-top: 72px;
  padding-bottom: 64px;
}
.hero-content .eyebrow { color: var(--color-red); }
.hero-content h1 { max-width: 16ch; }
.hero-content .lead { color: #d9d6d0; }

.hero-badge {
  position: absolute;
  top: 40px;
  /* .hero is full-viewport-width (not wrapped in .container), so a plain
     right:24px drifts away from the header's WhatsApp button once the
     viewport is wider than the container: that button's right edge sits at
     .container's own right inset, i.e. the centering margin (if any) plus
     its 24px padding. Replicate that here so the two stay lined up. */
  right: max(24px, calc((100% - var(--container)) / 2 + 24px));
  z-index: 3;
  width: 170px;
  height: 170px;
  opacity: 0.6;
  pointer-events: none;
  /* drop-shadow lives here (not on the animated img below) so Chrome can run
     the rotation on the compositor thread instead of repainting the filter
     every frame — flagged by Lighthouse as a non-composited animation until
     this was split out. */
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
}
.hero-badge img {
  width: 100%;
  height: 100%;
  display: block;
  animation: hero-badge-spin 16s linear infinite;
}
@keyframes hero-badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge img { animation: none; }
}
@media (max-width: 720px) {
  /* At this size the badge extends past .hero-content's 72px top padding,
     so it can overlap the top of the eyebrow line — opacity 0.6 keeps that
     readable. Requested explicitly at this size; if it ever looks too
     intrusive, revisit top/size together rather than just one of them. */
  .hero-badge { top: 12px; right: 14px; width: 130px; height: 130px; opacity: 0.6; }
}

.hero-strip {
  position: relative;
  z-index: 2;
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #cfccc6;
}
.hero-strip strong { color: var(--color-white); }

/* ---------- Cards / features ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  padding: 32px 28px;
  border-radius: var(--radius);
}
.feature-card .num {
  font-family: var(--font-display);
  color: var(--color-red);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--color-grey); margin: 0; }

/* Variant used for cards that are also links and carry a photo (e.g. the
   Home "Non solo tatuaggi" services grid) — the image bleeds to the card's
   edges via negative margins matching its own padding, then overflow:hidden
   clips it back to the card's rounded corners. */
.feature-card--photo {
  display: block;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card--photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature-card--photo img {
  display: block;
  width: calc(100% + 56px);
  margin: -32px -28px 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Image frame ---------- */
.img-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--color-grey-light);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-loadmore { text-align: center; margin-top: 36px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 22px; margin: 28px 0; }
.info-list .label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-red);
  display: block;
  margin-bottom: 4px;
}
.info-list a:hover { text-decoration: underline; }

.hours-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--color-grey-light); font-size: 0.96rem; }
.hours-table td:last-child { text-align: right; color: var(--color-grey); }

.social-row { display: flex; gap: 14px; margin-top: 6px; }
.social-row a {
  width: 44px; height: 44px;
  border: 2px solid var(--color-ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.social-row a:hover { background: var(--color-ink); color: var(--color-white); }
.social-row svg { width: 20px; height: 20px; }

/* Header and footer sit on a dark background: the default dark border/icon
   color would be nearly invisible there, so give both a lighter treatment
   (footer's is also enlarged, since it's meant to stand out more there). */
.site-footer .social-row a,
.site-header .social-row a {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}
.site-footer .social-row a:hover,
.site-header .social-row a:hover { background: var(--color-red); border-color: var(--color-red); }

.site-footer .social-row a { width: 52px; height: 52px; }
.site-footer .social-row svg { width: 24px; height: 24px; }

.site-header .social-row { gap: 10px; }
.site-header .social-row a { width: 38px; height: 38px; }
.site-header .social-row svg { width: 18px; height: 18px; }

.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 32px; background: var(--color-grey-light); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--color-grey);
  pointer-events: none;
}
.map-frame.is-loaded .map-placeholder { display: none; }

/* ---------- Form ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  padding: 36px;
  border-radius: var(--radius);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 7px;
  color: var(--color-grey);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--color-cream);
  color: var(--color-ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--color-white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--color-grey); }
.field-check input { width: auto; margin-top: 3px; }
.field-check a { color: var(--color-ink); text-decoration: underline; }

.form-note { font-size: 0.85rem; color: var(--color-grey); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f3e8; color: #2b6b34; }
.form-status.err { background: #fbe7e7; color: #9c2a2a; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--color-red);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--color-grey); padding-bottom: 18px; margin: 0; }

/* ---------- Service slider ---------- */
.service-slider { position: relative; margin-top: 8px; }
.service-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-slider-track::-webkit-scrollbar { display: none; }
.service-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-grey-light);
}
.service-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18,18,18,0.55);
  border: none;
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background var(--transition);
}
.service-slider .slider-nav:hover { background: var(--color-red); }
.service-slider .slider-nav.prev { left: 12px; }
.service-slider .slider-nav.next { right: 12px; }

/* ---------- Quote strip ---------- */
.quote-strip {
  background: var(--color-red);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}
.quote-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 22ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-black); color: #c9c6c0; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid img { height: 54px; margin-bottom: 16px; }
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8a8781;
}
.footer-bottom a:hover { color: var(--color-white); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-black);
  color: #e8e6e1;
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  z-index: 900;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 14px; color: #cfccc6; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.82rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: 150px 0 64px;
}
.page-hero .eyebrow { color: var(--color-red); }
.page-hero .lead { color: #cfccc6; }
.breadcrumb { font-size: 0.82rem; color: #a8a59f; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--color-white); }

/* ---------- Legal ---------- */
.legal-content h2 { margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--color-grey); }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 18px;
  z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }
