@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --db-ink: #17191c;
  --db-ink-2: #24272b;
  --db-yellow: #ffed00;
  --db-paper: #f4f4f0;
  --db-white: #ffffff;
  --db-muted: #6f7276;
  --db-line: #d8d9d5;
  --db-max: 1240px;
  --db-pad: clamp(22px, 4vw, 48px);
  --cassiopeia-font-family-body: 'Manrope', Arial, sans-serif;
  --cassiopeia-font-family-headings: 'Oswald', Impact, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body.site {
  overflow-x: hidden;
  background: var(--db-paper) !important;
  color: var(--db-ink) !important;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body.site h1,
body.site h2,
body.site h3,
body.site h4 {
  color: var(--db-ink);
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-shadow: none;
}

body.site a {
  color: inherit;
}

body.site a:focus-visible,
body.site button:focus-visible,
body.site input:focus-visible,
body.site select:focus-visible {
  outline: 3px solid var(--db-yellow);
  outline-offset: 4px;
}

/* Il menu conserva il layout e il comportamento nativi di Galatea Power. */
.gp-header-icon--cart {
  position: relative;
}

.gp-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--gp-social-color) !important;
}

.gp-cart-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor !important;
}

.gp-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--db-yellow);
  color: var(--db-ink) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.gp-cart-badge:empty {
  display: none;
}

/* Area contenuti */
.site-grid {
  display: block !important;
  max-width: 100% !important;
  gap: 0 !important;
}

.grid-child.container-component {
  width: min(var(--db-max), calc(100% - (var(--db-pad) * 2)));
  max-width: var(--db-max);
  margin: 0 auto;
  padding: 46px 0 76px;
}

body.itemid-435 .grid-child.container-component {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.itemid-435 .item-page,
body.itemid-435 .com-content-article,
body.itemid-435 .com-content-article__body {
  overflow: visible;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.itemid-435 .page-header,
body.itemid-435 .article-info,
body.itemid-435 .icons {
  display: none !important;
}

.db-home {
  background: var(--db-paper);
}

.db-shell {
  width: min(var(--db-max), calc(100% - (var(--db-pad) * 2)));
  margin-inline: auto;
}

.db-eyebrow {
  margin: 0 0 16px;
  color: var(--db-muted) !important;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.db-eyebrow--light {
  color: rgba(255, 255, 255, .66) !important;
}

.db-section-title {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem) !important;
  text-transform: uppercase;
}

.db-section-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #575b60 !important;
  font-size: 1.08rem;
}

/* Hero */
.db-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: var(--db-ink);
  color: #fff;
}

.db-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(58px, 7vw, 106px) clamp(34px, 6vw, 95px) clamp(54px, 6vw, 88px) max(var(--db-pad), calc((100vw - var(--db-max)) / 2));
}

.db-hero__copy::before {
  content: '25';
  position: absolute;
  top: 18px;
  right: 3vw;
  color: rgba(255, 255, 255, .04);
  font: 700 clamp(11rem, 22vw, 22rem)/1 'Oswald', sans-serif;
  pointer-events: none;
}

.db-hero__title {
  position: relative;
  max-width: 650px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(3.5rem, 7.1vw, 7.3rem) !important;
  line-height: .92 !important;
  letter-spacing: -.045em !important;
  text-transform: uppercase;
}

.db-hero__title em {
  display: block;
  color: var(--db-yellow);
  font-style: normal;
}

.db-hero__lead {
  position: relative;
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .74) !important;
  font-size: 1.08rem;
}

.db-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.db-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 23px;
  border: 1px solid var(--db-ink);
  background: var(--db-ink);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.db-button:hover {
  transform: translateY(-2px);
  background: #35383d;
}

.db-button--yellow {
  border-color: var(--db-yellow);
  background: var(--db-yellow);
  color: var(--db-ink) !important;
}

.db-button--yellow:hover {
  background: #fff45d;
}

.db-button--ghost {
  border-color: rgba(255, 255, 255, .35);
  background: transparent;
}

.db-button--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--db-ink) !important;
}

.db-hero__media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.db-hero__media::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, var(--db-ink) 0%, transparent 28%), linear-gradient(0deg, rgba(0, 0, 0, .38), transparent 55%);
}

.db-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.08);
  transform: scale(1.025);
}

.db-hero__stamp {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(410px, 78%);
  padding: 22px 26px;
  background: var(--db-yellow);
  color: var(--db-ink);
}

.db-hero__stamp strong,
.db-hero__stamp span {
  display: block;
}

.db-hero__stamp strong {
  font: 600 1.35rem/1.1 'Oswald', sans-serif;
  text-transform: uppercase;
}

.db-hero__stamp span {
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 700;
}

