/* ============================================
   Lauria & C. Consulenze Doganali S.r.l.
   Custom styles — Bootstrap 5 based
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Serif:wght@500;600;700&display=swap');

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5282;
  --accent: #c0392b;
  --light-bg: #f0f4f8;
  --ink: #1f2d3d;
  --muted: #5d6d7e;
  --line: #d9e1ea;
  --servizi-link: #078812;
  --servizi-ricerca: #f5f106;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 280px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'IBM Plex Serif', serif;
}

/* ── Topbar ───────────────────────────────── */
.topbar {
  background: #10263b;
  color: #d6e2ee;
  font-size: .82rem;
  padding: .38rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.topbar-item {
  letter-spacing: .03em;
}

.topbar-link {
  color: #f0f7ff;
  text-decoration: none;
  font-weight: 600;
}

.topbar-link:hover {
  color: #ffc107;
}

/* ── Navbar ───────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(8, 20, 36, 0.32);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .03em;
}
.navbar-brand img {
  border-radius: 4px;
  object-fit: contain;
}
.navbar .nav-link {
  font-size: .95rem;
  font-weight: 600;
  padding: .5rem .9rem;
  transition: color .2s;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #ffc107 !important;
}
.navbar .dropdown-menu {
  border: 1px solid #e9edf2;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  padding: .35rem;
}
.navbar .dropdown-item:hover {
  background: var(--light-bg);
  color: var(--primary);
}

/* ── Page header banner ───────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #153250 0%, #2c5f92 100%);
  color: #fff;
  padding: 2.8rem 0 2.2rem;
  margin-bottom: 2rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 2px, transparent 3px),
                    radial-gradient(circle at 80% 65%, rgba(255,255,255,.1) 0 2px, transparent 3px);
  background-size: 24px 24px, 30px 30px;
  opacity: .25;
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.15rem;
  font-weight: 700;
  margin: 0;
}
.page-hero p {
  position: relative;
  z-index: 1;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.page-hero .hero-subtitle {
  margin-top: .9rem;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

.hero-cta .btn {
  min-width: 210px;
}

/* ── Modulistica cards ────────────────────── */
.modulistica-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 10px 24px rgba(18, 41, 63, .06);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 41, 63, .12);
}

.download-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-card h2 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--primary);
}

.download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.download-badge--word {
  background: rgba(26, 58, 92, .12);
  color: var(--primary);
}

.download-badge--pdf {
  background: rgba(192, 57, 43, .12);
  color: var(--accent);
}

.download-card p {
  margin: 0;
  color: #526273;
  line-height: 1.6;
  flex: 1;
}

.btn-download {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-download:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 58, 92, .2);
}

@media (max-width: 768px) {
  .modulistica-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Home intro ───────────────────────────── */
.home-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
  box-shadow: 0 10px 26px rgba(18, 41, 63, .06);
}
.home-intro img {
  border-radius: 4px;
}
.clients-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  line-height: 1.7;
  box-shadow: 0 10px 26px rgba(18, 41, 63, .06);
}

.feature-card {
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(18, 41, 63, .12) !important;
}
.feature-card .badge-label {
  display: inline-block;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: .35rem;
}

.showcase-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(18, 41, 63, .08);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--primary-light);
}

.display-title {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--primary);
  margin: 0;
}

.lead-copy {
  font-size: 1.06rem;
  color: #34495e;
  line-height: 1.7;
  margin-bottom: 0;
}

.showcase-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(18, 41, 63, .1);
}

.showcase-media img {
  display: block;
  min-height: 290px;
  object-fit: cover;
}

.kpi-strip {
  margin-top: -.4rem;
}

.kpi-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
  height: 100%;
}

.kpi-value {
  margin: 0;
  color: var(--primary);
  font-family: 'IBM Plex Serif', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.kpi-label {
  margin: .4rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.section-title {
  color: var(--primary);
  font-size: 1.55rem;
}

.mini-media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 41, 63, .08);
}

.mini-media-card img {
  display: block;
  min-height: 220px;
  object-fit: cover;
}

.mini-media-card .home-company-logo {
  min-height: 0;
  max-height: 320px;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
}

.home-intro {
  position: relative;
}

