/*
Theme Name: Altenia
Author: Altasartoria
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8.2
*/

:root {
  --menu-width: 33.33vw;
  --submenu-width: 400px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
label,
form .form-field input,
form .form-field textarea,
form .form-field select {
  font-family: var(--wp--preset--font-family--helvetica-neue);
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03rem;
  color: var(--wp--preset--color--altenia-color-secondary);
  overflow-x: hidden;
}

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

img {
  max-width: 100%;
  height: auto;
}

li,
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-list {
  margin-left: 0.5rem;
}

.wp-block-list li,
.altenia-card-text li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.wp-block-list li::before,
.altenia-card-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.4rem;
  height: 0.4rem;
  background-image: url(./assets/img/icons/bullet-list.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.container {
  max-width: 1300px;
  padding: 0 1rem;
}

/* Tipografia */

h1 {
  font-size: 2.5rem;
  line-height: 100%;
  letter-spacing: 0.05rem;
  margin: 2.5rem 0;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 120%;
  margin: 1.5rem 0;
}

h3,
h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 120%;
  margin: 1rem 0;
}

h4 {
  text-transform: uppercase;
}

p.highlight-paragraph,
h5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 130%;
}

p.p-big,
h6 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 130%;
}

p {
  font-size: 1rem;
  line-height: 130%;
  margin: 0.75rem 0;
}

.p-small {
  font-size: 0.75rem;
  font-style: normal;
  margin: 0.5rem 0;
}

main a,
.aziende-tes a.altenia-card-link {
  color: var(--wp--preset--color--altenia-color-secondary);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--wp--preset--color--altenia-color-primary);
  text-decoration-thickness: 16%;
  text-underline-offset: 16%;
  text-underline-position: from-font;
}

/* Bottoni e link */

.wp-block-button__link,
main a.wp-block-button__link,
.modal-open,
form input[type="submit"] {
  position: relative;
  padding: 0.75rem;
  padding-right: 2.5rem;
  border: 1px solid var(--wp--preset--color--altenia-color-primary);
  border-radius: 0;
  color: var(--wp--preset--color--altenia-color-secondary);
  background: none;

  font-weight: 700;
  font-size: 1rem;
  line-height: 100%;
  letter-spacing: 0.03rem;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  height: 1rem;
  width: 1rem;
  background-image: url(./assets/img/icons/arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transition: ease-in-out 0.25s;
}

.wp-block-button:not(.link-download) .wp-block-button__link:hover::after {
  transform: rotate(45deg);
}

.wp-block-button__link.link-esterno {
  padding-left: 0;
  padding-right: 2.5rem;
  border: none;
}

.link-download .wp-block-button__link::after {
  background-image: url(./assets/img/icons/download-icon.svg);
}

a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 110%;
  letter-spacing: 0.03rem;
  cursor: pointer;
}

.sticky-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 90;
}

.sticky-nav a {
  text-decoration: none;
  padding: 0.5rem;
  font-weight: normal;
  background: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sticky-nav a.active {
  background: var(--wp--preset--color--altenia-color-grey);
  color: var(--wp--preset--color--altenia-color-secondary);
}

.sticky-nav a .indicator {
  height: 1rem;
  width: 1rem;
  background-image: url(./assets/img/icons/arrow-down.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transition: ease-in-out 0.5s;
  transform: rotate(180deg);
}

.sticky-nav a.arrow-up .indicator {
  transform: rotate(0deg);
}

.sticky-nav a.active .indicator {
  border-radius: 50%;
  background-image: none;
  background: var(--wp--preset--color--altenia-color-secondary);
  height: 0.5rem;
  width: 0.5rem;
  margin: 0.25rem;
}

.filter-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  height: 2.5rem;
}

.filter-list li a {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: solid 1px var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-secondary);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
}

.filter-link.is-active {
  background: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
}

/* Header */
header {
  color: var(--wp--preset--color--altenia-color-white);
  background: var(--wp--preset--color--altenia-color-secondary);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
}

body:has(#wpadminbar) header {
  top: 32px;
}

body.home header {
  background: rgba(0, 92, 169, 0);
  transition: all 0.5s ease-in-out;
}

body.home header.bkg {
  background: rgba(0, 92, 169, 1);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

.header-sx,
.header-dx {
  display: flex;
  gap: 3rem;
  align-items: center;
}

header .header-sx {
  position: relative;
  justify-content: space-between;
  width: auto;
  z-index: 200;
  transition: ease-in-out 0.5s;
}

header img,
header .wp-block-site-logo.is-default-size img {
  height: 100%;
  width: auto;
}

header a {
  color: var(--wp--preset--color--altenia-color-white);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  height: 40px;
}

.burger-line {
  background: var(--wp--preset--color--altenia-color-white);
  border-radius: 30px;
  width: 2.75rem;
  height: 1.5px;
  transition: all 0.5s ease-in-out;
}
.burger-icon[aria-expanded="true"] .burger-line:first-of-type {
  transform: rotate(45deg) translate(4px, 10px);
}
.burger-icon[aria-expanded="true"] .burger-line:nth-of-type(2) {
  opacity: 0;
}
.burger-icon[aria-expanded="true"] .burger-line:last-of-type {
  transform: rotate(-45deg) translate(4px, -9px);
}

.main-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--menu-width);
  height: 100vh;
  z-index: 90;
  transform: translateX(-100%);
  transition: all 0.5s ease-in-out;
}

.main-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.main-menu nav {
  height: 100%;
  position: relative;
}

.main-menu nav::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--wp--preset--color--altenia-color-grey);
  z-index: 0;
  transition: all 0.5s ease-in-out;
}

.main-menu
  nav:has(.wp-block-navigation-submenu__toggle[aria-expanded="true"])::after {
  left: var(--menu-width);
  width: var(--submenu-width);
}

.main-menu ul.wp-block-navigation__container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: flex-start;
  gap: 1.5rem;
  height: 100%;
  padding: 9rem 1.5rem 1.5rem 1.5rem;
  background-color: var(--wp--preset--color--altenia-color-secondary);
  z-index: 100;
}

