:root {
  /* Brand Colors */
  --color-primary: #1d6ff0;
  --color-dark-blue: #154a7a;
  --color-deep-navy: #0b2943;
  --color-bg-light: #eaf1f7;
  --color-text-body: #3d3d3d;
  --text-white: #ffffff;

  /* Typography */
  --font-main: "Open Sans", sans-serif;
  --font-heading: "GrundfosTheSans", sans-serif;

  --weight-black: 900;
  --weight-bold: 700;
  --weight-normal: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

* {
  font-synthesis: none; /* prevents fake bold/italic */
}

a {
  text-decoration: none;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--font-main);
}

html,
body {
  overflow-x: hidden;
}

a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.site-header {
  background: var(--color-deep-navy);
  color: var(--text-white);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.branding {
  display: flex;
  align-items: center;
  gap: 30px;
}

img.second-logo {
  max-width: 130px !important;
  height: auto !important;
}

.branding img {
  max-width: 188px;
  height: auto;
}

.branding a {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 55px;
  margin: 0;
  padding: 0;
}

.nav-list li.current-menu-item {
  border-bottom: 5px solid var(--color-primary);
}

.nav-list li.current-menu-item a {
  font-weight: bold;
}

.nav-list li {
  padding: 40px 0;
}

.nav-list a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 60px;
}

.social-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
}

