/* ===========================
   INTESA Template - Main Style
   Ispirato ad Electrolux / Corporate Premium
   =========================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:       #001e46;
  --primary-light: #003070;
  --accent:        #0057b8;
  --bg-light:      #f5f6f8;
  --bg-white:      #ffffff;
  --text-dark:     #1a1a2e;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --radius:        6px;
  --shadow:        0 4px 24px rgba(0,30,70,.08);
  --shadow-hover:  0 8px 40px rgba(0,30,70,.16);
  --transition:    all .3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  margin: 0; padding: 0;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-12 { width: 100%; padding: 0 12px; }
.col-6 { width: 50%; padding: 0 12px; }
.col-4 { width: 33.333%; padding: 0 12px; }
.col-3 { width: 25%; padding: 0 12px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.thm-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.thm-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.thm-btn-outline {
  display: inline-block;
  padding: 13px 35px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.thm-btn-outline:hover { background: var(--accent); color: #fff; }

/* ---- Section Title ---- */
.sec-title { margin-bottom: 48px; }
.sec-title .tag-line {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-title .title-line {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 20px;
}
.sec-title .line-block {
  display: block;
  width: 55px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-title.text-center .line-block { margin: 0 auto; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  background: var(--primary);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header-logo img { max-height: 42px; width: auto; }
.header-logo .brand-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.navigation-box { display: flex; gap: 8px; }
.navigation-box li a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.navigation-box li a:hover,
.navigation-box li a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.menu-toggler {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---- HERO ---- */
.hero-section {
  min-height: 560px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,30,70,.95) 0%, rgba(0,87,184,.6) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-content .tag-line {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero-content p {
  font-size: 18px;
  opacity: .85;
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- CONTACT BAR ---- */
.contact-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: var(--shadow);
}
.contact-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-bar-item i {
  width: 38px; height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-bar-item .info { display: flex; flex-direction: column; }
.contact-bar-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.contact-bar-item .value { font-size: 15px; font-weight: 600; color: var(--primary); }
.contact-bar-item .value a { color: var(--primary); }
.contact-bar-item .value a:hover { color: var(--accent); }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- ABOUT ---- */
.about-section { padding: 96px 0; }
.about-section .about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-section .about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content { padding: 24px 0 24px 48px; }

/* ---- SERVICES ---- */
.services-section {
  padding: 96px 0;
  background: var(--bg-light);
}
.services-tabs { margin-top: 40px; }
.services-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
}
.services-tab-nav li button {
  background: none;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.services-tab-nav li button:hover { color: var(--accent); }
.services-tab-nav li button.active { color: var(--primary); border-bottom-color: var(--accent); }
.services-tab-content .tab-pane { display: none; }
.services-tab-content .tab-pane.active { display: flex; gap: 40px; align-items: center; }
.services-tab-content .tab-pane img {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 420px;
  flex-shrink: 0;
}
.service-detail-content { flex: 1; }
.service-detail-content h3 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.service-detail-content p { color: var(--text-muted); margin-bottom: 24px; }

/* ---- PORTFOLIO ---- */
.portfolio-section { padding: 96px 0; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--bg-white);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.portfolio-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.06); }
.portfolio-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,30,70,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay a {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 2px;
}
.portfolio-card-body { padding: 20px; }
.portfolio-card-body h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.portfolio-card-body p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---- NEWS ---- */
.news-section {
  padding: 96px 0;
  background: var(--bg-light);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-date {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-body p { color: var(--text-muted); font-size: 14px; flex: 1; margin: 0 0 20px; }
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.news-card-link:hover { color: var(--primary); }

/* ---- STAFF ---- */
.staff-section { padding: 96px 0; }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.staff-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.staff-card-photo {
  overflow: hidden;
  aspect-ratio: 1/1;
}
.staff-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.staff-card:hover .staff-card-photo img { transform: scale(1.05); }
.staff-card-body { padding: 20px 16px; }
.staff-card-body h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0 0 4px; }
.staff-card-body span { font-size: 13px; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ---- CONTACT ---- */
.contact-section {
  padding: 96px 0;
  background: var(--primary);
  color: #fff;
}
.contact-section .sec-title .tag-line { color: rgba(255,255,255,.7); }
.contact-section .sec-title .title-line { color: #fff; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  margin-bottom: 16px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; cursor: pointer; }
.contact-form label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.contact-form .result { margin: 8px 0; color: #7fff7f; }
.contact-info-box { padding: 20px 0 20px 48px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 32px;
}
.contact-info-item i {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
}
.contact-info-item .info .label { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }
.contact-info-item .info .value { font-size: 16px; font-weight: 600; color: #fff; margin-top: 4px; }
.contact-info-item .info .value a { color: #fff; }
.contact-info-item .info .value a:hover { opacity: .8; }

/* ---- FOOTER ---- */
.site-footer {
  background: #000c1e;
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); margin: 16px 0 24px; max-width: 300px; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ---- INNER BANNER ---- */
.inner-banner {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inner-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: .85;
  z-index: 0;
}
.inner-banner .container { position: relative; z-index: 1; }
.inner-banner h2 { color: #fff; font-size: 42px; font-weight: 800; margin: 0 0 16px; }
.breadcrumb { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.breadcrumb li { color: rgba(255,255,255,.6); font-size: 14px; }
.breadcrumb li a { color: rgba(255,255,255,.6); }
.breadcrumb li a:hover { color: #fff; }
.breadcrumb li.current { color: #fff; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 16px; }

/* ---- PAGINATION ---- */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination-wrap a {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.pagination-wrap a:hover,
.pagination-wrap a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination-wrap a[disabled] { opacity: .4; pointer-events: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggler { display: block; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--primary); padding: 16px; }
  .navigation-box { flex-direction: column; }
  .hero-content h1 { font-size: 36px; }
  .sec-title .title-line { font-size: 28px; }
  .portfolio-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .services-tab-content .tab-pane.active { flex-direction: column; }
  .services-tab-content .tab-pane img { width: 100%; }
  .about-content { padding: 32px 0 0 0; }
  .contact-info-box { padding: 48px 0 0 0; }
  .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .portfolio-grid, .news-grid, .staff-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; }
}
