/* ============================================================
   OMAR ABOUZARA — style.css
   ============================================================ */

:root {
  --color-bg:        #0a0a0a;
  --color-bg-alt:    #111111;
  --color-white:     #ffffff;
  --color-accent:    #8B0000;
  --color-muted:     #888888;
  --color-dim:       #555555;
  --color-border:    #222222;
  --font-display:    'Oswald', sans-serif;
  --font-body:       'Barlow', sans-serif;
  --nav-height:      60px;
  --section-pad:     72px;
  /* Gap sopra la hero: navbar height + mezzo centimetro */
  --hero-top-gap:    calc(var(--nav-height) + 5px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
}
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; color: var(--color-white); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--color-white); }
.nav-cta { font-family: var(--font-body); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-white); position: relative; padding-bottom: 2px; }
.nav-cta::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--color-accent); transition: width 0.3s ease; }
.nav-cta:hover::after { width: 100%; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--color-white); transition: all 0.3s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: var(--color-bg); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.nav-overlay.open { display: flex; }
.nav-overlay a { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 8vw, 64px); text-transform: uppercase; color: var(--color-white); letter-spacing: -0.02em; transition: color 0.2s ease; }
.nav-overlay a:hover { color: var(--color-accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/IMG_1611.JPG');
  background-size: 95%;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }

.hero-tag {
  position: absolute;
  top: 50%; right: 48px;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  line-height: 1.6;
  z-index: 2;
  opacity: 0;
  text-align: right;
}

/* Full-bleed title — abbassato di 20px (120 → 100) */
.hero-title {
  position: absolute;
  bottom: 100px; left: 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 21vw, 9999px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; transform: translateY(100%); opacity: 0; }

.hero-year {
  position: absolute;
  bottom: 88px; left: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-dim);
  z-index: 2;
  opacity: 0;
}
.hero-subtitle-bottom {
  position: absolute;
  bottom: 20px; left: 48px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  z-index: 2;
  opacity: 0;
}
.hero-bottom-right {
  position: absolute;
  bottom: 48px; right: 48px;
  z-index: 2;
  opacity: 0;
}
.hero-arrow {
  font-size: 28px;
  color: var(--color-accent);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: block;
}
.hero-arrow:hover { transform: translateY(4px); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section { overflow: hidden; padding: 22px 0; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; background: var(--color-bg); }
.marquee-track { display: flex; white-space: nowrap; will-change: transform; }
.marquee-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 80px); text-transform: uppercase; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px #2a2a2a; padding-right: 64px; flex-shrink: 0; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-number { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--color-dim); margin-bottom: 8px; display: block; }
.section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; color: var(--color-white); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--color-bg-alt); padding: var(--section-pad) 48px; }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 40% 1fr; gap: 72px; align-items: start; }
.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 3px solid var(--color-white);
  will-change: transform, opacity;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center; /* leggermente a sinistra del centro */
  display: block;
}
.about-photo .photo-placeholder { width: 100%; height: 100%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; color: var(--color-dim); font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.about-text { will-change: transform, opacity; }
.about-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.about-title { font-size: clamp(40px, 6vw, 80px); }
.about-link { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); position: relative; padding-bottom: 2px; white-space: nowrap; margin-top: 8px; }
.about-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--color-accent); }
.about-body p { color: #aaaaaa; font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }

/* ============================================================
   MEDIA SECTION — piccola, discreta, sotto l'about
   ============================================================ */
#media {
  background: var(--color-bg-alt);
  padding: 40px 48px 48px;
  border-top: 1px solid #1a1a1a;
}
.media-inner { max-width: 1200px; margin: 0 auto; }
.media-header { margin-bottom: 24px; }
.media-title {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--color-muted);
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
/* Sovrascrive section-number per questa sezione */
#media .section-number { margin-bottom: 4px; }

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  max-width: 760px; /* non occupa tutta la larghezza */
}
.media-card {}
.media-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dim);
  margin-bottom: 8px;
}

/* YouTube — 16:9 */
.media-embed {
  position: relative;
  padding-top: 56.25%;
  background: #0d0d0d;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Instagram — più quadrato */
.media-embed--instagram {
  padding-top: 100%;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--color-bg); padding: var(--section-pad) 48px; }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-header { margin-bottom: 48px; }
