/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --brand:#273f7b;
  --brand-dark:#1d2f5c;
  --accent:#f5de11;
  --accent-light:#5974ec;
  --text:#222;
  --muted:#6b7280;
  --bg:#ffffff;
  --section:#f8fafc;
  --radius:10px;
}

html { scroll-behavior:smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height:1.6;
}

.container { width: min(1200px, 92%); margin: 0 auto; padding: 2rem 0; }

/* Header */
.site-header .top-bar {
  background: linear-gradient(180deg, var(--brand-dark), #0f1f43);
  color: #f5de11;
  height: 108px;
  display: flex;
  align-items: center;
  border-bottom: none;
  position: relative;
  z-index: 40;
}
.site-header .top-bar .container { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.logo img { height:92px; filter: drop-shadow(0 0 8px rgba(245,222,17,.65)); }
.main-nav ul { list-style:none; display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.main-nav a { text-decoration:none; color:#f5de11; font-weight:600; font-size:1rem; }
.main-nav a:hover { color:#fff; text-shadow:0 0 8px #f5de11; }
.btn.small { padding:.5rem .9rem; border-radius:999px; font-size:.9rem; }
.btn.small.tertiary { background:#fff; border:2px solid var(--accent); color:var(--brand); }
.btn.small.tertiary:hover { background:var(--accent); color:#000; }

/* Vertical rail */
.side-rail { position: fixed;
  inset: 0 auto 0 0;
  width: 72px;
  background: linear-gradient(180deg, var(--brand-dark), #0f1f43);
  color: #cfe0ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7rem;
  gap: 1.2rem;
  z-index: 50;
}
.side-rail a {
  text-decoration: none;
  color: #cfe0ff;
  font-size: .75rem;
  text-align: center;
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  opacity:.85;
}
.side-rail a:hover { opacity:1; }
.side-rail .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display:grid; place-items:center;
  font-weight:800;
}

body.with-rail .site-header .top-bar .container,
body.with-rail .hero .container,
body.with-rail .site-main .container,
body.with-rail .site-footer .container {
  padding-left: calc(72px + 1rem);
}

/* Hero */
.hero {
  background: url('assets/hero_001.jpg') center/cover no-repeat;
  color:#fff;
  text-align:center;
  padding: 6rem 1rem;
  position:relative;
  min-height: calc(100vh - 108px - 56px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(13,31,68,.55);
}
.hero .container {
  position:relative;
  z-index:2;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom:.75rem;
  font-weight:700;
}
.hero p {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight:500;
  color:#e8eef7;
}

.hero::before{ content:""; position:absolute; inset:0; background: rgba(13,31,68,.55); }
.hero::after{ content:""; position:absolute; inset:0; background: rgba(0,0,0,.25); }
.hero .container{ position:relative; z-index:2; }
.hero h1{ font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; }
.hero p{ font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 1.5rem; color:#e8eef7; }

/* Buttons */
.btn { display:inline-block; padding:.85rem 1.4rem; border:none; text-decoration:none; font-weight:700; border-radius: var(--radius); transition: all .2s; }
.btn.primary{ background:var(--brand); color:#fff; }
.btn.primary:hover{ background:var(--brand-dark); }
.btn.secondary{ background:var(--accent-light); color:var(--brand); }
.btn.secondary:hover{ filter:brightness(.95); }
.btn.tertiary{ background:transparent; color:var(--brand); border:2px solid var(--accent); }
.btn.tertiary:hover{ background:var(--accent); color:#000; }
.link{ color:var(--brand); text-decoration:none; font-weight:600; }
.link:hover{ text-decoration:underline; }

/* Sections */
.section h2 { font-size: clamp(1.6rem, 3.3vw, 2.2rem); margin-bottom:1rem; }
.section { background:var(--section); margin: 0; }
.section .container{ padding: 3rem 0; }
.section.about, .section.services, .section.works, .section.certificates { background:#fff; }

/* Grids */
.services-grid, .news-grid, .pillars-grid { display:grid; gap:1.5rem; }
.services-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pillars-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style:none; }
.service, .news-item, .pillars-grid li {
  background:#fff; border:1px solid #e5e7eb; border-radius: var(--radius); padding:1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.service h3, .news-item h3 { margin-bottom:.5rem; }

.footer-cta { text-align:center; background:#f0f6fd; }
.footer-cta p{ color:var(--muted); margin: .5rem 0 1.25rem; }

/* Reserved area */
.section.reserved { background:#fff; }

/* Footer */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--brand-dark), #1e356e);
  color:#fff;
  padding: .6rem 0;
  z-index: 45;
}
.footer-flex{ display:flex; gap:2rem; align-items:center; justify-content:space-between; }
.logo-footer{ height:40px; filter: brightness(0) invert(1); }
.footer-links{ list-style:none; display:flex; gap:1rem; }
.footer-links a{ color:#fff; text-decoration:none; }
.footer-links a:hover{ text-decoration:underline; }

/* Responsive */
@media (max-width: 720px){
  .footer-flex{ flex-direction:column; align-items:flex-start; }
}

.italgas-btn { border-color:#f5de11 !important; color:#0d1f44 !important; background:#f5de11 !important; }
.italgas-btn:hover { filter:brightness(0.95); }

/* Fullscreen home hero and lock scroll */
html, body { height: 100%; }
body { font-family: system-ui; color: var(--text); background: var(--bg); line-height:1.6; overflow:auto; }
.hero {
  background: url('assets/hero_001.jpg') center/cover no-repeat;
  color:#fff;
  text-align:center;
  padding: 6rem 1rem;
  position:relative;
  min-height: calc(100vh - 108px - 56px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(13,31,68,.55);
}
.hero .container {
  position:relative;
  z-index:2;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom:.75rem;
  font-weight:700;
}
.hero p {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight:500;
  color:#e8eef7;
}
 /* 72px approx header */
.site-main { display:none; } /* hide other sections on home */

.footer-center {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.5rem;
}
.logo-footer { height:48px; filter: brightness(0) invert(1); }

.footer-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 0 .75rem; }
.footer-left .logo-footer { height:36px; filter: brightness(0) invert(1); }
.footer-right p { margin:0; font-size:.9rem; white-space:nowrap; }

/* Adjust vertical fascia to start below the taller header and end above fixed footer */
.side-rail { top: 108px; bottom: 56px; }
