/* Bulgac Dev Studio — il sito dello studio (vedi sotto: Apple × Supercell).
   Ispirazione: siti degli studi di giochi (titoli grossi e pieni, carte tonde, bianco e nero
   con un colore solo). Il colore dello studio è l'oro, lo stesso della C di Concierge.
   Layout: barra bianca in alto, sezioni a tutta larghezza con contenuto al centro (max 1120),
   carte grandi e tonde, piè di pagina nero.
   Caratteri dentro il sito (nessuna richiesta a server esterni). */

@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Apple × Supercell: lo spazio, il grigio chiaro e i caratteri di Apple (SF Pro sui dispositivi Apple),
   con i titoli tondi e pieni, le carte grandi e un po' di gioco alla Supercell. Un solo colore: l'oro. */
:root {
  --ink: #1D1D1F;
  --paper: #FFFFFF;
  --soft: #F5F5F7;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --gold: #E3AE3C;
  --gold-deep: #9C6E1C;
  --link: #A8740F;
  --night: #0B1233;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --r-big: 30px;
  --r: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.47 var(--body); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

.inner {
  max-width: 1024px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* ── Barra in alto, sottile e di vetro come quella di Apple ── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(250,250,252,.85); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(250, 250, 252, 0.8);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-head .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink); font-size: 13.5px; opacity: .85; white-space: nowrap; }
.site-nav a:hover { opacity: 1; text-decoration: none; }
.site-nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 560px) { .site-nav { gap: 14px; } .site-nav a:nth-child(3) { display: none; } }
@media (max-width: 400px) { .site-nav { gap: 9px; } .logo { gap: 8px; } .logo .word { font-size: 12.5px; letter-spacing: .2em; } }