.main-menu li,
.main-menu span {
  text-align: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0.03rem;
}

.main-menu a,
.wp-block-navigation-submenu__toggle span {
  transition: ease-in-out 0.25s;
}

.main-menu span:hover,
.wp-block-navigation-submenu__toggle span:hover {
  color: var(--wp--preset--color--altenia-color-grey);
}

header
  .wp-block-navigation
  .has-child
  .wp-block-navigation__submenu-container
  span:hover {
  color: var(--wp--preset--color--altenia-color-secondary);
}

header .wp-block-navigation__submenu-container,
header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  color: var(--wp--preset--color--altenia-color-secondary);
  opacity: 0;
  height: auto;
  width: 0;
  visibility: hidden;
  top: 0;
  left: 0;
  gap: 2rem;
  border: none;
  background: none;
  transition: ease-in 0.5s;
  z-index: -1;
}

header .wp-block-navigation__submenu-container span {
  text-align: left;
  font-size: 1rem;
  line-height: 100%;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
}

.wp-block-navigation-item.open-on-click
  .wp-block-navigation-submenu__toggle[aria-expanded="true"]
  ~ .wp-block-navigation__submenu-container {
  opacity: 1;
  overflow: visible;
  height: auto;
  width: calc(var(--submenu-width) - 3rem);
  visibility: visible;
  top: 0;
  left: calc(100% + 3rem);
  gap: 2rem;
}

.wp-block-navigation-item.open-on-click
  .wp-block-navigation-submenu__toggle
  + .wp-block-navigation__submenu-icon {
  display: none;
}

.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
  padding-right: 0;
  transition: ease-in-out 0.25s;
}

.wp-block-navigation-item.open-on-click
  .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
  padding-right: 1.5rem;
}

.wp-block-navigation-item.open-on-click
  .wp-block-navigation-submenu__toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.25rem);
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--wp--preset--color--altenia-color-grey);
}

.wp-block-polylang-language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-transform: uppercase;
}

.wp-block-polylang-language-switcher .current-lang a {
  font-weight: 400;
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.wp-block-polylang-language-switcher li:first-of-type {
  position: relative;
  padding-right: 1rem;
}

.wp-block-polylang-language-switcher li:first-of-type::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  width: 1.5px;
  height: 0.75rem;
  background: var(--wp--preset--color--altenia-color-white);
  border: none;
}

/* Footer */
footer {
  background-color: var(--wp--preset--color--altenia-color-dark);
  color: var(--wp--preset--color--altenia-color-white);
  padding: 3rem 0;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.footer-first-row {
  display: flex;
  justify-content: space-between;
}

footer ul.wp-block-navigation__container {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
}

footer a {
  color: var(--wp--preset--color--altenia-color-white);
  text-transform: uppercase;
}

footer .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--altenia-color-white);
  color: var(--wp--preset--color--altenia-color-white);
  padding-left: 0.55rem;
}

footer .wp-block-button__link::after {
  background-image: url(./assets/img/icons/arrow-white.svg);
  right: auto;
  margin-left: 1rem;
}

footer .wp-block-button.link-esterno a {
  text-align: left;
}

.footer-third-row,
.footer-last-row {
  align-items: center;
}

footer .wp-block-button:not(.link-download) .wp-block-button__link {
  padding-left: 0;
  padding-right: 2.5rem;
  border: none;
}

footer .link-download .wp-block-button__link::after {
  background-image: url(./assets/img/icons/download-white.svg);
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background-color: transparent;
  border-width: unset;
  color: unset;
  padding: 0.75rem;
  padding-right: 2.5rem;
}

.footer-third-row-link {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-links a {
  height: 1.125rem;
  width: 1.6rem;
  background-image: url(./assets/img/icons/youtube-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-social-links a.link-linkedin {
  height: 1.25rem;
  width: 1.25rem;
  background-image: url(./assets/img/icons/linkedin-white.svg);
}

/* Hero */
.hero-wrapper {
  position: relative;
  min-height: 3.2rem;
  margin-top: 6rem;
}

.hero-image img {
  height: 20.5rem;
  width: 100%;
}

.breadcrumbs-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
}

.breadcrumbs-wrapper {
  position: relative;
  /* overflow-x: auto; */
}

.breadcrumbs-wrapper::before {
  content: "";
  background: var(--wp--preset--color--altenia-color-grey);
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-100% + 1rem);
  width: 100%;
}

.breadcrumbs {
  padding: 1rem 1.5rem 1rem 0;
  background: var(--wp--preset--color--altenia-color-grey);
  color: var(--wp--preset--color--altenia-color-secondary);
  display: flex;
  align-items: center;
  width: fit-content;
  position: relative;
}

.breadcrumbs a {
  color: var(--wp--preset--color--altenia-color-secondary);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-separator {
  display: block;
  margin: 0 1rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--wp--preset--color--altenia-color-primary);
}

.breadcrumbs span {
  white-space: nowrap;
}

.hero-homepage,
.hero-image {
  width: 100vw;
  position: relative;
}

.hero-homepage {
  height: 100vh;
  background: var(--wp--preset--color--altenia-color-secondary);
}

.hero-homepage::after,
.hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
}

.hero-homepage .wp-block-video video {
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  /* z-index: -1; */
  background: var(--wp--preset--color--altenia-color-secondary);
}

.hero-homepage .title-wrapper {
  display: block;
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  width: 100%;
  color: var(--wp--preset--color--altenia-color-white);
  z-index: 1;
}

.hero-homepage .title-wrapper h1 {
  font-weight: 400;
  font-size: 4rem;
  margin: auto;
}

.hero-homepage .title-wrapper h2 {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 120%;
}

/* Spacer */
.spacer {
  display: block;
}

.spacer-3rem {
  height: 3rem;
}
.spacer-5rem {
  height: 5rem;
}
.spacer-7rem {
  height: 7rem;
}
.spacer-9rem {
  height: 9rem;
}

/* Highlight paragraph */
.highlight-paragraph {
  position: relative;
  padding-left: 3rem;
}

