/* BRISOLIN ETTORE | Stili globali (bianco, blu, rosso) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --navy:#10344e;
  --blue:#176d99;
  --red:#dd262e;
  --ink:#172b3d;
  --muted:#617181;
  --light:#f4f7f9;
  --line:#e5ebef;
  --white:#fff
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  color:var(--ink);
  background:#fff;
  font:16px/1.65 'DM Sans',Arial,sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
img {
  max-width:100%;
  display:block
}
button {
  font:inherit
}
h1,h2,h3,h4 {
  font-family:Manrope,Arial,sans-serif;
  line-height:1.16;
  letter-spacing:-.04em;
  margin:0 0 20px
}
h1 {
  font-size:clamp(2.9rem,5.2vw,5.6rem);
  font-weight:800
}
h2 {
  font-size:clamp(2rem,3.2vw,3.5rem);
  font-weight:800
}
h3 {
  font-size:1.25rem
}
p {
  margin:0 0 18px
}
.container {
  width:min(1160px,calc(100% - 44px));
  margin:auto
}
.topbar {
  background:var(--navy);
  color:#f7fbff;
  font-size:12px
}
.top-inner {
  min-height:35px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center
}
.top-inner span {
  margin-right:20px
}
.top-inner a:hover {
  color:var(--red)
}
.header {
  background:#fff;
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid #eef0f0;
  box-shadow:0 5px 20px #102a3a0a
}
.nav {
  min-height:91px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px
}
.logo {
  width:290px;
  height:auto;
  max-height:75px;
  object-fit:contain;
  object-position:left
}
.links {
  display:flex;
  align-items:center;
  gap:28px
}
.links a {
  font-weight:700;
  font-size:13px
}
.links a:hover,.links a.active {
  color:var(--blue)
}
.nav-cta {
  white-space:nowrap
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--blue);
  color:#fff;
  padding:15px 23px;
  border-radius:5px;
  font-weight:800;
  line-height:1.2;
  transition:.2s;
  box-shadow:0 8px 24px #1111110d
}
.btn:hover {
  transform:translateY(-2px);
  filter:brightness(.97)
}
.btn.red {
  background:var(--red);
  color:white
}
.btn.outline {
  background:white;
  border:1px solid #c9d6df;
  color:var(--navy)
}
.menu-toggle {
  display:none;
  background:none;
  border:0;
  font-size:27px;
  color:var(--navy);
  cursor:pointer
}
.eyebrow {
  font-size:12px;
  letter-spacing:.15em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--blue);
  display:block;
  margin-bottom:16px
}
.accent {
  color:var(--red)
}
.hero {
  background:linear-gradient(100deg,#eef6fb 0%,#fff 47%,#e4eef4 100%);
  overflow:hidden
}
.hero-grid {
  display:grid;
  grid-template-columns:52% 48%;
  min-height:570px;
  align-items:center
}
.hero-copy {
  padding:72px 42px 72px 0;
  position:relative;
  z-index:2
}
.hero-copy p {
  font-size:18px;
  line-height:1.6;
  max-width:510px;
  color:#35485b
}
.hero-actions {
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  margin:29px 0
}
.hero-img {
  height:100%;
  min-height:570px;
  background:linear-gradient(100deg,#ffffff1c,#052d4b17),url('assets/images/manutenzione-caldaia.jpeg') center/cover no-repeat;
  position:relative
}
.hero-img:before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#eef6fb 0%,transparent 28%)
}
.features {
  display:flex;
  flex-wrap:wrap;
  gap:21px;
  margin-top:32px
}
.feature {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  max-width:162px
}
.feature-icon {
  background:var(--navy);
  color:white;
  width:37px;
  height:37px;
  border-radius:100%;
  display:grid;
  place-items:center;
  flex-shrink:0;
  font-size:17px
}
.section {
  padding:96px 0
}
.section.light {
  background:var(--light)
}
.section-head {
  text-align:center;
  max-width:740px;
  margin:0 auto 43px
}
.section-head p {
  color:var(--muted);
  font-size:17px
}
.cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:23px
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 9px 25px #0a26430b;
  display:flex;
  flex-direction:column
}
.card img {
  width:100%;
  height:215px;
  object-fit:cover
}
.card-body {
  padding:25px 25px 28px;
  flex:1;
  display:flex;
  flex-direction:column
}
.card-body h3 {
  margin-bottom:12px
}
.card-body p {
  font-size:14px;
  color:var(--muted);
  flex:1
}
.text-link {
  color:#006ba2;
  font-weight:800;
  font-size:14px
}
.text-link:hover {
  text-decoration:underline
}
.split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:65px;
  align-items:center
}
.split-photo {
  width:100%;
  height:435px;
  object-fit:cover;
  border-radius:9px
}
.copy p {
  color:#536578
}
.page-hero {
  background:linear-gradient(110deg,#e9f3fa,#fff);
  padding:86px 0 78px;
  border-bottom:1px solid var(--line)
}
.page-hero h1 {
  font-size:clamp(2.8rem,4.4vw,4.5rem);
  max-width:820px
}
.page-hero p {
  max-width:660px;
  font-size:18px;
  color:#536578
}
.breadcrumb {
  font-size:13px;
  color:#587589;
  margin-bottom:18px
}
.breadcrumb a {
  text-decoration:underline
}
.services-rows {
  display:grid;
  gap:35px
}
.service-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding-bottom:35px
}
.service-row:nth-child(even) img {
  order:2
}
.service-row img {
  height:350px;
  width:100%;
  object-fit:cover;
  border-radius:8px
}
.service-row p {
  color:var(--muted)
}
.ticks {
  list-style:none;
  margin:22px 0 29px;
  padding:0
}
.ticks li {
  padding:9px 0 9px 28px;
  position:relative;
  border-bottom:1px solid var(--line)
}
.ticks li:before {
  content:'✓';
  position:absolute;
  left:0;
  color:#1680a8;
  font-weight:800
}
.cta-strip {
  background:var(--navy);
  color:#fff;
  padding:56px 0
}
.cta-grid {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px
}
.cta-grid h2 {
  font-size:clamp(1.65rem,2.9vw,2.55rem);
  margin-bottom:8px
}
.cta-grid p {
  color:#c8d9e5;
  margin:0
}
.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:65px
}
.contact-option {
  display:flex;
  align-items:start;
  gap:18px;
  border-bottom:1px solid var(--line);
  padding:23px 0
}
.contact-option .round {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  background:var(--blue);
  color:white;
  border-radius:50%;
  flex-shrink:0;
  font-size:22px
}
.contact-option small {
  display:block;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.13em;
  color:var(--muted);
  font-weight:800
}
.contact-option strong {
  font-size:19px;
  color:var(--navy);
  overflow-wrap:anywhere
}
.contact-panel {
  background:#f1f6fa;
  border-radius:10px;
  padding:35px
}
.contact-panel h3 {
  font-size:1.7rem
}
.contact-panel p {
  color:var(--muted)
}
.map {
  border:0;
  width:100%;
  height:350px;
  border-radius:9px;
  background:#ebeff2
}
.footer {
  background:#0b2f47;
  color:#fff;
  padding:55px 0 22px
}
.footer-grid {
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:40px
}
.footer .logo {
  background:#fff;
  border-radius:5px;
  padding:6px;
  width:255px
}
.footer p,.footer a {
  color:#d1e1e9;
  font-size:14px
}
.footer a:hover {
  color:var(--red)
}
.footer h4 {
  font-size:15px;
  letter-spacing:0;
  margin:5px 0 16px
}
.footer-links {
  display:grid;
  gap:7px
}
.footer-bottom {
  border-top:1px solid #315067;
  margin-top:36px;
  padding-top:18px;
  color:#b1c5d2;
  font-size:12px
}
.small-note {
  font-size:12px;
  color:var(--muted)
}
.photo-credit {
  font-size:11px;
  color:#6b7c85
}
.photo-credit a {
  text-decoration:underline
}
.brand-bar {
  height:5px;
  background:linear-gradient(90deg,var(--blue) 0%,var(--blue) 70%,var(--red) 70%,var(--red) 100%)
}

@media(max-width:950px) {
  .logo {
    width:230px
  }
  .links {
    gap:14px
  }
  .nav-cta {
    display:none
  }
  .hero-grid {
    grid-template-columns:55% 45%
  }
  .hero-copy {
    padding:55px 12px 55px 0
  }
  .cards {
    gap:14px
  }
  .split {
    gap:30px
  }
}

@media(max-width:720px) {
  .top-inner {
    min-height:42px
  }
  .top-inner span:last-child {
    display:none
  }
  .nav {
    min-height:78px
  }
  .logo {
    width:215px;
    max-height:65px
  }
  .menu-toggle {
    display:block
  }
  .links {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    padding:22px;
    flex-direction:column;
    align-items:stretch;
    box-shadow:0 15px 25px #132c3b21
  }
  .links.open {
    display:flex
  }
  .hero-grid {
    grid-template-columns:1fr
  }
  .hero-copy {
    padding:52px 0 40px
  }
  .hero-img {
    min-height:290px;
    order:-1
  }
  .hero-img:before {
    display:none
  }
  h1 {
    font-size:3rem
  }
  .features {
    gap:15px
  }
  .section {
    padding:65px 0
  }
  .cards,.split,.service-row,.contact-grid,.footer-grid {
    grid-template-columns:1fr
  }
  .service-row:nth-child(even) img {
    order:0
  }
  .service-row img {
    height:255px
  }
  .split-photo {
    height:290px
  }
  .cta-grid {
    flex-direction:column;
    align-items:flex-start
  }
  .footer-grid {
    gap:27px
  }
  .page-hero {
    padding:60px 0
  }
  .contact-panel {
    padding:25px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto;
    transition:none!important
  }
}
.email-placeholder {
  cursor:default;
  opacity:.85
}

/* -------------------------------
Galleria fotografica
------------------------------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.photo-gallery figcaption {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
}

/* -------------------------------
Ottimizzazione per tablet e smartphone
------------------------------- */

@media (max-width: 950px) {
  .photo-gallery {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1160px);
  }
  .top-inner {
    justify-content: center;
    text-align: center;
  }
  .nav {
    gap: 12px;
  }
  .logo {
    width: min(215px, 65vw);
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
  }
  .links a:not(.btn) {
    padding: 12px 8px;
  }
  .hero-copy {
    padding: 42px 0 30px;
  }
  .hero-img {
    min-height: 245px;
    background-position: center 48%;
  }
  h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    overflow-wrap: break-word;
  }
  h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .hero-actions .btn {
    min-height: 48px;
  }
  .features {
    gap: 12px;
  }
  .card img {
    width: 100%;
    object-fit: cover;
  }
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  .photo-gallery img {
    height: 230px;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .logo {
    width: min(185px, 60vw);
  }
}