.about-copy {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: 0 16px 34px rgba(18, 41, 63, .08);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.about-eyebrow {
  display: block;
  margin-top: 4.8rem;
  margin-bottom: .7rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}

.about-logo-pill {
  position: absolute;
  top: .8rem;
  left: 1rem;
  width: auto;
  max-width: 110px;
  padding: .45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 18px rgba(18, 41, 63, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-company-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.mini-media-caption {
  margin: 0;
  padding: .8rem .95rem;
  font-size: .86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.cta-banner {
  background: linear-gradient(135deg, #173653 0%, #234f79 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 14px 28px rgba(12, 28, 46, .2);
}

.cta-banner h4 {
  color: #fff;
  margin: 0;
}

.cta-banner p {
  color: rgba(255, 255, 255, .88);
}

.clients-showcase {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem 1.3rem;
  box-shadow: 0 12px 28px rgba(18, 41, 63, .08);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.logo-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .45rem .65rem;
  background: #fbfdff;
}

.logo-item span {
  font-size: .76rem;
  font-weight: 700;
  color: #44566b;
  letter-spacing: .04em;
}

/* ── Services table ───────────────────────── */
.services-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border: 1px solid var(--line);
}
.services-table thead th {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-weight: 600;
}
.services-table tbody td {
  vertical-align: top;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  width: 25%;
  background: #fff;
}
.services-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-table ul li {
  padding: .2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.services-table ul li::before {
  content: "• ";
  color: var(--primary);
  font-weight: bold;
}
.services-table ul li:last-child { border-bottom: none; }

/* ── Link list (Normativa, Link Utili, ecc.) */
.link-section hr { border-color: #dee2e6; margin: .4rem 0; }
.link-section a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
}
.link-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.link-section .section-label {
  font-weight: 600;
  color: var(--primary);
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.side-panel {
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(18, 41, 63, .08);
}

.side-panel .side-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.side-panel .side-links a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* ── Doganali groups ──────────────────────── */
.doganali-section address {
  margin-bottom: 0;
  font-style: normal;
}
.doganali-section address p { margin: .2rem 0; }

/* ── Modulistica ──────────────────────────── */
.mod-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.mod-item:last-child { border-bottom: none; }
.mod-item img { flex-shrink: 0; }
.mod-item a {
  color: var(--primary);
  text-decoration: none;
  font-size: .97rem;
}
.mod-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Contacts ─────────────────────────────── */
.company-card {
  background: var(--primary);
  color: #fff;
  padding: 1.85rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 12px 28px rgba(13, 30, 48, .24);
}
.company-card h4 { font-weight: 700; margin-bottom: .75rem; }
.company-card a { color: #ffc107; }
.company-card hr { border-color: rgba(255,255,255,.3); }
.company-card .btn-warning,
.company-card .btn-warning:hover {
  color: var(--primary);
}
.company-card-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}
.company-card-text {
  font-size: 1.1rem;
  line-height: 1.75;
}
.company-card.company-card-light {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 41, 63, .08);
}

.person-card-servizi {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 41, 63, .08);
}

.person-card-link {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--servizi-link);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 41, 63, .08);
}

.person-card-ricerca {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--servizi-ricerca);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(18, 41, 63, .08);
}


.person-card h5 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .3rem;
}
.person-card .role {
  color: #555;
  font-size: .85rem;
  margin-bottom: .5rem;
}
.person-card .details {
  font-size: .88rem;
  line-height: 1.6;
  margin-top: auto;
  padding-top: .5rem;
}
.person-card .details .label {
  display: inline-block;
  min-width: 58px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}
.person-card a { color: var(--primary); }

/* ── Map ──────────────────────────────────── */
.map-wrapper {
  border: 3px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 41, 63, .12);
}
.map-wrapper iframe { display: block; }

/* ── Footer ───────────────────────────────── */
footer {
  border-top: 3px solid var(--primary);
  font-size: .88rem;
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .topbar {
    font-size: .76rem;
  }

  .topbar .container {
    justify-content: center !important;
  }

  .page-hero {
    padding: 2.3rem 0 1.8rem;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: .68rem;
  }

  .page-hero .hero-subtitle {
    font-size: .98rem;
  }

  .hero-cta .btn {
    min-width: 0;
  }

  .showcase-intro {
    padding: 1.45rem;
  }

  .display-title {
    font-size: 1.65rem;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Scroll-to-top button ────────────────── */
#scrollTop {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: background .2s;
}
#scrollTop:hover { background: var(--primary-light); }
#scrollTop.visible { display: block; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(26, 58, 92, 0.96);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.28);
}
.cookie-banner a {
  color: #fff;
}
.cookie-banner a:hover {
  color: #ffd966;
}
.privacy-policy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(18, 41, 63, .08);
}
.privacy-policy h4 {
  margin-top: 1.2rem;
  color: var(--primary);
}
.privacy-policy ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}
.privacy-policy ul li {
  margin-bottom: 0.5rem;
}

.slider-img{
    height:420px;
    object-fit:cover;
}

.carousel{
    border-radius:12px;
    overflow:hidden;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-color:rgba(0,0,0,.45);
    border-radius:50%;
    padding:20px;
}

@media (max-width:768px){

    .slider-img{
        height:240px;
    }

}

/* Icone social navbar */

.social-icons{
    gap:12px;
}

.nav-social{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#ffffff20;
    color:#fff;
    font-size:1.15rem;
    transition:.25s;
    text-decoration:none;
}

.nav-social:hover{
    background:#ffc107;
    color:var(--primary);
    transform:translateY(-2px);
}

@media(max-width:991px){

    .social-icons{
        gap:10px;
    }

}