.highlight-paragraph::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--wp--preset--color--altenia-color-grey);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
}

.cards-2col {
  grid-template-columns: calc(50% - (1.5rem / 2)) calc(50% - (1.5rem / 2));
}

.cards-3col {
  grid-template-columns: calc(100% / 3 - (3rem / 3)) calc(100% / 3 - (3rem / 3)) calc(
      100% / 3 - (3rem / 3)
    );
}

.card {
  background: var(--wp--preset--color--altenia-color-white);
}

.card-base {
  display: flex;
  padding: 3rem 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.white-bkg .card-image-bottom {
  background-color: var(--wp--preset--color--altenia-color-grey);
}

.card-image-bottom {
  align-items: center;
  padding: 1.5rem;
}

.card-image-bottom a {
  position: relative;
  font-weight: 400;
  padding-right: 2.5rem;
  color: var(--wp--preset--color--altenia-color-secondary);
}

.card-image-bottom a::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  height: 1rem;
  width: 1rem;
  background-image: url(./assets/img/icons/arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(45deg);
  transition: ease-in-out 0.25s;
}

.card-image-bottom a:hover::after {
  right: 1rem;
}

/* Accordion */
.wp-block-details {
  background-color: var(--wp--preset--color--altenia-color-secondary);
  border: solid 1px var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
  width: 100%;
  padding: 1.5rem;
  transition: ease-in-out 0.25s;
}

.wp-block-details[open] {
  background: var(--wp--preset--color--altenia-color-white);
  color: var(--wp--preset--color--altenia-color-secondary);
}

.wp-block-details summary {
  display: block;
  position: relative;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
}

summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after,
.modal-open::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1rem;
  height: 1rem;
  background-image: url(./assets/img/icons/plus.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: ease-in-out 0.25s;
}

.modal-open::after {
  background-image: url(./assets/img/icons/plus-blue.svg);
  right: 0.5rem;
}

.wp-block-details[open] summary::after {
  background-image: url(./assets/img/icons/minus.svg);
}

.wp-block-details.application-accordion .wp-block-column {
  background: var(--wp--preset--color--altenia-color-light);
  padding: 1rem;
  position: relative;
}

.wp-block-details.application-accordion .wp-block-column:first-of-type::before,
.wp-block-details.application-accordion .wp-block-column:last-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--wp--preset--color--altenia-color-light);
  width: 1.5rem;
  left: -1.5rem;
}

.wp-block-details.application-accordion .wp-block-column:first-of-type,
.wp-block-details.application-accordion .wp-block-column:last-of-type {
  background: var(--wp--preset--color--altenia-color-light);
  color: var(--wp--preset--color--altenia-color-secondary);
}

main .wp-block-details.application-accordion a.wp-block-button__link,
.wp-block-details.application-accordion .modal-open,
main details a {
  background: var(--wp--preset--color--altenia-color-white);
}

.wp-block-details.application-accordion .wp-block-column:last-of-type::after {
  left: unset;
  right: -1.5rem;
}

.wp-block-details.application-accordion .wp-block-group-is-layout-flex {
  gap: 2rem;
}

/* Layout */
.wp-block-column.has-background {
  padding: 0 1.25rem;
}

.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: unset;
}

/* Spacer */
.altenia-spacer {
  display: block;
  width: 100%;
}

.altenia-spacer.height-xxs {
  height: 1.5rem;
}
.altenia-spacer.height-xs {
  height: 2rem;
}
.altenia-spacer.height-s {
  height: 3rem;
}
.altenia-spacer.height-m {
  height: 5rem;
}
.altenia-spacer.height-l {
  height: 7rem;
}
.altenia-spacer.height-xl {
  height: 9rem;
}

/* Cards */
.altenia-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.altenia-cards.col-2 .altenia-card {
  width: calc((100% - 2rem) / 2);
}

.altenia-cards.col-3 .altenia-card {
  width: calc((100% - 4rem) / 3);
}

.altenia-cards.col-4 .altenia-card {
  width: calc((100% - 6rem) / 4);
}

.altenia-card-type-icon {
  display: flex;
  padding: 3rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.bkg-white {
  background: var(--wp--preset--color--altenia-color-white);
  color: var(--wp--preset--color--altenia-color-secondary);
}
.bkg-lightgrey {
  background: var(--wp--preset--color--altenia-color-grey);
  color: var(--wp--preset--color--altenia-color-secondary);
}
.bkg-superlightblue {
  background: var(--wp--preset--color--altenia-color-light);
  color: var(--wp--preset--color--altenia-color-secondary);
}
.bkg-grey {
  background: var(--wp--preset--color--altenia-dark-grey);
  color: var(--wp--preset--color--altenia-color-white);
}
.bkg-lightblue {
  background: var(--wp--preset--color--altenia-color-primary);
  color: var(--wp--preset--color--altenia-color-secondary);
}
.bkg-blue {
  background: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
}

.bkg-blue .wp-block-button,
.bkg-grey .wp-block-button {
  background: var(--wp--preset--color--altenia-color-white);
}

.bkg-blue .wp-block-details,
.bkg-grey .wp-block-details {
  background-color: var(--wp--preset--color--altenia-color-white);
  border: solid 1px var(--wp--preset--color--altenia-color-white);
  color: var(--wp--preset--color--altenia-color-secondary);
}

.bkg-blue .wp-block-details[open],
.bkg-grey .wp-block-details[open] {
  background: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
}

.bkg-blue .wp-block-details summary::after,
.bkg-grey .wp-block-details summary::after {
  background-image: url(./assets/img/icons/plus-blue.svg);
}

.bkg-blue .wp-block-details[open] summary::after,
.bkg-grey .wp-block-details[open] summary::after {
  background-image: url(./assets/img/icons/minus-white.svg);
}

.bkg-blue .altenia-card-content_wrapper,
.bkg-grey .altenia-card-content_wrapper {
  color: var(--wp--preset--color--altenia-color-secondary);
}

.altenia-card.bkg-blue .altenia-card-content_wrapper,
.altenia-card.bkg-blue .altenia-card-content_wrapper a.altenia-card-link,
.altenia-card.bkg-grey .altenia-card-content_wrapper,
.altenia-card.bkg-grey .altenia-card-content_wrapper a.altenia-card-link,
.aziende-tes a.altenia-card-link,
.altenia-card.bkg-blue a {
  color: var(--wp--preset--color--altenia-color-white);
}

.altenia-card.bkg-blue .altenia-card-content_wrapper a.altenia-card-link::after,
.altenia-card.bkg-grey
  .altenia-card-content_wrapper
  a.altenia-card-link::after {
  background-image: url(./assets/img/icons/arrow-white.svg);
}

.aziende-tes a.altenia-card-link::after {
  display: none;
}

.aziende-tes .altenia-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
}

