/*
	Theme Name: Themebase
	Theme URI: 
	Author:  Veronika Udod
	Author URI: 
	Version: 2.0
	Description: 
	Tags: 
	Licence: GPL v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: ecoffset.it
*/

/* MAIN SETTINGS */

:root {
  --white: #ffffff;
  --light-grey: #f8f8f8;
  --grey: #eeeeee;
  --black: #222222;
  --liliac: #8e6ca8;
  --yellow: #d7e25a;
  --orange: #f37241;
  --teal: #00b3ce;
  --dark-grey: #888888;
  --dark-dark-grey: #4a4a4a;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  transition: 0.5s;
  background: var(--white);
  font-family: "Host Grotesk", sans-serif;
  font-size: 17px;
  line-height: normal;
  color: #888888;
}

html {
  /* overflow-x: hidden; Removed to prevent sticky issues */
}

* {
  font-family: "Host Grotesk", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #222222;
}

h1 {
  font-size: 64px;
  line-height: 70px;
}

h2 {
  font-size: 52px;
  line-height: 96.8px;
  font-weight: 600;
}

h3 {
  font-size: 42px;
  line-height: 100px;
}

h4 {
  font-size: 33px;
}

h5 {
  font-size: 26px;
}

h6 {
  font-size: 18px;
}

p {
  font-size: 17px;
  line-height: normal;
  margin-bottom: 0;
}

button {
  font-size: 14px;
  font-family: "Host Grotesk", sans-serif;
  padding: 20px 40px;
  color: var(--white);
  text-transform: uppercase;
  background-color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  background-color: #222222;
  border-color: #222222;
  color: var(--white);
}

.cta-button a {
  font-size: 14px;
  font-family: "Host Grotesk", sans-serif;
  padding: 20px 40px;
  color: var(--white);
  text-transform: uppercase;
  background-color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cta-button a:hover {
  background-color: #4C4C4C;
  border-color: #4C4C4C;
  color: var(--white);
}
.max-w-1360 {
  max-width: 1360px;
  margin: auto;
}

.position-relative {
  position: relative;
}

/* MAIN SETTINGS MOBILE */
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 42px;
    line-height: 110px;
  }

  h2 {
    font-size: 32px;
    line-height: 96.8px;
  }

  h3 {
    font-size: 29px;
    line-height: 100px;
  }

  h4 {
    font-size: 26px;
  }

  h5 {
    font-size: 24px;
  }

  h6 {
    font-size: 16px;
  }

  body,
  p {
    font-size: 16px;
    line-height: normal;
  }
}

/* NAVBAR */
header.site-header {
  position: fixed;
  z-index: 99;
  width: 100%;
  top: 40px;
  pointer-events: none;
}

.header-container {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  background-image: radial-gradient(
      circle at var(--x, 50%) var(--y, 50%),
      rgba(0, 179, 206, var(--glow-opacity, 0)) 0%,
      transparent 100px
    ),
    linear-gradient(265deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
  background-repeat: no-repeat;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  outline: none;
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  margin: 0 48px;
  opacity: 100%;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1), border-radius 1s ease;
  overflow: hidden;
  height: 80px;
}

.header-container.expanded {
  border-radius: 40px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 60px;
  flex-shrink: 0;
}

.logo-container {
  flex: 0 0 auto;
  padding: 24px 40px 24px;
}

