/* ============================================================
   PARTNERS srl — Agenzia Pubblicitaria Cuneo
   Theme: Dark Navy + Gold accent
   ============================================================ */

:root {
  --bg-dark: #00192F;
  --bg-alt: #0a2540;
  --bg-card: #0f2d4a;
  --accent: #F4A261;
  --accent-light: #f7b987;
  --text: #c8cdd5;
  --text-heading: #EDEDED;
  --text-muted: #7a8699;
  --white: #ffffff;
  --border: rgba(255,255,255,0.08);
  --max-w: 1100px;
  --header-h: 68px;
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: .6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0,25,47,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-heading);
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
}
.header__logo img { height: 42px; width: auto; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  transition: all .2s;
}
.nav a:hover, .nav a.active { color: var(--text-heading); background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--text);
  position: absolute; left: 7px; transition: .3s;
}
.nav-toggle span { top: 17px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }

/* Hero */
.hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  margin-top: var(--header-h); text-align: center;
  overflow: hidden;
}
.hero--small { min-height: 280px; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,25,47,0.7) 0%, rgba(0,25,47,0.9) 100%);
}
.hero__content {
  position: relative; z-index: 2; padding: 60px 24px;
  max-width: 700px;
}
.hero__content h1 { font-size: 2.6rem; margin-bottom: .4em; }
.hero__content p { font-size: 1.15rem; color: var(--text); margin-bottom: 1.5em; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-light); color: var(--bg-dark); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent); color: var(--bg-dark); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

.section-header { margin-bottom: 40px; }
.section-header h2 { position: relative; display: inline-block; }
.section-header h2::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--accent); margin-top: 8px; border-radius: 2px;
}
.section-header p { color: var(--text-muted); margin-top: 8px; }

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.card__img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 20px; }
.card__tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent); margin-bottom: 8px;
}
.card__title { font-size: 1.15rem; margin-bottom: 8px; }
.card__title a { color: var(--text-heading); }
.card__title a:hover { color: var(--accent); }
.card__excerpt { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }
.card__link { font-size: .85rem; font-weight: 600; color: var(--accent); }
.card__link:hover { color: var(--accent-light); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.feature { text-align: center; padding: 24px; }
.feature__icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature__title { font-size: 1.1rem; margin-bottom: 8px; }
.feature__text { font-size: .9rem; color: var(--text-muted); }

/* Event detail */
.event-detail { max-width: 800px; margin: 0 auto; }
.event-detail__meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.event-detail__meta-item { font-size: .9rem; color: var(--text-muted); }
.event-detail__meta-item strong { color: var(--text-heading); }

.event-year {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.event-year__title {
  font-family: var(--font); font-size: 1.1rem; font-weight: 700;
  color: var(--accent); margin-bottom: 16px;
}
.event-year__img {
  border-radius: var(--radius); width: 100%;
  border: 1px solid var(--border);
}

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: transform .2s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Contact info */
.contact-block {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px;
}
.contact-block h3 { margin-bottom: 16px; }
.contact-block p { margin-bottom: 8px; }
.contact-block a { color: var(--accent); text-decoration: underline; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0; font-size: .85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* Footer */
.footer {
  background: rgba(0,0,0,0.3); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer__brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-heading); margin-bottom: 12px; }
.footer__text { font-size: .9rem; color: var(--text-muted); }
.footer__heading { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-heading); margin-bottom: 12px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: var(--text-muted); font-size: .9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: .8rem; color: var(--text-muted); text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-dark); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .hero__content h1 { font-size: 1.8rem; }
  .hero { min-height: 360px; }
  .hero--small { min-height: 200px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .hero__content h1 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