.altenia-card-type-img img {
  height: 10.5rem;
  width: 100%;
  object-fit: cover;
}

.aziende-tes .altenia-card-immagine {
  height: 10.5rem;
  background: var(--wp--preset--color--altenia-color-white);
  border: solid 1px var(--wp--preset--color--altenia-color-secondary);
}

.aziende-tes .altenia-card img {
  object-fit: contain;
  padding: 2rem;
}

.aziende-tes .altenia-card:first-of-type img {
  padding: 2.75rem;
}

h3.altenia-card-text {
  margin: 0;
}

.altenia-card-content_wrapper {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  min-height: 8rem;
}

a.altenia-card-link,
.wp-block-post-excerpt__more-link {
  text-decoration: none;
  position: relative;
  font-weight: 400;
  padding-right: 1.25rem;
  padding-left: 0.5rem;
  min-width: max-content;
}

.related-progetti a.altenia-card-link {
  padding-left: 0;
}

.info-progetto {
  margin-bottom: 1rem;
}

.taxonomy-area-di-intervento-progetti {
  border-bottom: solid 1px var(--wp--preset--color--altenia-color-primary);
  padding-bottom: 3px;
  width: 100%;
}

a.altenia-card-link::after,
.wp-block-post-excerpt__more-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  transform: rotate(45deg);
  background-image: url(./assets/img/icons/arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: ease-in-out 0.25s;
}

main .bg-blu a.altenia-card-link,
main .bg-blu .wp-block-post-excerpt__more-link,
.news-view .wp-block-post-excerpt__more-link {
  color: var(--wp--preset--color--altenia-color-white);
}

main .bg-blu a.altenia-card-link::after,
main .bg-blu .wp-block-post-excerpt__more-link::after,
.news-view .wp-block-post-excerpt__more-link::after {
  background-image: url(./assets/img/icons/arrow-white.svg);
}

.altenia-card-type-article .altenia-card-content_wrapper,
.wp-block-query .altenia-card-type-article .altenia-card-content_wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  color: var(--wp--preset--color--altenia-color-white);
  background-color: var(--wp--preset--color--altenia-color-secondary);
}

.altenia-card-type-article .altenia-card-link,
.wp-block-query .altenia-card-type-article .altenia-card-link {
  margin-top: 3.5rem;
  color: var(--wp--preset--color--altenia-color-white);
}

.altenia-card-type-article a.altenia-card-link::after {
  background-image: url(./assets/img/icons/arrow-white.svg);
}

.related-progetti .wp-block-post.progetto,
.type-progetto {
  position: relative;
  height: 14.5rem;
}

