/* SlideSense — personalizzazioni del tema.
* Caricare dopo site.css e prima di components.css.
* Le regole responsive si trovano accanto alla rispettiva sezione.
*/

/* 1. Parametri modificabili */
:root {
  --ss-summergest-color: #0ec4d4;
  --ss-summergest-copy-width: 65%;
  --ss-summergest-image-start: 55%;
  --ss-summergest-mobile-crop: 110px;
}

/* 2. Livelli della pagina ed elementi condivisi */
body {
  overflow-x: clip;
}

.wp-site-blocks {
  position: relative;
  z-index: 1;
  background: transparent;
}

.ss-solutions,
.ss-how,
.ss-dashboard,
.ss-display,
.ss-contact,
.ss-components {
  position: relative;
  z-index: 1;
  background: transparent;
}

.ss-section-heading {
  margin-bottom: 48px;
}

.ss-section-heading:after {
  content: '';
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ss-blue), var(--ss-aqua));
  margin: 23px auto 0;
}

.ss-section-heading p {
  line-height: 1.65;
  max-width: 950px;
  margin-inline: auto;
}

.ss-solutions .ss-section-heading,
.ss-how .ss-section-heading,
.ss-dashboard .ss-section-heading,
.ss-display .ss-section-heading {
  position: relative;
  z-index: 1;
}

.ss-solutions .ss-section-heading,
.ss-how .ss-section-heading,
.ss-dashboard .ss-section-heading,
.ss-display .ss-section-heading,
.ss-components .ss-components-heading,
.ss-contact-grid > div:first-child {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ss-button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 14px #0879ee14;
}

.ss-button:after {
  content: '';
  position: absolute;
  inset: -50% auto -50% -75%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #ffffff35, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.ss-card {
  background-color: #fff;
  border: 1px solid #e3effb;
  box-shadow: 0 8px 26px #1673c412;
  transition: opacity .65s ease, transform .65s ease, translate .3s ease, border-color .3s ease, box-shadow .3s ease;
}

@media (max-width: 700px) {
  .ss-section-heading {
    margin-bottom: 34px;
  }
  .ss-section-heading:after {
    margin-top: 20px;
  }
}

/* 3. Navbar e selettore lingua */
.ss-header {
  background: transparent;
}

.ss-nav-shell {
  flex-wrap: wrap;
  box-shadow: 0 8px 30px #0674de21;
  border: 1px solid #e8f3ff;
}

.ss-language-switcher {
  flex: 0 0 auto;
  position: relative;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid #d6eaff;
}

.ss-language-switcher img {
  max-width: none;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .ss-nav-shell > .ss-nav {
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 700px) {
  .ss-menu-label {
    display: none;
  }
  .ss-nav-shell {
    background: transparent;
    backdrop-filter: blur(8px);
  }
  .ss-language-switcher {
    align-self: flex-start;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 14px 9px 5px;
    border-left: 0;
    border-top: 1px solid #d6eaff;
  }
}

/* 4. Hero e onde introduttive */
.ss-hero {
  position: relative;
  isolation: isolate;
  width: min(1400px, calc(100% - 48px));
  min-height: 560px;
  margin: 34px auto 0;
  padding: 76px clamp(34px, 6vw, 92px) 82px;
  border-radius: 34px;
  overflow: visible;
}

.ss-hero:before {
  content: '';
  position: absolute;
  top: -240px;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  margin-left: -50vw;
  border-radius: 0;
  z-index: -1;
  pointer-events: none;
  background: url('images/hero-waves.png') right top / 100% 100% no-repeat;
  transform: none;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
}

.ss-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .045em;
}

.ss-eyebrow:before {
  content: '';
  width: 25px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--ss-aqua);
}

.ss-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.ss-hero h1 {
  font-size: clamp(52px, 6vw, 82px);
  letter-spacing: -.055em;
  margin-bottom: 18px;
}

.ss-hero-subtitle {
  max-width: 560px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.2;
}