/* Credenziali e vantaggi */
.db-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--db-line);
}

.db-proof__item {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 26px 34px;
  border-right: 1px solid var(--db-line);
}

.db-proof__item:last-child {
  border-right: 0;
}

.db-proof__no {
  color: var(--db-yellow);
  -webkit-text-stroke: 1px var(--db-ink);
  font: 700 2.3rem/1 'Oswald', sans-serif;
}

.db-proof__item strong,
.db-proof__item span {
  display: block;
}

.db-proof__item strong {
  font-size: .94rem;
}

.db-proof__item span {
  color: var(--db-muted);
  font-size: .78rem;
}

/* Sezioni */
.db-section {
  padding-block: clamp(70px, 9vw, 120px);
}

.db-section--tight {
  padding-block: clamp(54px, 7vw, 88px);
}

.db-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}

.db-text-link {
  flex: none;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--db-ink);
  color: var(--db-ink) !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.db-text-link:hover {
  border-color: var(--db-yellow);
}

/* Vetrina prodotti */
.db-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.db-product {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--db-white);
  border: 1px solid var(--db-line);
  transition: transform .24s ease, box-shadow .24s ease;
}

.db-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(23, 25, 28, .12);
}

.db-product__media {
  position: relative;
  aspect-ratio: 1 / .82;
  overflow: hidden;
  background: #fff;
}

.db-product__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 26px;
  transition: transform .35s ease;
}

.db-product:hover .db-product__media img {
  transform: scale(1.045);
}

.db-product__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 10px;
  background: var(--db-yellow);
  color: var(--db-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.db-product__body {
  min-height: 260px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
  border-top: 1px solid var(--db-line);
}

.db-product__category {
  margin: 0 0 9px;
  color: var(--db-muted) !important;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.db-product h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem) !important;
  text-transform: uppercase;
}

.db-product__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 24px;
}

.db-price {
  font: 600 1.65rem/1 'Oswald', sans-serif;
}

.db-price del {
  display: block;
  margin-bottom: 5px;
  color: #888;
  font: 500 .82rem/1 'Manrope', sans-serif;
}

.db-product__link {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--db-ink);
  color: #fff !important;
  font-size: 1.15rem;
  text-decoration: none !important;
}

.db-product__link:hover {
  background: var(--db-yellow);
  color: var(--db-ink) !important;
}

.db-demo-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  color: #62666a;
  font-size: .82rem;
}

.db-demo-note::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--db-yellow);
  border: 1px solid var(--db-ink);
  border-radius: 50%;
}

/* Servizi */
.db-dark-section {
  background: var(--db-ink);
  color: #fff;
}

.db-dark-section .db-section-title {
  color: #fff !important;
}

.db-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.db-service {
  min-height: 290px;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.db-service:first-child {
  padding-left: 0;
}

.db-service:last-child {
  border-right: 0;
}

.db-service__no {
  color: var(--db-yellow);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.db-service h3 {
  margin: 70px 0 17px;
  color: #fff !important;
  font-size: 2rem !important;
  text-transform: uppercase;
}

.db-service p {
  color: rgba(255, 255, 255, .65) !important;
  font-size: .92rem;
}

/* Storia e contatto */
.db-story {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(45px, 8vw, 112px);
  align-items: start;
}

.db-story__year {
  display: block;
  color: var(--db-yellow);
  -webkit-text-stroke: 2px var(--db-ink);
  font: 700 clamp(7rem, 14vw, 13rem)/.8 'Oswald', sans-serif;
  letter-spacing: -.07em;
}

.db-story h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem) !important;
  text-transform: uppercase;
}

.db-story__lead {
  margin: 25px 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
}

.db-contact {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: center;
  padding: clamp(38px, 6vw, 72px);
  background: var(--db-yellow);
}

.db-contact h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem) !important;
  text-transform: uppercase;
}

.db-contact p {
  margin: 16px 0 0;
}

.db-contact__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.db-contact__actions .db-button {
  width: 100%;
}

/* Footer */
.container-footer {
  margin: 0 !important;
  padding: 70px var(--db-pad) 26px !important;
  background: #101113 !important;
  color: #d9d9d5 !important;
  border: 0 !important;
}

.container-footer > .grid-child {
  width: min(var(--db-max), 100%);
  max-width: var(--db-max);
  display: block !important;
  margin-inline: auto;
  padding: 0 !important;
}