.logo {
  max-width: 150px;
  height: auto;
  display: block;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-menu {
  display: flex;
  justify-content: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  text-decoration: none;
  color: white;
  font-size: 16px !important;
  font-weight: 700;
  transition: 0.3s;
  display: inline-block;
}

.main-menu li a:hover {
  color: var(--teal);
}

.header-cta {
  flex: 0 0 auto;
  padding: 13px 11px;
}

.btn-header {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  font-size: 14px;
  font-weight: 700;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-header:hover {
  background-color: #4C4C4C;
  border-color: #4C4C4C;
  color: var(--white);
}

/* Responsive adjustments for smaller desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  .header-container {
    gap: 15px;
    margin: 0 15px;
    /* padding: 24px 10px 17px 40px; */
    width: auto;
    max-width: calc(100% - 30px);
    justify-content: space-between;
  }

  .nav-center {
    flex: 1 1 auto;
  }

  .main-menu {
    gap: 20px;
    justify-content: center;
  }

  .main-menu li a {
    font-size: 14px;
    white-space: nowrap;
  }

  .logo-container {
    padding-left: 0;
    flex: 0 0 auto;
    padding: 24px 40px 24px;
  }

  .logo {
    max-width: 120px;
  }

  .header-cta {
    flex: 0 0 auto;
    padding: 13px 11px;
  }

  .btn-header {
    padding: 20px 40px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* --- BURGER MENU & MOBILE MENU STYLES --- */

.burger-menu-icon {
  display: none;
  cursor: pointer;
}

.mobile-menu-expanded {
  display: none;
  padding: 60px 25px 30px;
  opacity: 0;
  height: 100%;
  transition: opacity 0.4s ease 0.2s;
}

.header-container.expanded .mobile-menu-expanded {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  opacity: 1;
  margin-top: 0;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
}

.mobile-menu-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  font-size: 24px;
}

.mobile-menu-list li a {
  color: var(--white);
  font-size: 24px;
  text-decoration: none;
  font-weight: 600;
  display: block;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-container.expanded .mobile-menu-label,
.header-container.expanded .mobile-menu-list li a,
.header-container.expanded .mobile-footer-label,
.header-container.expanded .mobile-footer-col a {
  animation: slideUpFade 0.6s ease forwards;
  animation-delay: 0.5s;
}

.mobile-menu-footer {
  margin-top: 40px;
}

.mobile-footer-row {
  display: flex;
  gap: 28%;
}

.mobile-footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-footer-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
}

.mobile-footer-col a {
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
}

/* TABLET & MOBILE */
@media (max-width: 1024px) {
  .header-container {
    margin: 0 15px;
    padding: 0 25px;
  }

  .header-row {
    justify-content: space-between;
  }

  .logo-container {
    padding-left: 0px;
  }
  
  .nav-center,
  .header-cta {
    display: none;
  }

  .burger-menu-icon {
    display: block;
    padding: 24px 20px 23px;
  }

  .burger-menu-icon img {
    width: 32px;
    height: auto;
    display: block;
  }
}
/* NAVBAR MOBILE */
@media only screen and (max-width: 768px) {
  .header-container {
    /* Adjust margin */
    /* Logo left, Burger right */
    padding: 0;
  }
  .logo-container {
    padding: 20px 24px 17px;
  }
}

/* FOOTER */
footer.site-footer {
  background-color: var(--black);
  padding: 80px 48px 40px;
  color: var(--dark-grey);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.logo-col {
  flex: 0 0 auto;
  margin-right: 40px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.newsletter-col {
  flex: 2;
  min-width: 300px;
}

footer h6 {
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

footer h4 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: bold;
  max-width: 600px;
}

footer p,
footer li a {
  color: var(--dark-grey);
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
  transition: 0.3s;
}

footer li a:visited,
footer li a:active,
footer li a:focus,
footer li.current-menu-item a {
  color: var(--dark-grey);
}

footer a:hover {
  color: var(--teal);
}

.contact-info p {
  margin-bottom: 25px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  /* margin-bottom: 12px; */
}

.footer-menu li:last-child {
  margin-top: 24px;
}

.newsletter-desc {
  margin-bottom: 30px;
  max-width: 400px;
}

.newsletter-form-wrapper .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.newsletter-form-wrapper .wpcf7-form {
  display: block;
  position: relative;
  max-width: 600px;
  height: 60px;
}

.newsletter-form-wrapper .wpcf7-text {
  background-color: var(--dark-dark-grey);
  border: none;
  padding: 0 24px;
  padding-right: 220px;
  color: var(--white);
  font-size: 17px;
  width: 100%;
  height: 100%;
  line-height: 60px;
  border-radius: 50px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-form-wrapper .wpcf7-text::placeholder {
  color: var(--dark-grey);
  line-height: normal;
}

.newsletter-form-wrapper .wpcf7-submit {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: var(--teal);
  color: var(--white);
  border: none;
  padding: 0 40px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  z-index: 2;
}

.newsletter-form-wrapper .wpcf7-submit:hover {
  background-color: var(--white);
  color: var(--black);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
}

.footer-line {
  height: 1px;
  background-color: #333333;
  margin-bottom: 30px;
  width: 100%;
}

.copyright {
  color: var(--dark-grey);
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.contact-info a:hover {
  color: var(--teal);
}

@media (max-width: 1024px) {
  footer.site-footer {
    background-color: var(--black);
    padding: 0 15px 60px 15px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px 20px;
  }

  .footer-col,
  .newsletter-col {
    min-width: 0;
  }

  .logo-col {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .contact-col {
    grid-column: 1 / 2;
  }

  .menu-col {
    grid-column: 2 / 3;
  }

  .newsletter-col {
    grid-column: 1 / -1;
    margin-top: 20px;
  }

  .newsletter-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .newsletter-form-wrapper .wpcf7-text {
    padding-right: 24px !important;
    height: 50px;
    line-height: normal;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .newsletter-form-wrapper .wpcf7-submit {
    position: static;
    width: 100% !important;
    height: 50px;
    margin-top: 0;
    box-sizing: border-box;
  }
}

/*==========================
============================
HERO
============================
============================ */

body.home,
body.home #page,
body.home .site-content,
body.home .elementor-section-wrap,
body.home .elementor-inner,
body.home .elementor-location-header,
body.home .elementor-location-footer,
body.home div[data-elementor-type="page"],
body.home .elementor {
  overflow: visible !important;
}

.hero-section-container {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0;
  height: 100vh;
  z-index: 0;
  flex-shrink: 0;
}

.hero-section-container ~ .elementor-section,
.hero-section-container ~ .e-con,
.hero-section-container ~ div,
.hero-section-container ~ section {
  position: relative;
  z-index: 1;
  background-color: var(--white);
}

footer.site-footer {
  position: relative;
  z-index: 1;
}

/*==========================
============================
CHI SIAMO
============================
============================ */
.hero-section-container {
}
.chi-card-number {
  font-size: 14px;
  color: var(--teal);
}

/*==========================
============================
PERCHE'
============================
============================ */
.perche-section-container {
}
.perche-section-container h6,
.perche-section-container h2 {
  color: white;
}
.perche-numeri-box h2 {
  font-size: 100px !important;
  font-weight: 400;
  letter-spacing: -0.08em !important;
}
.perche-addon-img .elementor-widget-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 595px;
}
/*==========================
============================
ECOSISTEMA
============================
============================ */

/* 1) Il wrapper che contiene le 3 colonne: rendilo "stretched" */
.ecosistema-skilex-cardsbox{
  align-items: stretch; /* se è flex */
}

/* 2) Le colonne (i tuoi container 6c18000 / 32a1af9 / c59dc93) devono crescere */
.ecosistema-skilex-cardsbox > .e-con{
  height: 100%;
}

/* 3) La card vera (quella con background classic: 4b77cae / 412d264 / d6a7c91) deve riempire la colonna */
.ecosistema-skilex-cardsbox > .e-con > .e-con{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 4) Se vuoi il bottone sempre in fondo */
.ecosistema-skilex-cardsbox .cta-button{
  margin-top: auto;
}


/*==========================
============================
CONTATTI
============================
============================ */

.skyle-contact-form {
  max-width: 100%;
  margin: 0 auto;
}

.skyle-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.skyle-form-col {
  flex: 1;
}

.skyle-form-col.full-width {
  flex: 100%;
}

.skyle-contact-form input[type="text"],
.skyle-contact-form input[type="email"],
.skyle-contact-form textarea,
.skyle-contact-form select {
  width: 100%;
  background-color: #4a4a4a;
  border: none;
  border-radius: 5px;
  padding: 15px 20px;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

.skyle-contact-form input::placeholder,
.skyle-contact-form textarea::placeholder {
  color: #aaaaaa;
}

.skyle-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("/wp-content/uploads/2025/12/arrow-select.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
  cursor: pointer;
  color: #aaaaaa;
}

.skyle-contact-form select:focus,
.skyle-contact-form select:valid {
  color: #ffffff;
}

.skyle-contact-form textarea {
  height: 120px;
  resize: vertical;
}

.skyle-contact-form input[type="submit"] {
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.skyle-contact-form input[type="submit"]:hover {
  background-color: #222222;
  border-color: #222222;
  color: var(--white);
}

@media (max-width: 768px) {
  .skyle-form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }
}

.elementor-custom-embed-play-icon {
  background-image: url("/wp-content/uploads/2025/12/video-custom-button.svg") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 80px !important;
  height: 80px !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.elementor-custom-embed-play-icon i,
.elementor-custom-embed-play-icon svg {
  display: none !important;
}

/* TEXT ANIMATION STYLES */
.btn-header[data-text],
.cta-button a[data-text],
button[data-text],
.wpcf7-submit[data-text],
.main-menu li a[data-text],
.mobile-menu-list li a[data-text],
.footer-menu li a[data-text],
.contact-info a[data-text] {
  color: transparent !important;
  position: relative;
  overflow: hidden;
}

.btn-header[data-text]::before,
.btn-header[data-text]::after,
.cta-button a[data-text]::before,
.cta-button a[data-text]::after,
button[data-text]::before,
button[data-text]::after,
.wpcf7-submit[data-text]::before,
.wpcf7-submit[data-text]::after,
.main-menu li a[data-text]::before,
.main-menu li a[data-text]::after,
.mobile-menu-list li a[data-text]::before,
.mobile-menu-list li a[data-text]::after,
.footer-menu li a[data-text]::before,
.footer-menu li a[data-text]::after,
.contact-info a[data-text]::before,
.contact-info a[data-text]::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.btn-header[data-text]::before,
.cta-button a[data-text]::before,
button[data-text]::before,
.wpcf7-submit[data-text]::before,
.main-menu li a[data-text]::before,
.mobile-menu-list li a[data-text]::before,
.footer-menu li a[data-text]::before,
.contact-info a[data-text]::before {
  top: 0;
}

.btn-header[data-text]::after,
.cta-button a[data-text]::after,
button[data-text]::after,
.wpcf7-submit[data-text]::after,
.main-menu li a[data-text]::after,
.mobile-menu-list li a[data-text]::after,
.footer-menu li a[data-text]::after,
.contact-info a[data-text]::after {
  top: 100%;
}

.btn-header[data-text]:hover::before,
.cta-button a[data-text]:hover::before,
button[data-text]:hover::before,
.wpcf7-submit[data-text]:hover::before,
.main-menu li a[data-text]:hover::before,
.mobile-menu-list li a[data-text]:hover::before,
.footer-menu li a[data-text]:hover::before,
.contact-info a[data-text]:hover::before {
  transform: translateY(-100%);
}

.btn-header[data-text]:hover::after,
.cta-button a[data-text]:hover::after,
button[data-text]:hover::after,
.wpcf7-submit[data-text]:hover::after,
.main-menu li a[data-text]:hover::after,
.mobile-menu-list li a[data-text]:hover::after,
.footer-menu li a[data-text]:hover::after,
.contact-info a[data-text]:hover::after {
  transform: translateY(-100%);
}

.btn-header[data-text]::before,
.btn-header[data-text]::after,
.cta-button a[data-text]::before,
.cta-button a[data-text]::after,
button[data-text]::before,
button[data-text]::after,
.wpcf7-submit[data-text]::before,
.wpcf7-submit[data-text]::after {
  color: var(--white);
}

.main-menu li a[data-text]::before,
.mobile-menu-list li a[data-text]::before {
  color: white;
}

.main-menu li a[data-text]::after,
.mobile-menu-list li a[data-text]::after {
  color: var(--teal);
}

.footer-menu li a[data-text],
.contact-info a[data-text] {
  display: inline-block !important;
  vertical-align: top;
}

.footer-menu li a[data-text]::before,
.contact-info a[data-text]::before {
  color: var(--dark-grey);
}

.footer-menu li a[data-text]::after,
.contact-info a[data-text]::after {
  color: var(--teal);
}

.newsletter-form-wrapper .wpcf7-submit[data-text]:hover::before,
.newsletter-form-wrapper .wpcf7-submit[data-text]:hover::after {
  color: white;
}

@media (min-width: 1025px) {
  .newsletter-form-wrapper .wpcf7-submit {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .newsletter-form-wrapper .wpcf7-submit:hover {
    background-color: var(--black);
  }
}