.ss-hero-text {
  max-width: 520px;
  margin: 22px 0 42px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.ss-hero .ss-actions {
  gap: 14px;
}

.ss-hero-image {
  position: relative;
  z-index: 1;
  width: min(50%, 650px);
  max-height: 500px;
  padding: 18px;
  object-fit: contain;
  border-radius: 28px;
}

.ss-hero-carousel {
  position: relative;
  display: grid;
  width: min(50%, 650px);
  max-height: 500px;
  isolation: isolate;
}

.ss-hero-carousel:before {
  content: none;
}

.ss-hero-carousel .ss-hero-image {
  width: 100%;
  margin: 0;
}

.ss-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}

.ss-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1000px) {
  .ss-hero {
    min-height: 0;
    padding: 58px 42px 64px;
  }
  .ss-hero h1 {
    font-size: clamp(46px, 7vw, 68px);
  }
  .ss-hero-carousel {
    width: 47%;
    max-height: 460px;
  }
  .ss-hero-image {
    width: 100%;
    max-height: 460px;
    padding: 14px;
  }
}

@media (max-width: 700px) {
  .ss-hero {
    display: block;
    width: calc(100% - 28px);
    margin-top: 18px;
    padding: 42px 24px 30px;
    border-radius: 25px;
  }
  .ss-hero:before {
    top: 100px;
    bottom: auto;
    height: 90vw;
    background-size: 100% auto;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 80%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 80%);
  }
  .ss-eyebrow {
    gap: 8px;
    letter-spacing: 0;
  }
  .ss-eyebrow:before {
    width: 16px;
  }
  .ss-hero h1 {
    font-size: clamp(44px, 15vw, 62px);
    margin-bottom: 14px;
  }
  .ss-hero-subtitle {
    font-size: 27px;
  }
  .ss-hero-text {
    font-size: 16px;
    margin: 18px 0 28px;
  }
  .ss-hero-carousel {
    width: 100%;
    max-height: 360px;
    margin: 34px auto 0;
  }
  .ss-hero-image {
    display: block;
    width: 100%;
    max-height: 360px;
    padding: 14px;
    border-radius: 20px;
  }
  .ss-hero .ss-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ss-hero .ss-button {
    width: 100%;
  }
}