.related-progetti figure {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.related-progetti img,
.wp-block-query.related-progetti img {
  object-fit: cover;
  height: 100%;
}

.related-progetti .progetto-view-content,
.wp-block-query.related-progetti .altenia-card-content_wrapper {
  background: var(--wp--preset--color--altenia-color-white);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.5rem;
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.progetto-view-content h3,
.progetto-view-content p {
  margin: 0;
  padding: 0;
}

.related-progetti-home.wp-block-query ul {
  grid-template-columns: calc(70% - (1.5rem / 2)) calc(30% - (1.5rem / 2));
  grid-template-rows: 50% 50%;
}

.related-progetti-home.wp-block-query li:first-of-type {
  grid-area: 1 / 1 / 3 / 2;
  height: calc(100% - 1.5rem / 2);
}

.wp-block-query.related-progetti-home
  li:first-of-type
  .altenia-card-content_wrapper {
  margin: 9rem 14rem;
}

.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

a.page-numbers {
  text-decoration: none;
}

.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow {
  color: transparent;
  position: relative;
  width: 2.15rem;
  height: 1.5rem;
}

.wp-block-query-pagination-previous-arrow::after,
.wp-block-query-pagination-next-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-image: url(./assets/img/icons/arrow-pagination-next.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.wp-block-query-pagination-previous-arrow::after {
  transform: rotate(-180deg);
}

.sostenibilita-wrapper .is-layout-grid {
  row-gap: 2rem;
  column-gap: 6rem;
  margin-top: 2rem;
}

/* Pagine Progetti e articoli */

.info-progetto .item p,
.post-template-articolo .wp-block-post-date:first-of-type {
  border-bottom: solid 1px var(--wp--preset--color--altenia-color-secondary);
  padding-bottom: 0.75rem;
}

.heateor_sss_sharing_container {
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: solid 1px var(--wp--preset--color--altenia-color-secondary);
}

.heateor_sss_sharing_title {
  font-weight: 400 !important;
  padding-bottom: 0.5rem;
}

.news-view li {
  background-color: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
  padding: 1.5rem;
  display: grid;
  grid-template-rows: 1.5rem 10.5rem auto;
}

.news-view h3.wp-block-post-title {
  padding: 1.5rem 0;
}

.wp-block-post-excerpt__more-link {
  padding-left: 0;
  margin-top: 5rem;
}

.news-view .wp-block-post-excerpt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Team */

.team-view {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: calc((100% / 3) - 1rem) calc((100% / 3) - 1rem) calc(
      (100% / 3) - 1rem
    );
}

.team-view-item {
  height: 25rem;
  position: relative;
  background-color: var(--wp--preset--color--altenia-color-secondary);
}

.team-view-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.team-view-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.value-row-altenia h4 {
  text-transform: none;
}

.scroll-container {
  max-height: 8.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.team-view-item .wp-block-details summary {
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-view-content h3 {
  padding: 1rem 1.5rem;
  margin: 0;
  color: var(--wp--preset--color--altenia-color-white);
  position: relative;
  z-index: 2;
}

.team-view-content h3::before {
  content: "";
  position: absolute;
  top: -100%;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: -1;
}

.carousel-team .card-team-header {
    background: var(--wp--preset--color--altenia-color-secondary);
}

/* Pattern */

.soluzioni-info h4 {
  position: relative;
  padding-left: 2rem;
}

.soluzioni-info h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--wp--preset--color--altenia-color-primary);
}

.soluzioni-highlights {
  background-color: var(--wp--preset--color--altenia-color-primary);
  padding: 2.4rem;
  position: relative;
}

.soluzioni-highlights::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(((100% * 3) - 100vw) / 2);
  width: calc((100vw - (100% * 3)) / 2);
  background-color: var(--wp--preset--color--altenia-color-primary);
}

.soluzioni-highlight {
  padding: 1.5rem;
  background: var(--wp--preset--color--altenia-color-white);
  margin-top: 2.4rem;
}

.soluzioni-highlights svg {
  position: absolute;
  right: 0;
}

.soluzioni-highlight-value {
  font-size: 2rem;
  font-weight: 700;
}

.cta-prefooter .bkg-blue {
  background: var(--wp--preset--color--altenia-color-primary);
}

/* Query */
.wp-block-query ul,
ul.related-progetti_query {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: calc((100% - 3rem) / 3) calc((100% - 3rem) / 3) calc(
      (100% - 3rem) / 3
    );
}

.wp-block-query img {
  height: 100%;
  width: 100%;
}

.wp-block-query .altenia-card-content_wrapper {
  align-items: center;
}

.altenia-card-content_wrapper:has(.altenia-card-link) h3 {
  padding-right: 0.5rem;
}

.wp-block-query .card-single-item {
  background-color: var(--wp--preset--color--altenia-color-grey);
  height: 100%;
  display: grid;
  grid-template-rows: 10rem auto;
}

.bkg-blue .wp-block-query .card-single-item,
.bkg-grey .wp-block-query .card-single-item,
.bkg-lightgrey .wp-block-query .card-single-item,
.bkg-lightblue .wp-block-query .card-single-item,
.bkg-superlightblue .wp-block-query .card-single-item,
.bkg-blue .wp-block-query .card-single-item {
  background-color: var(--wp--preset--color--altenia-color-white);
}

.wp-block-query h3 {
  margin: 0;
}

/* Form */

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
}

form .form-field {
  margin-top: 1rem;
}

form .form-field input,
form .form-field textarea,
form .form-field select {
  background: #dadee050;
  border: solid 1px #dadee050;
  border-radius: 0;
  /* color: var(--wp--preset--color--altenia-dark-grey); */
  color: #606b71;
  width: 100%;
  padding: 0.5rem 1rem;
  transition: ease-in-out 0.25s;
}

form .form-field input:active,
form .form-field input:focus-visible,
form .form-field textarea:focus-visible,
form .form-field textarea:active,
form .form-field select:focus-visible,
form .form-field select:active {
  border-color: var(--wp--preset--color--altenia-color-primary);
  box-shadow: none;
  color: var(--wp--preset--color--altenia-dark-grey);
}

span[data-name="jobdep"] .wpcf7-form-control:has(input[type="checkbox"]),
span[data-name="jobcity"] .wpcf7-form-control:has(input[type="checkbox"]) {
  background: #dadee050;
  border: solid 1px #dadee050;
  color: var(--wp--preset--color--altenia-dark-grey);
  width: 100%;
  padding: 0.5rem 1rem;
  display: block;
}

.form-field select {
  cursor: pointer;
}

form input[type="submit"] {
  padding-right: 0.75rem;
  margin-top: 3rem;
}

.wpcf7-list-item {
  display: block;
  margin: 0;
}

.wpcf7-form-control label {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.wpcf7-form-control label input {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.wpcf7-form-control.wpcf7-radio {
  display: flex;
  gap: 1rem;
}

.wpcf7-form-control.wpcf7-radio .wpcf7-list-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wpcf7-list-item .wpcf7-list-item-label {
  white-space: nowrap;
  max-width: 100%;
}

.form-field-group {
  border: solid 1px var(--wp--preset--color--altenia-color-secondary);
  padding: 1rem;
}

.wpcf7-field-group-add,
.wpcf7-field-group-remove {
  width: 100%;
  height: 1.75rem;
  background: var(--wp--preset--color--altenia-color-secondary);
  border: 0;
  color: var(--wp--preset--color--altenia-color-white);
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--helvetica-neue);
  line-height: 0;
  cursor: pointer;
}

.wpcf7-field-group-remove {
  background: var(--wp--preset--color--altenia-color-primary);
  border: solid 1px var(--wp--preset--color--altenia-color-secondary);
}

p:has(.wpcf7-field-group-remove) {
  display: flex;
}

p:has(.wpcf7-field-group-add) {
  margin-top: 0;
}

body.postid-779 .hero-image img,
body.postid-216 .hero-image img {
  object-position: 0 20%;
}
body.postid-777 .hero-image img,
body.postid-267 .hero-image img {
  object-position: 0 60%;
}
body.postid-765 .hero-image img,
body.postid-443 .hero-image img,
body.postid-902 .hero-image img,
body.postid-347 .hero-image img {
  object-position: 0 30%;
}

figure.wp-block-video {
  position: relative;
  z-index: 0;
}

/* Carousel */
.container .swiper.carousel-homepage {
  overflow: visible;
  position: relative;
}

.swiper.carousel-homepage .swiper-wrapper {
  padding-top: 4rem;
}

.swiper.carousel-homepage .slide-number,
.swiper.carousel-homepage .swiper-button-next,
.swiper.carousel-homepage .swiper-button-prev,
.swiper.carousel-team .slide-number,
.swiper.carousel-team .swiper-button-next,
.swiper.carousel-team .swiper-button-prev,
.swiper.carousel-news .slide-number,
.swiper.carousel-news .swiper-button-next,
.swiper.carousel-news .swiper-button-prev {
  position: relative;
  display: inline;
  height: 100%;
}

.carousel-homepage .swiper-slide {
  padding-left: 1.5rem;
  height: auto !important;
  /* border-left: 2px solid var(--wp--preset--color--altenia-color-secondary); */
}

.stats-header {
  background-color: var(--wp--preset--color--altenia-color-secondary);
  color: var(--wp--preset--color--altenia-color-white);
  padding: 12px;
  display: flex;
  align-items: center;
  position: relative;
}

.stats-header img {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 2rem;
}

.carousel-homepage .swiper-slide h2 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  width: 100%;
  text-align: center;
  padding: 0 2rem;
}

.carousel-homepage .swiper-slide .stats-header::before {
  content: "";
  width: 2px;
  height: 33px;
  position: absolute;
  top: 50px;
  left: 0;
  background: var(--wp--preset--color--altenia-color-secondary);
  z-index: -1;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

.carousel-homepage .swiper-slide .stats-container::before {
  content: "";
  width: 2px;
  height: calc(100% - 74px);
  position: absolute;
  top: 74px;
  left: 0;
  background: var(--wp--preset--color--altenia-color-secondary);
  z-index: -1;
}

.carousel-homepage .swiper-slide h3 {
  font-size: 2rem;
}

.carousel-homepage .swiper-slide .stats-container,
.carousel-team .swiper-slide .stats-container {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  align-items: flex-start;
}

.stats-item {
  width: 50%;
}

.swiper.carousel-homepage .swiper-buttons-container {
  position: absolute;
  top: -47px;
  right: 0;
  display: block;
}

.swiper.carousel-team .swiper-buttons-container,
.swiper.carousel-news .swiper-buttons-container {
  position: absolute;
  display: inline-block;
  right: -10px;
  top: 1rem;
}

.swiper.carousel-homepage .swiper-button-prev:after,
.swiper.carousel-homepage .swiper-button-next:after,
.swiper.carousel-team .swiper-button-prev:after,
.swiper.carousel-team .swiper-button-next:after,
.swiper.carousel-news .swiper-button-prev:after,
.swiper.carousel-news .swiper-button-next:after {
  font-size: unset;
  padding: 6px 10px;
  border: 1px solid var(--wp--preset--color--altenia-color-primary);
  background-color: var(--wp--preset--color--altenia-color-white);
}

.swiper.swiper.carousel-timeline .swiper-button-prev:after,
.swiper.swiper.carousel-timeline .swiper-button-next:after {
  font-size: unset;
  padding: 6px 10px;
  border: 1px solid var(--wp--preset--color--altenia-color-white);
}

.swiper.carousel-homepage .swiper-button-prev:after,
.swiper.carousel-team .swiper-button-prev:after,
.swiper.carousel-news .swiper-button-prev:after {
  content: url(./assets/img/icons/arrow-left.svg);
}

.swiper.carousel-homepage .swiper-button-next:after,
.swiper.carousel-team .swiper-button-next:after,
.swiper.carousel-news .swiper-button-next:after {
  content: url(./assets/img/icons/arrow-right.svg);
}

.swiper.carousel-timeline .swiper-button-prev:after {
  content: url(./assets/img/icons/arrow-left-white.svg);
}

.swiper.carousel-timeline .swiper-button-next:after {
  content: url(./assets/img/icons/arrow-right-white.svg);
}

.carousel-homepage .slide-number,
.carousel-team .slide-number,
.carousel-news .slide-number {
  padding: 0 1rem;
}

.carousel-homepage.swiper-horizontal > .swiper-pagination-progressbar,
.carousel-homepage.swiper-horizontal .swiper-scrollbar,
.carousel-timeline.swiper-horizontal .swiper-scrollbar {
  width: 100vw;
  height: 1rem;
  border-radius: 0;
  top: unset;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-homepage.swiper-horizontal > .swiper-pagination-progressbar,
.carousel-homepage.swiper-horizontal .swiper-scrollbar {
  background: var(--wp--preset--color--altenia-color-light);
}

.carousel-timeline.swiper-horizontal .swiper-scrollbar {
  background: var(--wp--preset--color--altenia-color-grey);
}

.carousel-homepage .swiper-scrollbar-drag,
.carousel-timeline .swiper-scrollbar-drag,
.carousel-homepage
  .swiper-horizontal
  > .swiper-pagination-progressbar
  .swiper-pagination-progressbar-fill {
  background: var(--wp--preset--color--altenia-color-secondary);
  border-radius: 0;
}

.carousel-timeline .swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: var(--swiper-navigation-sides-offset, 1.5rem);
  left: auto;
}

.carousel-timeline .swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: var(--swiper-navigation-sides-offset, 1.5rem);
  right: auto;
}

.carousel-team-container {
  padding-top: 7rem;
  padding-bottom: 9rem;
}

.carousel-team-container h2 {
  margin-top: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--altenia-color-primary);
}