.social-links a img {
  display: block;
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-links img {
  width: 20px;
}

.search-btn {
  background: var(--color-primary);
  border: none;
  border-radius: 17px;
  width: 46px;
  height: 33px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 41, 67, 0.95);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.close-search {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

/* Search form container */
.search-form {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 60px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form:focus-within {
  border-color: #0073aa;
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.25);
}

/* Label wrapper */
.search-form label {
  flex: 1;
}

/* Search input */
.search-field {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 999px;
  background: transparent;
  color: #333;
}

.search-field::placeholder {
  color: #999;
}

/* Submit button */
.search-submit {
  border: none;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.search-submit:hover {
  background: var(--color-dark-blue);
}

.search-submit:active {
  transform: scale(0.96);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-content {
  max-width: 100%;
  width: 50%;
}

/*Start Footer*/
.site-footer {
  background-color: var(--color-deep-navy);
  color: var(--text-white);
  padding: 60px 0 30px;
  font-family: var(--font-main);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-branding img,
.footer-branding .custom-logo {
  height: 35px;
  width: auto;
}

/* Footer Menu */
.footer-nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 25px;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials img {
  width: 20px;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

/* Description Repeater Styles */
.footer-description-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  font-size: 13px;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.7);
}

.description-column p {
  margin: 0 0 5px;
}

/* Bottom Row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.policy-links a {
  color: var(--text-white);
  text-decoration: none;
  margin-right: 20px;
  opacity: 0.8;
  font-size: 12px;
  line-height: 22px;
}

.description-column {
  font-size: 13px;
  line-height: 23px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #ffffff;
  line-height: 20px;
}

.powered-by img {
  height: 25px;
}
/* End Footer */

/* Start Homepage */
.homepage-content {
  background-color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.heading-main {
  color: var(--color-dark-blue);
  font-family: "GrundfosTheSans", sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 40px;
  z-index: 1;
  position: relative;
  margin: 0;
}

.text-standard {
  color: var(--color-deep-navy);
  font-size: 20px;
  line-height: 27px;
  font-family: var(--font-main);
  font-weight: 800;
  transition: 0.1s ease-in-out;
}

.grid-layout a:hover .text-standard {
  color: var(--color-primary);
}

.text-standard-desc {
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 23px;
  z-index: 2;
  position: relative;
}

section.sectors-section .heading-main {
  color: var(--color-deep-navy);
  margin-bottom: 20px;
}

section.sectors-section .grid-4 a {
  overflow: hidden;
}

section.sectors-section .grid-4 a img {
  transition: 0.3s ease-in-out;
}

section.sectors-section .grid-4 a:hover img {
  transform: scale(1.05);
}

.center {
  text-align: center;
}

/* Standard Button */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 40px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.btn-primary:hover {
  background-color: var(--color-dark-blue);
}

/* Category Label */
.cat-label {
  display: inline-block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 15px;
  background: rgb(20 41 67 / 50%);
  opacity: 1;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.grid-layout .card-img span.cat-label {
  position: absolute;
  top: auto;
  bottom: 10px;
  font-size: 12px;
  line-height: 16px;
  left: 10px;
  border-radius: 0;
  padding: 4px 15px;
}

.grid-layout .card-img {
  position: relative;
  overflow: hidden;
}

.grid-layout .card-img img {
  transition: 0.3s ease-in-out;
}

.grid-layout a:hover img {
  transform: scale(1.05);
}

.grid-layout .card-img span.cat-label {
  z-index: 1;
}

.heading-main-padding {
  padding: 20px 0;
  margin: 0;
}

.image-effect {
  position: relative;
  overflow: hidden;
}

.image-effect img {
  transition: 0.3s ease-in-out;
}

.image-effect img:hover {
  transform: scale(1.05);
}
/* --- SECTION 1: HERO POST --- */
.hero-post .hero-flex {
  display: flex;
  align-items: center;
  padding: 50px 0;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.hero-post .hero-flex .heading-main {
  padding: 20px 0;
}

.hero-text {
  flex: 0 0 30%;
  width: 30%;
  z-index: 1;
}

.hero-image {
  flex: 0 0 65%;
  width: 65%;
  line-height: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 470px;
  transition: 0.3s ease-in-out;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* --- SECTION 2, 6, 8: POST GRIDS --- */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.card-img {
  margin-bottom: 15px;
  line-height: 0;
}

.card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.grid-layout a {
  text-decoration: none;
}

.sectors-section {
  position: relative;
}

section.sectors-section a.sector-card:hover .text-standard {
  color: var(--color-primary);
}

section.sectors-section,
section.piscine-mid {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

section.sectors-section .text-standard {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-main);
}

section.sectors-section:after {
  background-color: #f8f8fc;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 1;
  box-sizing: border-box;
  content: "";
  background-size: 100%;
  background-position: bottom center;
}

section.most-read-section .heading-main {
  padding: 15px 0;
}

section.piscine-mid:after {
  background-color: #f8f8fc;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 1;
  box-sizing: border-box;
  content: "";
  background-size: 100%;
  background-position: bottom center;
}

section.piscine-mid .split-row.reverse {
  z-index: 2;
  position: relative;
}

section.sectors-section .sector-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

section.sectors-section .sector-card .sector-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

section.sectors-section .sector-card .sector-footer .arrow-link {
  border: 1px solid #1d6ff0;
  border-radius: 17px;
  width: 46px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.sectors-section .sector-card:hover .sector-footer .arrow-link {
  background: #1d6ff0;
}

section.sectors-section .sector-card:hover .sector-footer .arrow-link svg {
  color: white;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 40px;
  z-index: 1;
  position: relative;
}

.sector-card {
  overflow: hidden;
}

.sector-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sector-footer h3 {
  margin: 0;
  font-size: 14px;
}

.arrow-link {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.sectors-section a.sector-card:hover .arrow-link {
  transform: translateX(5px);
}

/* --- SECTION 4, 5, 9: SPLIT SECTIONS --- */
.split-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

section.most-read-section .heading-main {
  padding: 15px 0;
}

.split-row.reverse {
  flex-direction: row-reverse;
}

.split-img,
.split-text {
  flex: 1;
}

.split-img img {
  width: 100%;
  height: auto;
}

/* --- SECTION 7: INFOGRAPHICS (ACF) --- */
.infographics-section {
  background-color: #f5e1d5;
  padding: 60px 0;
}

section.infographics-section .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
  margin-top: 50px;
}

section.infographics-section .heading-main {
  color: var(--color-deep-navy);
}

.info-item {
  text-align: center;
}

.info-item img {
  height: 62px;
  width: 62px;
  margin-bottom: 20px;
}

.info-val {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 42px;
  color: var(--color-dark-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.info-sub {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-dark-blue);
  margin-bottom: 10px;
}

.info-item .small {
  font-size: 15px;
  color: var(--color-deep-navy);
}

.last-section {
  background: #e7f1e8;
  padding: 60px 0;
}

/* Newsletter */
.newsletter-section {
  padding: 20px 0 50px 0;
}

.newsletter-content {
  margin: 0 auto;
  text-align: center;
}

.newsletter-subtitle {
  margin-bottom: 40px;
  color: var(--color-text-body);
  font-size: 14px;
}

.newsletter-form-wrapper .newsletter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.newsletter-form-wrapper .row {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.name-field,
.email-field {
  flex: 1;
}

.newsletter-form-wrapper input[type="text"],
.newsletter-form-wrapper input[type="email"] {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #66717b;
  border-radius: 4px;
  font-family: var(--font-main);
  box-sizing: border-box;
}

.newsletter-form-wrapper input[type="text"]::placeholder,
.newsletter-form-wrapper input[type="email"]::placeholder {
  font-size: 16px;
  color: var(--color-deep-navy);
}

.autorizzazione > p,
.comunicazione > p {
  margin: 0;
}

.autorizzazione,
.comunicazione {
  flex: 1;
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.newsletter-form-wrapper .wpcf7-list-item {
  margin: 0;
}

.acceptance-grunfos {
  display: flex;
  flex-direction: column;
}

.acceptance-grunfos .big {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  color: #414141;
  display: block;
}

.acceptance-grunfos .small {
  font-size: 14px;
  line-height: 1.4;
  color: #414141;
  margin-top: 5px;
}

.acceptance-grunfos a {
  color: #666;
  text-decoration: underline;
}

.newsletter-form-wrapper input[type="submit"] {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0 90px;
  height: 54px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter-form-wrapper input[type="submit"]:hover {
  background: var(--color-dark-blue);
}

.newsletter-form-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid #cdd9e5;
}

.newsletter-form-wrapper .row:last-child {
  margin-top: 20px;
  justify-content: center;
}

/* Breadcrumb */

.archive-breadcrumb {
  background-repeat: no-repeat;
  height: 180px;
  display: flex;
  align-items: center;
}

.archive-breadcrumb nav.breadcrumb-nav span.homeurl svg {
  width: 20px;
  height: 20px;
}

.archive-breadcrumb nav.breadcrumb-nav span.slash svg {
  width: 12px;
  height: 12px;
}

.archive-breadcrumb span {
  font-weight: 800;
  color: var(--color-dark-blue);
}

.archive-breadcrumb nav.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-breadcrumb nav.breadcrumb-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-breadcrumb nav.breadcrumb-nav span.homeurl {
  display: flex;
  align-items: center;
}

.archive-breadcrumb .heading-main {
  color: var(--color-primary);
  font-size: 50px;
  line-height: 65px;
}

.archive.category .hero-flex:after {
  display: none;
}

.archive-breadcrumb .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive.category .hero-flex {
  padding: 0;
}

.archive.category section {
  margin-bottom: 50px;
}

.archive.category .newsletter-section {
  padding-bottom: 0;
}

.load-more-wrapper button#load-more-btn {
  border: 0;
}

.page-template-page-piu-letti .newsletter-section {
  padding-top: 50px;
}

.i-piu-letti .hero-flex:after {
  display: none;
}

.page-template-page-piu-letti section.newsletter-section {
  margin-top: 50px;
}

.related-posts .slick-slide {
  margin: 0 10px;
}

.related-posts .slick-list {
  margin: 0 -10px;
}

section.infographics-section .grid-3 .slick-slide {
  margin: 0 10px;
}

section.infographics-section .grid-3 .slick-list {
  margin: 0 -10px;
}

.newsletter-content .heading-main.center {
  width: 100%;
  color: #0c2943;
}

.home .newsletter-section {
  padding-top: 70px;
}

section.sectors-section .text-standard {
  margin: 0;
}

.post-card .text-standard-desc {
  margin-top: 10px;
}

.page-template-page-piu-letti section.piscine-mid:after {
  background: #f7eddc;
}

.page-template-page-piu-letti section.piscine-mid {
  margin-top: 50px;
  margin-bottom: 50px;
}

.category-trattamento-acqua section.piscine-mid:after {
  background-color: #e7f1e8;
}

section.most-read-section .text-standard {
  padding: 20px 0;
}

/* --- RESPONSIVE MOBILE VIEW --- */
@media (max-width: 768px) {
  .newsletter-form-wrapper .row {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter-form-wrapper input[type="submit"] {
    width: 100%;
  }

  .archive-breadcrumb {
    height: 140px;
  }

  .load-more-wrapper button#load-more-btn {
    margin-top: 0;
  }

  .related-posts .slick-list {
    overflow: visible;
  }

  section.infographics-section .grid-3 {
    display: block !important;
  }

  section.infographics-section .grid-3 .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
/* End Newsletter */

@media (min-width: 600px) and (max-width: 1024px) {
  section.sectors-section .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sectors-section a.sector-card:hover .arrow-link {
    transform: none !important;
  }
}

@media (min-width: 1025px) and (max-width: 1140px) {
  .hero-post .hero-flex {
    gap: 30px;
  }
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
  .grid-layout,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-flex,
  .split-row,
  .split-row.reverse {
    flex-direction: column;
  }
  .hero-text,
  .hero-image,
  .split-img,
  .split-text {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .grid-layout,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-text {
    padding: 30px;
  }
}

.hero-flex:after {
  background-image: url(/wp-content/uploads/2026/01/Gruppo-di-maschere-1@2x-scaled.jpg);
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 1;
  box-sizing: border-box;
  content: "";
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.hero-flex {
  position: relative;
}
/* End Homepage */