.services-header .section-title { font-size: clamp(60px, 10vw, 140px); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--color-border); }
.service-card { border: 1px solid var(--color-border); padding: 36px; transition: border-color 0.3s ease; cursor: default; will-change: transform, opacity; }
.service-card:hover { border-color: var(--color-accent); }
.service-num { font-family: var(--font-body); font-size: 11px; color: var(--color-dim); margin-bottom: 32px; display: block; }
.service-name { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.1; margin-bottom: 12px; color: var(--color-white); }
.service-tagline { font-family: var(--font-body); font-size: 14px; color: var(--color-muted); line-height: 1.6; margin-bottom: 28px; }
.service-explore { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); transition: letter-spacing 0.2s ease; }
.service-card:hover .service-explore { letter-spacing: 0.15em; }
.service-explore--soon { color: var(--color-dim); cursor: default; }
.service-card:hover .service-explore--soon { letter-spacing: 0.1em; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { background: var(--color-bg-alt); padding: var(--section-pad) 48px; }
.testimonials-inner { max-width: 1200px; margin: 0 auto; }
.testimonials-header { margin-bottom: 48px; }
.testimonials-header .section-title { font-size: clamp(40px, 7vw, 100px); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.testimonial-card { padding: 44px; border: 1px solid #1a1a1a; position: relative; will-change: transform, opacity; }
.testimonial-card::before { content: '"'; position: absolute; top: 28px; left: 36px; font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--color-accent); opacity: 0.6; }
.testimonial-quote { font-family: var(--font-body); font-style: italic; font-size: 17px; line-height: 1.8; color: #cccccc; margin-bottom: 28px; padding-top: 36px; }
.testimonial-author { font-family: var(--font-body); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-white); }
.testimonial-role { font-family: var(--font-body); font-size: 13px; color: var(--color-dim); margin-top: 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--color-bg); padding: var(--section-pad) 48px; }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-text { will-change: transform, opacity; }
.contact-title { font-size: clamp(40px, 6vw, 80px); margin-bottom: 28px; }
.contact-body { font-size: 17px; color: var(--color-muted); line-height: 1.8; margin-bottom: 28px; }
.contact-email { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--color-white); position: relative; padding-bottom: 2px; display: inline-block; }
.contact-email::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--color-accent); }
.contact-form { will-change: transform, opacity; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-dim); margin-bottom: 10px; }
.form-group input, .form-group textarea { width: 100%; background: var(--color-bg-alt); border: 1px solid #333; color: var(--color-white); font-family: var(--font-body); font-size: 15px; padding: 14px 16px; border-radius: 2px; outline: none; transition: border-color 0.2s ease; -webkit-appearance: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-accent); }
.form-group textarea { height: 130px; resize: vertical; }
.form-btn { background: var(--color-accent); color: var(--color-white); font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; padding: 16px 40px; border: none; cursor: pointer; border-radius: 0; transition: background 0.2s ease, transform 0.1s ease; }
.form-btn:hover { background: #a00000; }
.form-btn:active { transform: scale(0.98); }
.form-success { display: none; font-family: var(--font-body); font-size: 14px; color: var(--color-accent); margin-top: 16px; letter-spacing: 0.05em; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--color-bg); border-top: 1px solid #1a1a1a; padding: 56px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.footer-col-title { font-family: var(--font-body); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-dim); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-family: var(--font-body); font-size: 14px; color: var(--color-muted); transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--color-white); }
.footer-brand .footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--color-white); display: block; margin-bottom: 12px; }
.footer-copyright { font-family: var(--font-body); font-size: 12px; color: var(--color-dim); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 56px; }
  #navbar { padding: 0 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-tag { right: 32px; }
  .hero-bottom-right { right: 32px; }
  .hero-subtitle-bottom { left: 32px; }
  #about, #services, #testimonials, #contact { padding: var(--section-pad) 32px; }
  #footer { padding: 44px 32px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-pad: 44px; }

  /* Navbar */
  #navbar { padding: 0 20px; }

  /* Hero */
  .hero-bg { background-size: cover; background-position: center center; }
  .hero-tag { display: none; }
  .hero-title { font-size: clamp(52px, 16vw, 9999px); bottom: 80px; }
  .hero-year { left: 20px; }
  .hero-bottom-right { right: 20px; bottom: 36px; }
  .hero-subtitle-bottom { display: none; }

  /* Sezioni */
  #about, #services, #testimonials, #contact { padding: var(--section-pad) 20px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-carousel { aspect-ratio: 4/3; }
  .about-title { font-size: clamp(32px, 8vw, 56px); }
  .about-header { flex-direction: column; gap: 12px; }
  .about-body p { font-size: 15px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .services-header .section-title { font-size: clamp(44px, 12vw, 80px); }
  .service-card { padding: 28px 20px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-header .section-title { font-size: clamp(36px, 10vw, 64px); }
  .testimonial-card { padding: 28px 24px; }
  .testimonial-card::before { top: 18px; left: 18px; font-size: 56px; }
  .testimonial-quote { font-size: 15px; }

  /* Media */
  #media { padding: var(--section-pad) 20px; }
  .media-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-title { font-size: clamp(32px, 8vw, 56px); }

  /* Footer */
  #footer { padding: 36px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