.carousel-news h2 {
  margin-top: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--altenia-color-primary);
  margin-bottom: 1.5rem;
}

.carousel-team .swiper-slide {
  background: var(--wp--preset--color--altenia-color-white);
  padding: 1.5rem;
  height: auto;
}

.carousel-team .swiper-slide img {
  width: calc(100% + 3rem);
  max-width: none;
  margin-left: -1.5rem;
  margin-top: -1.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel-team .card-team-header {
  position: relative;
}

.carousel-team .card-team-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1.5rem;
  width: calc(100% + 3rem);
  height: 3rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.carousel-team .card-team-header h3 {
  position: absolute;
  bottom: 0.5rem;
  color: var(--wp--preset--color--altenia-color-white);
  z-index: 1;
  margin-left: -0.5rem;
}

.carousel-team .card-team-container {
  margin-top: 1.5rem;
  gap: 1.5rem;
}

.carousel-team p.big {
  font-size: 1.25rem;
  font-weight: bold;
}

.swiper.carousel-timeline {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* transition: all 0.5s ease; */
  padding: 7rem 6rem 6rem;
  position: relative;
}

.swiper.carousel-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.swiper.carousel-timeline .swiper-slide {
  transition: all 0.5s ease;
  padding: 1.5rem;
  color: var(--wp--preset--color--altenia-color-white);
  opacity: 0;
  text-align: center;
  /* transform: translateY(2rem); */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper.carousel-timeline .swiper-slide h2 {
  transform: translateY(2rem);
  transition: all 0.25s ease;
  margin-top: 0;
}

.swiper.carousel-timeline .swiper-slide-active h2 {
  transform: translateY(0);
}

.swiper.carousel-timeline .swiper-slide-active,
.swiper.carousel-timeline .swiper-slide-prev,
.swiper.carousel-timeline .swiper-slide-next {
  opacity: 1;
}

.swiper.carousel-timeline .swiper-slide-active {
  background-color: var(--wp--preset--color--altenia-color-white);
  transform: scale(1.02);
  z-index: 2;
  color: var(--wp--preset--color--altenia-color-secondary);
}

.swiper.carousel-timeline .swiper-slide p {
  opacity: 0;
  transition: all 0.5s ease;
}

.swiper.carousel-timeline .swiper-slide-active p {
  opacity: 1;
}

.swiper.carousel-timeline .swiper-slide img {
  display: none;
}

.timeline-container {
  justify-content: center;
}

.carousel-news ul.swiper-wrapper {
  display: flex;
  gap: 0;
}

.carousel-news ul.swiper-wrapper .swiper-slide {
  height: auto;
}

.carousel-news .wp-block-buttons {
  margin-top: 1rem;
}

.modal-container iframe {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.am-modal:has(iframe)::after {
  display: none;
}

.am-modal:has(iframe) .modal-close{
  z-index: 100;
  background: white;
  padding: .5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Square animation */

.square {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--wp--preset--color--altenia-color-white);
  pointer-events: none;
}

.square.square-small {
  width: 0.25rem;
  height: 0.25rem;
}

/* Responsive */

@media (max-width: 1350px) {
  .container {
    padding: 0 2.5rem;
  }

  .breadcrumbs-wrapper {
    overflow-x: auto;
  }

  .breadcrumbs-wrapper::before {
    left: calc(-100% + 2.5rem);
  }
}

@media (max-width: 1200px) {
  .wp-block-query .altenia-card-content_wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .altenia-card-content_wrapper a.altenia-card-link {
    padding-left: 0;
    margin-top: 1rem;
  }

  .carousel-homepage .swiper-slide h2 {
    font-size: 1rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 1100px) {
  .wp-block-query ul,
  ul.related-progetti_query,
  .team-view {
    grid-template-columns: calc((100% - 1.5rem) / 2) calc((100% - 1.5rem) / 2);
  }

  .related-progetti-home.wp-block-query ul {
    grid-template-columns: calc(50% - (1.5rem / 2)) calc(50% - (1.5rem / 2));
    grid-template-rows: auto auto;
  }

  .related-progetti-home.wp-block-query li:first-of-type {
    grid-area: 1 / 1 / 2 / 3;
    height: 14.5rem;
  }

  .wp-block-query.related-progetti-home
    li:first-of-type
    .altenia-card-content_wrapper {
    margin: 3rem;
  }
}

@media (max-width: 992px) {
  .altenia-cards {
    gap: 1rem;
  }

  .altenia-cards.col-2 .altenia-card {
    width: calc((100% - 1rem) / 2);
  }

  .altenia-cards.col-3 .altenia-card {
    width: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 781px) {
  .wp-block-column.has-background.home-special-col {
    position: relative;
    padding: 0;
  }

  .home-special-col::before,
  .home-special-col::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 100vw) / 2);
    width: calc((100vw - 100%) / 2);
    background-color: var(--wp--preset--color--altenia-dark-grey);
  }

  .home-special-col::after {
    right: calc((100% - 100vw) / 2);
    left: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .altenia-spacer.height-xxs {
    height: 0.75rem;
  }
  .altenia-spacer.height-xs {
    height: 1rem;
  }
  .altenia-spacer.height-s {
    height: 1.5rem;
  }
  .altenia-spacer.height-m {
    height: 2.5rem;
  }
  .altenia-spacer.height-l {
    height: 4rem;
  }
  .altenia-spacer.height-xl {
    height: 5rem;
  }

  h1 {
    font-size: 2.25rem;
    margin: 2rem 0;
  }

  h2 {
    font-size: 1.75rem;
    margin: 1.25rem 0;
  }

  h2.has-text-align-center {
    text-align: left;
  }

  .cta-prefooter h2.has-text-align-center {
    text-align: center;
  }

  h3,
  h4 {
    font-size: 1.25rem;
    margin: 0.75rem 0;
  }

  .soluzioni-info h4::before {
    top: 0.4rem;
    width: 0.75rem;
    height: 0.75rem;
  }

  .soluzioni-info h4 {
    padding-left: 1.5rem;
  }

  .hero-homepage .title-wrapper h2 {
    font-size: 3.5rem;
  }

  .header-wrapper {
    height: 4.5rem;
  }

  .header-sx,
  .header-dx {
    gap: 2rem;
  }

  header img,
  header .wp-block-image img,
  header .wp-block-site-logo.is-default-size img {
    height: 2rem;
  }

  .burger-icon {
    gap: 0.4rem;
  }

  .burger-line {
    width: 2rem;
  }

  .burger-icon[aria-expanded="true"] .burger-line:last-of-type {
    transform: rotate(-45deg) translate(4px, -7px);
  }

  .burger-icon[aria-expanded="true"] .burger-line:first-of-type {
    transform: rotate(45deg) translate(4px, 9px);
  }

  .wp-block-polylang-language-switcher li:first-of-type {
    padding-right: 0.75rem;
  }

  .wp-block-polylang-language-switcher {
    gap: 0.25rem;
  }

  .main-menu ul.wp-block-navigation__container {
    align-items: start;
  }

  .main-menu li,
  .main-menu span {
    font-size: 1.25rem;
  }

  header .wp-block-navigation__submenu-container,
  header
    .wp-block-navigation
    .has-child
    .wp-block-navigation__submenu-container {
    gap: 1rem;
    color: var(--wp--preset--color--altenia-color-white);
    padding-left: 0.5rem;
    border-left: solid 1px var(--wp--preset--color--altenia-color-white);
  }

  .wp-block-navigation-item.open-on-click
    .wp-block-navigation-submenu__toggle[aria-expanded="true"]
    ~ .wp-block-navigation__submenu-container {
    width: calc(var(--submenu-width) - 3rem);
    left: calc(100% + 3rem);
    gap: 1rem;
  }

  header .wp-block-navigation__submenu-container span {
    font-size: 0.75rem;
    line-height: 120%;
  }

  .hero-wrapper {
    margin-top: 4.5rem;
  }

  .breadcrumbs-wrapper::before {
    left: calc(-100% + 1.5rem);
  }

  .altenia-card-type-icon {
    padding: 1.5rem;
  }

  .carousel-news h2 {
    padding-bottom: 0.5rem;
  }

  .news-view li {
    grid-template-rows: auto auto auto;
  }

  .heateor_sss_sharing_container {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
  }

  .wp-block-query .altenia-card-content_wrapper {
    align-items: flex-start;
    flex-direction: column;
  }

  .altenia-card-content_wrapper a.altenia-card-link {
    padding-left: 0;
    margin-top: 1rem;
  }

  .pin-spacer:has(.sticky-nav),
  .sticky-nav {
    display: none;
  }

  .wp-block-query ul,
  ul.related-progetti_query,
  .team-view {
    grid-template-columns: 100%;
  }

  .related-progetti-home.wp-block-query ul {
    grid-template-columns: 100%;
  }

  .related-progetti-home.wp-block-query li:first-of-type {
    grid-area: unset;
  }

  .wp-block-query.related-progetti-home
    li:first-of-type
    .altenia-card-content_wrapper {
    margin: 1.5rem;
  }

  .altenia-cards.col-3 .altenia-card {
    width: calc((100% - 1rem) / 2);
  }

  .container .swiper.carousel-homepage {
    overflow: hidden;
  }

  .swiper.carousel-homepage .swiper-buttons-container {
    position: relative;
    top: 2rem;
    float: right;
    display: inline;
    right: -10px;
  }

  .altenia-card-content_wrapper {
    padding: 1rem;
    min-height: unset;
  }

  .highlight-paragraph {
    padding-left: 2rem;
  }

  .wp-block-details {
    padding: 1rem;
  }

  .wp-block-details summary {
    font-size: 1.25rem;
  }

  .team-view-item .wp-block-details summary {
    min-height: 3rem;
  }

  .team-view-content h3 {
    padding: 1rem;
  }

  .sostenibilita-wrapper .is-layout-grid {
    grid-template-columns: 100%;
    row-gap: 2rem;
    margin: 2rem 0;
  }

  .soluzioni-highlights {
    padding: 1rem;
  }

  .soluzioni-highlights::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(((100% - 100vw) / 2));
    width: calc((100vw - 100%) / 2);
    background-color: var(--wp--preset--color--altenia-color-primary);
  }

  .soluzioni-highlights::after {
    right: calc(((100% - 100vw) / 2));
    width: calc((100vw - 100%) / 2);
  }

  .wp-block-details.application-accordion
    .wp-block-column:first-of-type::before,
  .wp-block-details.application-accordion .wp-block-column:last-of-type::after {
    display: none;
  }

  .am-modal {
    padding: 3rem 0.5rem 1rem 0.5rem;
  }

  .form-field {
    padding-left: 0;
    padding-right: 0;
  }

  .wpcf7-list-item .wpcf7-list-item-label {
    white-space: unset;
    max-width: 350px;
  }

  footer .wp-block-buttons:has(.link-esterno) {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .header-dx {
    position: absolute;
    right: 1rem;
    bottom: calc(8rem - 90vh);
    z-index: 10000;
    display: none;
    opacity: 0;
  }

  body:has(.main-menu[aria-hidden="false"]) .header-dx {
    display: flex;
    opacity: 1;
  }

  .footer-wrapper {
    gap: 3rem;
  }

  footer .wp-block-image img {
    max-width: 8rem;
  }

  footer .col-xs-6 {
    flex-basis: 100%;
    max-width: 100%;
  }

  footer ul.wp-block-navigation__container {
    display: grid;
    grid-template-columns: 50% 50%;
    margin-bottom: 2rem;
    gap: 0.75rem;
  }

  footer .wp-block-button__link::after {
    margin-top: 0.25rem;
  }

  footer .first-download-footer-button {
    margin-bottom: 1rem;
  }

  footer .wp-block-button:not(.link-download) .wp-block-button__link,
  footer .wp-block-navigation-item__content {
    line-height: 150%;
  }

  .altenia-cards.col-2 .altenia-card {
    width: 100%;
  }

  .altenia-cards.col-3 .altenia-card {
    width: 100%;
  }

  .carousel-homepage .swiper-slide .stats-container,
  .carousel-team .swiper-slide .stats-container {
    flex-wrap: wrap;
  }

  .stats-item {
    width: 100%;
  }

  .swiper.carousel-team .swiper-buttons-container,
  .swiper.carousel-news .swiper-buttons-container {
    position: relative;
    right: -10px;
    float: right;
    top: unset;
    margin-bottom: 1.5rem;
  }

  .swiper.carousel-timeline .swiper-slide-prev,
  .swiper.carousel-timeline .swiper-slide-next {
    opacity: 0;
  }
}

@media (max-width: 400px) {
  .main-menu li,
  .main-menu span {
    font-size: 1rem;
  }

  .wp-block-navigation-item.open-on-click
    .wp-block-navigation-submenu__toggle[aria-expanded="true"]
    ~ .wp-block-navigation__submenu-container {
    width: calc(var(--submenu-width) - 5rem);
    left: calc(100% + 3rem);
  }
}
