/* ==========================================================================
   DGS Digital - Official Brand Aesthetic & Design System
   Castel di Lama (AP) | Sonia Di Girolami
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --bg-body: #f4f9fc;
  --bg-surface: #ffffff;
  --bg-subtle: #eaeff5;
  --bg-dark: #0b1a28;

  --brand-teal: #20bdbe;
  --brand-cyan: #1c85c8;
  --brand-blue: #027bbf;
  --brand-gradient: linear-gradient(135deg, #20bdbe 0%, #1c85c8 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1aa3a4 0%, #1771ab 100%);
  --brand-soft: rgba(32, 189, 190, 0.1);

  --text-primary: #0d2235;
  --text-secondary: #3d566e;
  --text-light: #70889e;
  --text-on-dark: #f0f6fa;

  --border-subtle: #e1eef5;
  --border-accent: #b3e1ec;

  --font-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --transition-normal: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-subtle: 0 4px 20px rgba(13, 34, 53, 0.05);
  --shadow-card: 0 12px 35px rgba(13, 34, 53, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; background-color: var(--bg-body); }

::selection { background-color: var(--brand-teal); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-cyan); }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  pointer-events: none; position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999;
  transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background-color: var(--brand-cyan); }
.cursor-outline {
  width: 34px; height: 34px; border: 1px solid rgba(28, 133, 200, 0.4);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
body.hovering-interactive .cursor-outline {
  width: 54px; height: 54px; border-color: var(--brand-teal);
  background-color: var(--brand-soft);
}
@media (pointer: coarse) { .cursor-dot, .cursor-outline { display: none; } }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* Typography */
.display-title { font-family: var(--font-sans); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-primary); }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-tag {
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--brand-cyan);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  background: rgba(32,189,190,0.1); padding: 7px 18px; border-radius: var(--radius-full);
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  padding: 12px 0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-subtle);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

/* Logo Image */
.logo-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-brand-img { height: 52px; width: auto; object-fit: contain; border-radius: 8px; transition: transform 0.3s ease; }
.logo-brand:hover .logo-brand-img { transform: scale(1.03); }

.nav-menu { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-link { color: var(--text-primary); text-decoration: none; font-size: 1.05rem; font-weight: 700; transition: color var(--transition-normal); }
.nav-link:hover { color: var(--brand-cyan); }

.header-actions { display: flex; align-items: center; gap: 18px; }

/* Status Pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 700; color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}
.status-pill.open { border-color: var(--border-accent); color: var(--brand-cyan); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background-color: var(--text-light); }
.status-pill.open .status-dot { background-color: var(--brand-teal); box-shadow: 0 0 10px var(--brand-teal); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(32,189,190,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(32,189,190,0); }
}

/* Social Buttons */
.social-flex { display: flex; align-items: center; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  color: var(--brand-cyan); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}
.social-btn:hover { border-color: var(--brand-teal); color: #fff; background: var(--brand-gradient); transform: translateY(-2px); }

.social-btn-text {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border-radius: var(--radius-full); background: var(--bg-surface);
  border: 1px solid var(--border-accent); color: var(--brand-cyan);
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition-normal);
}
.social-btn-text:hover { border-color: var(--brand-teal); color: #fff; background: var(--brand-gradient); transform: translateY(-2px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 32px; border-radius: var(--radius-full); font-family: var(--font-sans);
  font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  border: none; transition: all var(--transition-normal);
}
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 6px 22px rgba(32,189,190,0.28); }
.btn-primary:hover { background: var(--brand-gradient-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28,133,200,0.38); }
.btn-secondary { background-color: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-accent); box-shadow: var(--shadow-subtle); }
.btn-secondary:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); transform: translateY(-2px); }

.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { padding-top: 175px; padding-bottom: 95px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 5.2vw, 4.4rem); margin-bottom: 24px; }
.hero-lead { font-size: 1.25rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-features-list { display: flex; gap: 32px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.feature-item-mini { display: flex; flex-direction: column; }
.feature-title-mini { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; color: var(--brand-cyan); }
.feature-desc-mini { font-size: 0.9rem; color: var(--text-secondary); }

.hero-visual { position: relative; }
.hero-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card); }
.hero-card-inner { border-radius: var(--radius-md); overflow: hidden; position: relative; aspect-ratio: 4/4.2; }
.hero-card-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-card:hover img { transform: scale(1.04); }
.hero-badge-brand {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  padding: 18px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--border-accent); box-shadow: var(--shadow-subtle);
}
.hero-badge-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-cyan); }
.hero-badge-title { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }

/* Strip Banner */
.strip-banner { background: var(--bg-surface); border-y: 1px solid var(--border-subtle); padding: 24px 0; margin-bottom: 80px; box-shadow: var(--shadow-subtle); }
.strip-flex { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.strip-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem; color: var(--text-primary); }
.strip-icon { color: var(--brand-teal); font-size: 1.25rem; }

/* Info Section */
.info-section { padding: 80px 0; }
.section-header { margin-bottom: 44px; }
.section-title { font-size: clamp(2rem, 3.5vw, 2.9rem); }
.bento-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.bento-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-subtle); transition: border-color var(--transition-normal), box-shadow var(--transition-normal); }
.bento-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-card); }

.hours-table { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.hours-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--bg-body); border-radius: var(--radius-sm); border: 1px solid transparent; transition: all 0.2s ease; }
.hours-row.active-day { border-color: var(--brand-teal); background: var(--brand-soft); }
.day-name { font-weight: 700; font-size: 1.02rem; }
.hours-time { font-family: var(--font-sans); color: var(--brand-cyan); font-weight: 700; font-size: 1.02rem; }
.hours-time.closed { color: var(--text-light); }

.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-cyan); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-lbl { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 2px; }
.contact-val { font-size: 1.12rem; font-weight: 700; color: var(--text-primary); }

/* Services */
.services-section { padding: 90px 0; background: var(--bg-surface); border-y: 1px solid var(--border-subtle); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 40px; }
.service-card { background: var(--bg-body); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px; transition: all var(--transition-normal); display: flex; flex-direction: column; justify-content: space-between; }
.service-card:hover { transform: translateY(-6px); border-color: var(--border-accent); background: var(--bg-surface); box-shadow: var(--shadow-card); }
.service-icon-brand { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 22px; box-shadow: 0 6px 18px rgba(32,189,190,0.28); }
.service-title { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.service-desc { font-size: 1.02rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 22px; }
.service-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-subtle); padding-top: 18px; }
.service-bullets li { font-size: 0.95rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.service-bullets li::before { content: '✓'; color: var(--brand-teal); font-weight: bold; }

/* Portfolio */
.portfolio-section { padding: 100px 0; }
.portfolio-filter { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn { padding: 11px 26px; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all var(--transition-normal); box-shadow: var(--shadow-subtle); }
.filter-btn.active, .filter-btn:hover { background: var(--brand-gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 18px rgba(32,189,190,0.35); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.portfolio-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-subtle); transition: all var(--transition-normal); }
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--border-accent); }
.portfolio-item.hidden { display: none; }
.portfolio-img-wrap { aspect-ratio: 4/3.8; overflow: hidden; position: relative; }
.portfolio-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover .portfolio-img-wrap img { transform: scale(1.06); }
.portfolio-caption { padding: 20px 22px; background: var(--bg-surface); }
.portfolio-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-cyan); margin-bottom: 6px; }
.portfolio-title { font-family: var(--font-sans); font-size: 1.18rem; font-weight: 800; color: var(--text-primary); }

/* Lightbox */
.lightbox-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(13,34,53,0.85); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 30px; }
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 880px; width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; background: var(--bg-surface); padding: 28px; border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.lightbox-img-wrapper { max-height: 65vh; width: 100%; display: flex; justify-content: center; overflow: hidden; border-radius: var(--radius-md); }
.lightbox-img-wrapper img { max-height: 65vh; max-width: 100%; object-fit: contain; }
.lightbox-info { margin-top: 20px; text-align: center; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text-primary); font-size: 1.8rem; cursor: pointer; }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand p { color: #9cb2c7; font-size: 1.02rem; max-width: 420px; margin-top: 16px; margin-bottom: 20px; line-height: 1.65; }
.legal-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand-teal); background: rgba(32,189,190,0.12); padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(32,189,190,0.25); }
.footer-col h4 { font-family: var(--font-sans); font-size: 1.18rem; font-weight: 800; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #9cb2c7; text-decoration: none; font-size: 1.02rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); color: #6b849c; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding-top: 135px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
