/*
  GOLD TLL – Corporate site styles
  Palette: Gold #d4af37, Black #000, White #fff, Gray #e5e5e5 / #555
  Font: Poppins
*/

:root {
  --gold: #d4af37;
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-600: #555555;
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img { height: 56px; display: block; }

.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav .nav-link { color: #1b1b1b; text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { color: #333; font-size: 14px; }
.lang-switch .lang-btn { background: transparent; color: #333; border: none; cursor: pointer; padding: 4px 6px; font-weight: 600; }
.lang-switch .lang-btn[aria-pressed="true"] { color: var(--gold); }
.lang-switch .sep { color: #777; margin: 0 4px; }

.hamburger { display: none; background: transparent; border: none; width: 36px; height: 32px; position: relative; cursor: pointer; }
.hamburger span { position: absolute; left: 6px; right: 6px; height: 2px; background: #333; transition: 0.25s; }
.hamburger span:nth-child(1){ top: 8px; }
.hamburger span:nth-child(2){ top: 15px; }
.hamburger span:nth-child(3){ top: 22px; }
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.alert-bar { display:none; color:#111; background: #ffeaa7; padding: 8px 0; text-align: center; font-size: 14px; }
.alert-bar.show { display:block; }

/* Hero */
.hero { background: linear-gradient(135deg, #000 0%, #111 60%), url('../img/hero-bg.jpg'); color: var(--white); padding: 120px 0; }
.hero-compact { padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-copy h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.1; }
.hero-copy p { margin: 0 0 24px; color: #ddd; }
.hero-art { height: 320px; border-radius: var(--radius); background: #0b0b0b; border: 1px solid rgba(212,175,55,0.25); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy.compact { text-align: center; grid-column: 1 / -1; }

/* Sections */
.section { padding: 72px 0; background: var(--white); }
.section.alt { background: #0b0b0b; color: #eaeaea; }
.section-title { margin: 0 0 24px; font-size: 28px; }
.lead { color: var(--gray-600); font-size: 18px; }

.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.about-card { padding: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.card .icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 12px; }
.card .icon svg { width: 100%; height: 100%; display: block; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--gray-600); }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.benefits .dot { width: 8px; height: 8px; background: var(--gold); display: inline-block; border-radius: 50%; margin-right: 10px; vertical-align: middle; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; }
.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px; font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(212,175,55,0.35); border-color: var(--gold); }
.consent { margin: 10px 0 16px; font-size: 14px; }

.contact-info { background: #0b0b0b; color: #eaeaea; border-radius: var(--radius); padding: 20px; border: 1px solid rgba(212,175,55,0.25); }
.contact-info a { color: var(--gold); text-decoration: none; }
.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-links a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.35); border-radius: 50%; transition: background .2s ease, color .2s ease, transform .1s ease; }
.social-links a:hover { background: var(--gold); color: #1b1b1b; transform: translateY(-1px); }
.social-links svg { width: 18px; height: 18px; display: block; }

/* Affiliate disclaimer */
.affiliate-disclaimer { padding: 12px 0 0; color: #777; font-size: 10px; line-height: 1.4; }
.affiliate-disclaimer .container { border-top: 1px dashed var(--gray-200); padding-top: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .1s ease, background .2s ease, color .2s ease; border: 2px solid transparent; }
.btn-primary { background: var(--gold); color: #1b1b1b; }
.btn-primary:hover { background: #e7c959; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: rgba(212,175,55,0.12); }

/* Button row */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Media grid for affiliate assets */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-grid.is-banner { grid-template-columns: 1fr; }
.media { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.media img { width: 100%; height: auto; display: block; }
.media figcaption { font-size: 12px; padding: 8px 10px; color: var(--gray-600); word-break: break-all; }
.note { color: var(--gray-600); font-size: 14px; }
.doc-list { margin: 8px 0 16px; padding-left: 18px; }
.doc-list a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--gold); }
.doc-list a:hover { color: var(--gold); }

/* Affiliate banner on Affiliations */
.affiliate-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: center; }
.affiliate-banner { margin: 8px 0; background: var(--white); padding: 14px; border-radius: var(--radius); border: 1px solid rgba(212,175,55,0.35); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.affiliate-banner img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; image-rendering: -webkit-optimize-contrast; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100; background: #0b0b0b; color: #eaeaea; border: 1px solid rgba(212,175,55,0.35); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 16px; }
.cookie-banner .txt { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; font-size: 14px; }
.cookie-actions .btn-outline { color: #eaeaea; border-color: rgba(212,175,55,0.5); }
.cookie-actions a { color: var(--gold); text-decoration: none; }

@media (min-width: 900px) {
  .cookie-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(820px, 92vw); }
}

/* Section illustrations (compact) */
.section-illus { display: block; width: 100%; max-width: 420px; height: auto; margin: 16px auto 0; border-radius: 10px; border: 1px solid rgba(212,175,55,0.25); box-shadow: 0 6px 16px rgba(0,0,0,.08); background: #fff; }
.section.alt .section-illus { background: #0f0f0f; border-color: rgba(212,175,55,0.35); }

/* Service side-by-side layout */
.service-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
.service-grid.reverse .service-copy { order: 2; }
.service-grid.reverse .service-media { order: 1; }
.service-media img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--gray-200); box-shadow: var(--shadow); background: #fff; aspect-ratio: 16/9; object-fit: cover; }
.section.alt .service-media img { background: #0f0f0f; border-color: rgba(212,175,55,0.35); }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-grid.reverse .service-copy, .service-grid.reverse .service-media { order: initial; }
  .service-media img { max-width: 520px; margin: 0 auto; }
}

/* Footer */
.site-footer { background: #0a0a0a; color: #cfcfcf; padding: 32px 0; border-top: 1px solid rgba(212,175,55,0.2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links a { color: #cfcfcf; text-decoration: none; margin-left: 14px; }
.footer-links a:hover, .footer-links a.active { color: var(--gold); }

/* Language visibility */
body[data-lang="en"] .lang-it { display: none !important; }
body[data-lang="it"] .lang-en { display: none !important; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .main-nav { position: fixed; inset: 84px 0 auto 0; background: rgba(0,0,0,0.98); padding: 14px 20px 18px; display: none; flex-direction: column; gap: 14px; border-bottom: 1px solid rgba(212,175,55,0.2); }
  .main-nav.show { display: flex; }
  .main-nav .nav-link { color: #ddd; font-size: 16px; }
  .hamburger { display: inline-block; }
}

@media (max-width: 420px) {
  .logo img { height: 48px; }
}

/* Utilities */
.hidden { display: none !important; }