/* 5. Benefit */
.ss-benefits {
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.ss-benefits > .ss-wrap {
  width: min(1400px, calc(100% - 48px));
}

.ss-benefits .ss-grid-three {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ss-benefit,
.ss-benefit:first-child,
.ss-benefit:last-child {
  padding: 28px 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  position: relative;
  transition: opacity .65s ease, transform .65s ease, translate .3s ease, background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ss-benefit + .ss-benefit {
  border-left-color: transparent;
}

.ss-benefit + .ss-benefit:before {
  content: '';
  position: absolute;
  left: -7px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(transparent, #93ceff, transparent);
}

.ss-benefit-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.ss-benefit-heading svg {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  padding: 10px;
  background: #eff8ff;
  border: 1px solid #dcedff;
  border-radius: 17px;
  transition: transform .35s ease, background-color .35s ease, box-shadow .35s ease;
}

.ss-benefit-heading h2 {
  font-size: clamp(20px, 1.8vw, 25px);
  overflow-wrap: anywhere;
}

.ss-benefit p {
  margin-left: 0;
  font-size: 17px;
  line-height: 1.65;
  max-width: 370px;
}

@media (hover: hover) and (pointer: fine) {
  .ss-benefit:hover {
    background: #f3faff;
    border-color: #d7edff;
    box-shadow: 0 14px 30px #0879ee12;
    translate: 0 -7px;
  }
  .ss-benefit:hover svg {
    transform: rotate(-7deg) scale(1.08);
    background: #dff4ff;
    box-shadow: 0 5px 15px #0879ee13;
  }
}

@media (max-width: 1100px) {
  .ss-benefits .ss-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ss-benefit:nth-child(3):before {
    display: none;
  }
  .ss-benefit-heading {
    flex-direction: row;
    align-items: center;
  }
  .ss-benefit-heading h2 {
    font-size: 24px;
  }
}

@media (max-width: 1000px) {
  .ss-benefit-heading svg {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    padding: 7px;
  }
  .ss-benefit p {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .ss-benefits {
    padding: 12px 0;
    margin-bottom: 0;
  }
  .ss-benefits > .ss-wrap {
    width: calc(100% - 28px);
  }
  .ss-benefits .ss-grid-three {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ss-benefit + .ss-benefit {
    border-top: 1px solid #c8e4ff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .ss-benefit + .ss-benefit:before {
    display: none;
  }
  .ss-benefit-heading h2 {
    font-size: 23px;
  }
  .ss-benefit p {
    max-width: none;
  }
}

/* 6. Onde dopo i benefit: scorrono fino al bordo, poi restano ferme */
.ss-wave-backdrop {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  z-index: 0;
  isolation: isolate;
  pointer-events: none;
}

.ss-wave-backdrop:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('images/hero-waves.png') right top / 100% 100% no-repeat;
  transform: scaleX(-1);
  opacity: .58;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 66%, transparent 100%);
}

@media (max-width: 700px) {
  .ss-wave-backdrop:before {
    opacity: .5;
  }
}

/* 7. Soluzioni */
.ss-solutions {
  isolation: isolate;
  clip-path: none;
  padding-top: 76px;
  overflow: visible;
}

.ss-slide-image {
  transition: transform .45s ease;
}

.ss-details summary {
  padding-block: 4px;
  line-height: 1.5;
}

.ss-details summary span {
  transition: transform .25s ease;
  display: inline-block;
}

.ss-details[open] div {
  animation: ss-detail-in .3s ease both;
}

.ss-check-list li {
  margin-block: 3px;
}

@media (max-width: 700px) {
  .ss-solutions {
    padding-top: 52px;
  }
}

/* 8. Componenti: sezione trasparente e tabella bianca */
.ss-components .ss-components-panel {
  padding: 42px 48px;
  border: 1px solid #e0edfc;
  border-radius: 24px;
  background: #fff !important;
  box-shadow: 0 2px 12px #203c5905;
}

@media (max-width: 700px) {
  .ss-components .ss-components-panel {
    padding: 28px 18px;
    border-radius: 18px;
  }
}

/* 9. Come funziona */
.ss-steps {
  gap: 24px;
}

.ss-steps li {
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e5f0fb;
}

.ss-steps p {
  line-height: 1.65;
}

@media (max-width: 700px) {
  .ss-steps li {
    padding: 24px;
  }
}

/* 10. Display */
.ss-display-card {
  padding: 32px;
  border: 1px solid #d6eafa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 28px #1673c40b;
}

.ss-display-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #e2f7fc;
  color: #176280;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 24px;
}

.ss-display-card h3 {
  color: var(--ss-navy);
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.ss-display-card p {
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .ss-display-card {
    padding: 26px;
  }
}

/* 11. Web app */
.ss-dashboard figure {
  position: relative;
}

.ss-dashboard-image {
  box-shadow: 0 18px 55px #193f6712;
  border-color: #f0f7ff;
  transition: box-shadow .4s ease, translate .4s ease;
}

/* 12. SummerGest — --ss-image-ratio viene impostato dal JavaScript dell'immagine */
.ss-summergest {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 360px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: var(--ss-summergest-color);
  color: #fff;
  text-align: left;
  display: flex;
  align-items: stretch;
}

.ss-summergest-content {
  display: flex;
  align-items: center;
  min-height: 360px;
}

.ss-summergest-copy {
  width: var(--ss-summergest-copy-width);
  padding: 64px 48px 64px 0;
}

.ss-summergest h2 {
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  overflow-wrap: anywhere;
}

.ss-summergest-text {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
}

.ss-summergest-button {
  margin-top: 24px;
  border: none;
}

.ss-summergest-media {
  position: absolute;
  inset: 0 0 0 var(--ss-summergest-image-start);
  background: var(--ss-summergest-color);
  overflow: hidden;
}

.ss-summergest-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 700px) {
  .ss-summergest {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .ss-summergest-content {
    min-height: 0;
  }
  .ss-summergest-copy {
    width: 100%;
    padding: 44px 0;
  }
  .ss-summergest-text {
    font-size: 16px;
  }
  .ss-summergest-media {
    position: relative;
    inset: auto;
    width: 100vw;
    max-width: none;
    height: calc(100vw * var(--ss-image-ratio, 1) - var(--ss-summergest-mobile-crop));
    aspect-ratio: auto;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }
  .ss-summergest-image {
    position: absolute;
    top: calc(50vw * var(--ss-image-ratio, 1));
    left: 50%;
    width: calc(100vw * var(--ss-image-ratio, 1));
    height: auto;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* Keep the copy inside the media boundary; both widths use the section. */
@media (min-width: 701px) {
  .ss-summergest-content.ss-wrap {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .ss-summergest-copy {
    box-sizing: border-box;
    width: min(var(--ss-summergest-copy-width), var(--ss-summergest-image-start));
    min-width: 0;
    padding-left: max(44px, calc((100vw - var(--ss-width)) / 2));
    overflow-wrap: anywhere;
  }
  .ss-summergest-button {
    max-width: 100%;
    white-space: normal;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .ss-summergest-copy { padding-left: 24px; }
}
/* 13. Safety (blocco mantenuto per le pagine che lo utilizzano) */
.ss-safety {
  position: relative;
  overflow: hidden;
  background: #0ec4d4;
  color: #203c59;
  padding: 44px 0;
}

.ss-safety:before,
.ss-safety:after {
  content: '';
  position: absolute;
  border: 1px solid #8be1fe18;
  border-radius: 50%;
  width: 380px;
  height: 380px;
  pointer-events: none;
}

.ss-safety:before {
  left: -170px;
  top: -230px;
}

.ss-safety:after {
  right: -150px;
  bottom: -260px;
}

.ss-safety > .ss-wrap {
  position: relative;
  z-index: 1;
}

.ss-safety h2 {
  color: #203c59;
}

.ss-safety .ss-button-light {
  color: #203c59;
  border-color: #203c59;
  background: transparent;
}

.ss-safety .ss-button-light:hover {
  background: #dff6ff;
}

@media (max-width: 700px) {
  .ss-safety {
    padding: 36px 0;
  }
}

/* 14. Contatti e footer */
.ss-contact-image {
  transition: transform .6s ease;
  filter: drop-shadow(0 14px 18px #2caed014);
}

.ss-contact-email,
.ss-phone {
  width: fit-content;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s ease;
}

.ss-contact-email:hover,
.ss-phone:hover {
  color: var(--ss-blue);
}

.ss-footer {
  position: relative;
  z-index: 2;
  background: var(--ss-navy);
}

/* 15. Animazioni e preferenza di movimento ridotto */
@keyframes ss-detail-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ss-button-shine {
  to {
    left: 140%;
  }
}

@media (hover: hover) and (pointer: fine) {


  .ss-card:hover {
    translate: 0 -6px;
    border-color: #b6dcff;
    box-shadow: 0 18px 36px #1673c420;
  }
  .ss-card:hover .ss-slide-image {
    transform: scale(1.045);
  }
  .ss-button:hover:after {
    animation: ss-button-shine .65s ease;
  }
  .ss-dashboard-image:hover {
    translate: 0 -4px;
    box-shadow: 0 25px 60px #193f6720;
  }
  .ss-contact-image:hover {
    transform: translateY(-6px) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-benefit:hover,
  .ss-card:hover,
  .ss-dashboard-image:hover {
    translate: none;
    transform: none;
  }
  .ss-benefit:hover svg,
  .ss-card:hover .ss-slide-image,
  .ss-contact-image:hover {
    transform: none;
  }
  .ss-button:after {
    display: none;
  }
}

.ss-check-list li.ss-list-heading {
    padding-left: 0;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 700;
}

.ss-check-list li.ss-list-heading::before {
    content: none;
}