/* Logo: quadrato navy con BUL / GAC / DEV in oro lucido (Cinzel) e STUDIO fuori */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); --gold-metal: linear-gradient(180deg,#FFF4CC 0%,#FADF92 22%,#EFC25A 48%,#DCA53C 72%,#B9842A 100%); }
.logo:hover { text-decoration: none; }
.logo .mark {
  position: relative; width: 40px; height: 40px; border-radius: 9.5px; box-sizing: border-box; flex: none;
  border: 1.2px solid transparent;
  background: radial-gradient(120% 90% at 28% 12%, #22407A, #13254A 45%, #081329) padding-box,
              linear-gradient(135deg, #FFF1C2, #E3AE3C 30%, #8C5A12 50%, #F4CF77 70%, #A9741F) border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}
.logo .mark b, .logo .word {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-weight: 900;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .mark b { display: block; font-size: 9.8px; line-height: .98; letter-spacing: .02em; }
.logo .mark::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,240,200,.3) 50%, transparent 58%);
  transform: translateX(-60%); animation: logo-sheen 4.5s ease-in-out infinite;
}
@keyframes logo-sheen { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .logo .mark::after { animation: none; opacity: 0; } }
.logo .word { font-size: 13.5px; letter-spacing: .32em; background: linear-gradient(180deg, #C99430, #8A5A10); -webkit-background-clip: text; background-clip: text; }

/* ── Titoli ── */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
.display.xl { font-size: clamp(46px, 8vw, 88px); }
.display.l { font-size: clamp(34px, 5.4vw, 56px); }
.display.m { font-size: clamp(26px, 3.6vw, 36px); }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--gold-deep); margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { font-size: clamp(19px, 2.3vw, 23px); line-height: 1.4; max-width: 46ch; color: var(--muted); font-weight: 500; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ── Bottoni: la pillola di Apple, con lo "scalino" sotto di Supercell ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 999px; background: var(--gold); color: #1A1306;
  box-shadow: 0 3px 0 var(--gold-deep); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.more { font-size: 17px; font-weight: 500; }
.more::after { content: " ›"; }
.pill { display: inline-block; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; margin-top: 22px; }

/* ── Home: titolo al centro come una pagina prodotto Apple, poi la grande carta notturna ── */
.section { padding-block: 26px; }
.hero { padding-block: 64px 20px; }
.hero .display .gold { color: var(--gold-deep); }
.feature-hero {
  position: relative; overflow: hidden; border-radius: var(--r-big);
  background: radial-gradient(800px 480px at 50% 0%, #2B3C8C 0%, transparent 62%), linear-gradient(180deg, #141C52 0%, var(--night) 55%, #050817 100%);
  color: #fff; text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 60px) 0;
  margin-top: 36px;
}
.feature-hero .stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fffa 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 30% 72%, #fff8 50%, transparent 52%),
    radial-gradient(2px 2px at 62% 12%, #F6DC97 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 74% 60%, #fff9 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 90% 34%, #fff8 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 18% 88%, #fff6 50%, transparent 52%),
    radial-gradient(2px 2px at 86% 84%, #F6DC97cc 50%, transparent 52%); }
.feature-hero > * { position: relative; }
.feature-hero .eyebrow { color: var(--gold); }
.feature-hero .display { color: #fff; }
.feature-hero p.sub { color: #C9CDE6; font-size: 21px; max-width: 34ch; margin: 14px auto 0; }
.feature-hero .actions .more { color: #F3D58A; }
.feature-hero .art { margin-top: 44px; display: grid; place-items: center; }
.feature-hero .art img {
  width: min(260px, 56vw); border-radius: 22.5%;
  box-shadow: 0 0 0 1px #ffffff22, 0 30px 90px rgba(227,174,60,0.35), 0 18px 40px rgba(0,0,0,0.55);
  transform: translateY(18%) rotate(-7deg);
}

/* ── Griglia delle app: piastrelle grandi e tonde (le "carte" dei giochi) ── */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } }
.game {
  position: relative; border-radius: var(--r-big); overflow: hidden; color: var(--ink);
  aspect-ratio: 5 / 4; max-width: 100%;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 30px;
  transition: transform .2s ease;
}
.game:hover { text-decoration: none; transform: scale(1.012); }
.game.concierge { color: #fff; background: radial-gradient(420px 300px at 50% 80%, #2B3C8C, transparent 70%), linear-gradient(170deg, #18205A, #060A1F); }
.game.concierge img { position: absolute; bottom: -10%; left: 50%; width: 40%; transform: translateX(-50%) rotate(-6deg); border-radius: 22.5%; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.game h3 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 4px; }
.game span { font-size: 17px; opacity: .8; }
.game.next { background: var(--soft); }
.game.next .ghost { position: absolute; bottom: -8%; left: 50%; width: 40%; aspect-ratio: 1; transform: translateX(-50%) rotate(5deg); border-radius: 22.5%; border: 2.5px dashed #C7C7CC; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 48px; color: #C7C7CC; }

/* ── Chi siamo / missione ── */
.studio { background: var(--soft); border-radius: var(--r-big); padding: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .studio { grid-template-columns: 1fr; } }
.studio p { margin: 0 0 12px; max-width: 52ch; font-size: 19px; color: #424245; }

/* ── Pagine di testo ── */
.doc-head { padding-block: 48px 8px; }
.doc { padding-block: 8px 40px; }
.doc .meta { color: var(--muted); margin: 10px 0 26px; }
.doc .box { background: var(--soft); border-radius: var(--r); padding: 20px 22px; margin-bottom: 26px; max-width: 70ch; }
.doc h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 26px; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--gold-deep); }

/* ── Piè di pagina chiaro, piccolo e ordinato come quello di Apple ── */
.site-foot { background: var(--soft); color: var(--muted); margin-top: 64px; font-size: 13px; }
.site-foot .inner { padding-block: 36px calc(24px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-col h4 { color: var(--ink); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.foot-col a { display: block; color: #424245; padding: 3px 0; }
.foot-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.mail-line { color: var(--ink); font-weight: 600; user-select: all; }

/* ── Pagine di Concierge: fascia notturna in alto, testo sul bianco ─────────────────────────────── */
.app-banner {
  position: relative; overflow: hidden; border-radius: var(--r-big); color: #fff;
  background:
    radial-gradient(700px 420px at 85% 0%, #2B3C8C 0%, transparent 60%),
    linear-gradient(160deg, #18205A 0%, var(--night) 60%, #050817 100%);
  padding: clamp(24px, 4.5vw, 48px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); margin-top: 24px;
}
.app-banner .stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 30%, #fffa 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 64% 18%, #F6DC97 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 82% 72%, #fff8 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 42% 82%, #fff6 50%, transparent 52%); }
.app-banner > * { position: relative; }
.app-banner img { width: clamp(72px, 12vw, 112px); border-radius: 22%; box-shadow: 0 14px 34px rgba(0,0,0,0.5); flex: none; }
.app-banner .display { color: #fff; }
.app-banner .eyebrow { color: var(--gold); margin-bottom: 8px; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.app-tabs a { font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--soft); }
.app-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; margin: 12px 0; max-width: 100%; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; font-size: 13px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--soft); border-radius: var(--r); padding: 26px; min-width: 0; }
.feat .k { font-family: var(--display); font-weight: 800; color: var(--gold-deep); font-size: 15px; }
.feat h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 24px; line-height: 1.1; margin: 4px 0 6px; }
.feat p { margin: 0; color: var(--muted); }

.faq details { background: var(--soft); border-radius: 18px; padding: 15px 18px; margin-bottom: 10px; max-width: 76ch; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details[open] summary { margin-bottom: 6px; }
.faq details p { margin: 6px 0 0; }

/* ── Le sezioni non finiscono sotto la barra in alto ── */
[id] { scroll-margin-top: 72px; }

/* ── Ricerca: lente nella barra e pannello come quello di Apple ── */
.search-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: -6px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; opacity: .85;
}
.search-btn:hover { background: rgba(0,0,0,0.06); opacity: 1; }
.site-nav { align-items: center; }
.searching, .searching body { overflow: hidden; }
.search-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(240, 240, 245, 0.72);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
}
.search-panel { max-width: 680px; margin: 0 auto; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border-radius: 16px; padding: 4px 6px 4px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12); color: var(--muted);
}
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 19px/1.2 var(--body); color: var(--ink); padding: 14px 0;
}
.search-close { border: 0; background: transparent; color: var(--link); font: 500 16px var(--body); padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.search-results { margin-top: 14px; display: grid; gap: 8px; }
.search-item {
  display: grid; gap: 2px; background: var(--paper); border-radius: 16px; padding: 14px 18px; color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.search-item:hover, .search-item:focus-visible { text-decoration: none; box-shadow: 0 0 0 2px var(--gold); }
.search-item strong { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.search-item span { color: var(--muted); font-size: 15px; }
.search-item .search-where { font-size: 12.5px; font-weight: 600; color: var(--gold-deep); }
.search-hint { color: var(--muted); padding: 6px 4px; }
.search-hint button {
  border: 0; background: var(--paper); border-radius: 999px; padding: 6px 12px; margin: 4px 2px;
  font: 600 14px var(--body); color: var(--ink); cursor: pointer;
}

/* ── Icone delle carte: tassello come un'icona di iPhone, blu notte con il simbolo d'oro ── */
.feat { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.feat-ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 48%),
    radial-gradient(60px 40px at 50% 0%, #2B3C8C, transparent 80%),
    linear-gradient(160deg, #1A2360, #0B1233);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 3px 0 #060A22, 0 8px 18px rgba(11,18,51,0.22);
}
.feat-ico svg { display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35)); }
.feat-body { min-width: 0; }
@media (max-width: 400px) { .feat { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; } .feat-ico { width: 48px; height: 48px; border-radius: 13px; } }
.faq summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 48%), linear-gradient(160deg, #1A2360, #0B1233);
  box-shadow: 0 2px 0 #060A22;
}

/* ── Contatti ── */
.contact-card { background: var(--soft); border-radius: var(--r-big); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; max-width: 760px; }
.contact-label { margin: 0; font-weight: 600; color: var(--muted); font-size: 14px; }
.contact-mail { margin: 2px 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 4vw, 32px); letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
button.btn { border: 0; cursor: pointer; }
@media (max-width: 480px) { .contact-card { grid-template-columns: 1fr; } }

/* ── Lingua: barra sottile in alto e selettore in fondo (come Apple) ── */
.lang-bar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; position: relative; z-index: 21; }
.lang-bar .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; }
.lang-bar span { color: #424245; }
.lang-go { font-family: var(--display); font-weight: 800; background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 999px; }
.lang-go:hover { text-decoration: none; opacity: .9; }
.lang-stay { border: 0; background: transparent; color: var(--link); font: 500 14px var(--body); cursor: pointer; padding: 6px 4px; margin-left: auto; }
.lang-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.lang-pick a { color: var(--link); font-weight: 600; }

/* Lo slogan sotto il titolo di Concierge: oro, tondo, un po' sfacciato */
.feature-hero .slogan {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(22px, 3.2vw, 32px); line-height: 1.15; margin: 14px 0 0;
  background: linear-gradient(135deg, #F8E7B4, #E3AE3C 55%, #C48A1E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