.container-footer .moduletable,
.container-footer .module,
.container-footer .card,
.container-footer .card-body {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.db-footer {
  display: grid;
  grid-template-columns: 1.15fr .9fr .8fr;
  gap: 55px;
}

.db-footer img {
  width: 190px;
  height: auto;
  filter: none;
}

.db-footer h3 {
  margin: 0 0 20px;
  color: #fff !important;
  font: 700 .78rem/1.3 'Manrope', sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.db-footer p,
.db-footer a {
  color: #a8aaa8 !important;
  font-size: .88rem;
}

.db-footer a {
  display: block;
  margin-bottom: 8px;
}

.db-footer a:hover {
  color: var(--db-yellow) !important;
}

.db-footer__brand p {
  max-width: 350px;
  margin: 20px 0 0;
}

.db-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #767976;
  font-size: .74rem;
}

/* Phoca Cart: il catalogo resta parte dello stesso sistema visivo. */
.com-phocacart .page-header h1,
.com-phocacart h1,
.com-phocacart h2,
.com-phocacart h3,
[class*='phocacart'] h1,
[class*='phocacart'] h2,
[class*='phocacart'] h3 {
  font-family: 'Oswald', Impact, sans-serif !important;
  text-transform: uppercase;
}

.com-phocacart .btn,
[class*='phocacart'] .btn,
.ph-button-add-to-cart,
.ph-btn {
  min-height: 44px;
  border: 1px solid var(--db-ink) !important;
  border-radius: 0 !important;
  background: var(--db-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 800;
  text-transform: uppercase;
}

.com-phocacart .btn:hover,
[class*='phocacart'] .btn:hover,
.ph-button-add-to-cart:hover,
.ph-btn:hover {
  border-color: var(--db-yellow) !important;
  background: var(--db-yellow) !important;
  color: var(--db-ink) !important;
}

.ph-item-box,
.ph-item-content,
.ph-category-box,
.ph-category-content,
.ph-cart-box,
[class*='ph-item-box'] {
  border: 1px solid var(--db-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ph-price,
.ph-price-txt,
.ph-standard-price,
[class*='ph-price'] {
  color: var(--db-ink) !important;
  font-weight: 800;
}

/* Checkout essenziale: un solo indirizzo finché il cliente non ne richiede un secondo */
#phCheckoutAddress .ph-checkout-billing-row {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 760px !important;
}

#phCheckoutAddress.db-same-address .ph-checkout-shipping-row {
  display: none !important;
}

#phCheckoutAddress .ph-checkout-check-box {
  float: none !important;
  margin: 8px 0 20px;
  text-align: left;
}

#phCheckoutAddress .ph-checkout-check-box label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--db-line);
  background: #f7f7f5;
  color: var(--db-ink);
  font-weight: 700;
  cursor: pointer;
}

#phCheckoutAddress .ph-checkout-check-box input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--db-yellow);
}

#phCheckoutAddress .ph-checkout-address-save {
  float: none !important;
  text-align: left;
}

/* Reveal leggero */
.db-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.db-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .db-hero {
    grid-template-columns: 1fr 1fr;
  }

  .db-hero__copy {
    padding-right: 35px;
  }

  .db-hero__title {
    font-size: clamp(3.5rem, 8vw, 5.4rem) !important;
  }

  .db-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .db-product:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }

  .db-service {
    padding: 27px;
  }

  .db-story {
    grid-template-columns: .6fr 1.4fr;
    gap: 45px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 78px;
  }

  .db-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .db-hero__copy {
    min-height: 480px;
    padding: 60px var(--db-pad) 54px;
  }

  .db-hero__copy::before {
    top: 35px;
    font-size: 13rem;
  }

  .db-hero__title {
    font-size: clamp(3.35rem, 16vw, 5.1rem) !important;
  }

  .db-hero__media,
  .db-hero__media img {
    min-height: 350px;
    height: 350px;
  }

  .db-hero__media::before {
    background: linear-gradient(180deg, var(--db-ink), transparent 24%), linear-gradient(0deg, rgba(0, 0, 0, .4), transparent 60%);
  }

  .db-proof {
    grid-template-columns: 1fr;
  }

  .db-proof__item {
    min-height: 92px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--db-line);
  }

  .db-heading-row {
    display: block;
  }

  .db-heading-row .db-text-link {
    display: inline-block;
    margin-top: 25px;
  }

  .db-products,
  .db-services,
  .db-story,
  .db-contact,
  .db-footer {
    grid-template-columns: 1fr;
  }

  .db-product:last-child {
    grid-column: auto;
    width: auto;
  }

  .db-service,
  .db-service:first-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .db-service:last-child {
    border-bottom: 0;
  }

  .db-service h3 {
    margin-top: 25px;
  }

  .db-story {
    gap: 40px;
  }

  .db-story__year {
    font-size: 8rem;
  }

  .db-contact {
    gap: 30px;
  }

  .db-footer {
    gap: 36px;
  }

  .db-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .db-reveal {
    opacity: 1;
    transform: none;
  }
}
