
/*
 * bootstrap-custom.css
 * Replica delle classi Bootstrap utilizzate nel progetto.
 * Sostituisce completamente Bootstrap senza dipendenze esterne.
 *
 * Breakpoints:
 *   sm  ≥ 576px
 *   md  ≥ 768px
 *   lg  ≥ 992px
 *   xl  ≥ 1200px
 *
 * Scala spaziatura (base: 1rem = 16px):
 *   1 → 0.25rem  |  2 → 0.5rem  |  3 → 1rem
 *   4 → 1.5rem   |  5 → 3rem
 */

/* ============================================================
   RESET / BOX MODEL
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
}

button:focus,
button:active,
input:focus,
input:active {
  outline: none !important;
  box-shadow: none !important;
}

button {
  background-color: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  --bs-primary:   #0d6efd;
  --bs-secondary: #6c757d;
  --bs-warning:   #ffc107;
  --bs-danger:    #dc3545;
  --bs-muted:     #6c757d;
  --bs-white:     #fff;
  --bs-spacer:    1rem;
}

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left:  calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left:  auto;
}

@media (min-width: 576px)  { .container { max-width: 540px;  } }
@media (min-width: 768px)  { .container { max-width: 720px;  } }
@media (min-width: 992px)  { .container { max-width: 960px;  } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ============================================================
   LAYOUT — ROW
   ============================================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-top:    calc(-1 * var(--bs-gutter-y));
  margin-right:  calc(-0.5 * var(--bs-gutter-x));
  margin-left:   calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left:  calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

/* ============================================================
   LAYOUT — GUTTER (g-*)
   ============================================================ */
.g-3 { --bs-gutter-x: 1rem;   --bs-gutter-y: 1rem;   }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.g-5 { --bs-gutter-x: 3rem;   --bs-gutter-y: 3rem;   }

/* ============================================================
   LAYOUT — COLUMNS (mobile-first, base = 12 col)
   ============================================================ */
.col   { flex: 1 0 0%; }
.col-6  { flex: 0 0 auto; width: 50%;       }
.col-12 { flex: 0 0 auto; width: 100%;      }

/* classe concatenata per errore nel codice — trattata come col-12 di base */
.colcol-12col-md-6col-lg-6 { flex: 0 0 auto; width: 100%; }

/* offset base */
.offset-md-2 { margin-left: 0; } /* sovrascritta a md */

/* sm */
@media (min-width: 576px) {
  .col-sm-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.3333%; }
  .offset-sm-2 { margin-left: 16.6667%; }
}

/* md */
@media (min-width: 768px) {
  .col-md-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-md-6  { flex: 0 0 auto; width: 50%;       }
  .col-md-12 { flex: 0 0 auto; width: 100%;      }
  .colcol-12col-md-6col-lg-6 { width: 50%; }
  .offset-md-2 { margin-left: 16.6667%; }
}

/* lg */
@media (min-width: 992px) {
  .col-lg-3  { flex: 0 0 auto; width: 25%;       }
  .col-lg-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-6  { flex: 0 0 auto; width: 50%;       }
  .col-lg-10 { flex: 0 0 auto; width: 83.3333%; }
  .colcol-12col-md-6col-lg-6 { width: 50%; }
}

/* ============================================================
   SIZING
   ============================================================ */
.h-100  { height: 100% !important; }
.w-50   { width:  50%  !important; }
.w-75   { width:  75%  !important; }
.w-100  { width:  100% !important; }

/* ============================================================
   FLEXBOX UTILITIES
   ============================================================ */
.d-flex          { display: flex !important; }
.d-none          { display: none !important; }
.flex-wrap       { flex-wrap: wrap !important; }

.align-items-center { align-items: center  !important; }
.align-items-start  { align-items: flex-start !important; }
.align-items-end    { align-items: flex-end   !important; }

.justify-content-center  { justify-content: center        !important; }
.justify-content-end     { justify-content: flex-end      !important; }
.justify-content-around  { justify-content: space-around  !important; }

.ms-auto { margin-left: auto !important; }

@media (min-width: 992px) {
  .align-items-lg-center { align-items: center !important; }
}

/* ============================================================
   GAP
   ============================================================ */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem   !important; }

/* ============================================================
   SPACING — MARGIN
   ============================================================ */
/* mb */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 1rem    !important; }
.mb-4 { margin-bottom: 1.5rem  !important; }
.mb-5 { margin-bottom: 3rem    !important; }

/* ms */
.ms-3 { margin-left: 1rem !important; }

/* mx */
.mx-3    { margin-right: 1rem  !important; margin-left: 1rem  !important; }
.mx-auto { margin-right: auto  !important; margin-left: auto  !important; }

/* mt */
.mt-3 { margin-top: 1rem   !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem   !important; }

/* my */
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem  !important; margin-bottom: 0.5rem  !important; }
.my-3 { margin-top: 1rem    !important; margin-bottom: 1rem    !important; }
.my-5 { margin-top: 3rem    !important; margin-bottom: 3rem    !important; }

/* ============================================================
   SPACING — PADDING
   ============================================================ */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.fw-bold     { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium   { font-weight: 500 !important; }

.display-5 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.text-center  { text-align: center !important; }
.text-white   { color: var(--bs-white)   !important; }
.text-muted   { color: var(--bs-muted)   !important; }
.text-warning { color: var(--bs-warning) !important; }

/* ============================================================
   POSITION & OVERFLOW
   ============================================================ */
.overflow-hidden   { overflow: hidden !important; }
.position-relative { position: relative !important; }

/* ============================================================
   LIST GROUP
   ============================================================ */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.375rem;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child  { border-bottom-right-radius: inherit; border-bottom-left-radius: inherit; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  background-color: var(--bs-secondary);
}

/* ============================================================
   HR
   ============================================================ */
hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0.25;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.col-form-label {
  padding-top: calc(0.375rem + 1px);
  padding-bottom: calc(0.375rem + 1px);
  margin-bottom: 0;
  font-size: inherit;
  line-height: 1.5;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder { color: #6c757d; opacity: 1; }

.form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #6c757d;
}

 .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }

/* ============================================================
   TABLE
   ============================================================ */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  vertical-align: top;
  border-color: #dee2e6;
  border-collapse: collapse;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  border-bottom-width: 1px;
}

.table > thead {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table > tbody > tr > td,
.table > thead > tr > th {
  border-bottom: 1px solid #dee2e6;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(0, 0, 0, 0.075);
  transition: background-color 0.15s ease;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top:    0.5rem;
  padding-bottom: 0.5rem;
  padding-left:  var(--bs-gutter-x, 1.5rem);
  padding-right: var(--bs-gutter-x, 1.5rem);
}

.navbar-brand {
  padding-top:    0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-link {
  padding-right: 0;
  padding-left:  0;
}

.nav-item  { /* structural */ }
.nav-link  {
  display: block;
  padding: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.nav-link:hover { opacity: 0.75; }

/* Toggler */
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Collapse */
.collapse:not(.show) { display: none; }
.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* lg: expand inline */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler { display: none; }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left:  0.5rem;
  }
}

/* ─────────────────────────────────────────
   DROPDOWN MOBILE FIX
───────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar .dropdown-menu {
    position: static;   /* esce dall'absolute, torna nel flusso */
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--orange-primary);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0.25rem;
    background-color: transparent;
    min-width: unset;
  }
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  top: 100%;
  left: 0;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #1e2125;
  background-color: #e9ecef;
}

/* ============================================================
   BOOTSTRAP ICONS — bi
   ============================================================ */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  width: 1em;
  height: 1em;
}

/* bi-eye: usato come pseudo-elemento su <i> tramite ::before */
.bi-eye::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor' width='1em' height='1em'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0'/%3E%3C/svg%3E");
  display: inline-block;
  width: 1em;
  height: 1em;
}

/* ============================================================
   FONT AWESOME — fa-spin
   ============================================================ */
@keyframes fa-spin {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}

.fa-spin { animation: fa-spin 2s linear infinite; }

/* ============================================================
   SHOW UTILITY (dropdown/collapse toggle via JS)
   ============================================================ */
/* già gestito in .dropdown-menu.show e .collapse */

/* ─────────────────────────────────────────
   VARIABILI & RESET
───────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap");

:root {
  --orange-primary: #e9530e;
  --orange-dark: #c94208;
  --yellow-primary: #f9af17;
  --yellow-light: #ffc947;
  --red-accent: #d32f2f;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --gray-text: #424242;
  --black: #1a1a1a;
  --lato: "Lato", sans-serif;
}

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

body {
  font-family: "Lato", sans-serif;
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
}

p {
  font-size: 1rem;
  font-family: "Lato", sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  box-shadow: 0 4px 30px rgba(233, 83, 14, 0.4);
}

/* Effetto quando si scrolla la pagina */
header.scrolled {
  box-shadow: 0 4px 30px rgba(233, 83, 14, 0.4);
  border-bottom: 1px solid #eee;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

main {
  position: relative;
}

/* ─────────────────────────────────────────
   NAVBAR & LOGO
───────────────────────────────────────── */
.navbar {
  z-index: 1000;
  --bs-navbar-padding-x: 1rem;
}

.navbar-brand {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.navbar .nav-link,
.dropdown-menu .dropdown-item {
  position: relative;
  color: var(--black) !important;
  text-transform: uppercase;
  transition: color 0.3s ease;

  /* Configurazione linea di fondo */
  background-image: linear-gradient(
    var(--orange-primary),
    var(--orange-primary)
  );
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition:
    background-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: transparent !important;
}

.navbar .navbar-nav li:first-child .nav-link {
  color: var(--yellow-primary) !important;
}

.navbar .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  background-size: 100% 2px;
}

.navbar .nav-link.active-page::after,
.dropdown-item.active-page::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange-primary);
  border-radius: 2px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-main {
  display: flex;
  align-items: baseline;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1;
}

.logo-mac {
  color: #f9af17;
  text-shadow: 1px 1px 3px rgba(249, 175, 23, 0.4);
}

.logo-mark {
  color: #e9530e;
  text-shadow: 1px 1px 3px rgba(211, 47, 47, 0.4);
}

.logo:hover .logo-mac {
  color: #ffc947;
}
.logo:hover .logo-mark {
  color: #ff6017;
}

.logo-subtitle {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--black);
  margin-top: 0.25rem;
  text-transform: uppercase;
  line-height: 1.4;
}

.brand-logo-img {
  height: 50px;
  width: auto;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

/* Nav links desktop */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav ul li {
  min-width: fit-content;
  transition: transform 0.1s ease-in-out;
}

nav ul li:hover {
  transform: translateY(-2px);
}

nav a {
  text-decoration: none;
  color: #f44336;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0rem 0.75rem;
  white-space: nowrap;
  
}

.nav-highlight {
  color: var(--orange-primary) !important;
  font-weight: 800 !important;
}

.servizi-dropdown {
  text-decoration: none;
  max-width: 60px !important;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar {
  padding: 15px 5%;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

/* ─────────────────────────────────────────
   BOTTONI GLOBALI
───────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--red-accent) 0%,
    var(--orange-primary) 100%
  );
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  min-width: fit-content;
  border: 3px solid var(--orange-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
  background: linear-gradient(
    135deg,
    var(--orange-primary) 0%,
    var(--yellow-primary) 100%
  );
  color: var(--white);
}

.btn-large {
  padding: 1.3rem 2.8rem;
  font-size: 0.95rem;
}

.btn-secondary {
  background: var(--white);
  color: var(--orange-primary);
  border: 3px solid var(--orange-primary);
  box-shadow: 0 4px 15px rgba(233, 83, 14, 0.2);
}

.btn-secondary:hover {
  background: var(--orange-primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(233, 83, 14, 0.4);
}

.btn-white {
  background: var(--white) !important;
  color: var(--orange-primary) !important;
  padding: 1.5rem 3.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 2px !important;
}

.btn-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--gray-light);
  color: var(--orange-primary);
}

.btn-cta {
  max-width: 200px;
}

@media (max-width: 768px) {
  .btn-cta {
    max-width: 200px;
    padding: 1rem;
  }
}

/* ─────────────────────────────────────────
   NAVBAR TOGGLER & MOBILE MENU
───────────────────────────────────────── */
.navbar-toggler {
  border-color: rgba(233, 83, 14, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28233%2C83%2C14%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  font-family: var(--lato);
}

@media (min-width: 1200px) {
  .navbar {
    padding: 15px 12%;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-wrap: nowrap;
  }
  .nav-link {
    font-size: clamp(0.6rem, 1vw, 1rem);
    padding: 0.5rem clamp(0.2rem, 0.5vw, 0.75rem) !important;
    white-space: nowrap;
  }
  .btn-primary {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    border-top: 2px solid rgba(233, 83, 14, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }
  nav ul li {
    width: 100%;
  }
  nav a {
    font-size: 0.95rem;
  }
  .header-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
    width: 100%;
  }
  .btn-primary {
    width: 50%;
    text-align: center;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--orange-primary) 0%,
    var(--yellow-primary) 100%
  );
  z-index: 2000;
  padding: 6rem 2rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}
.mobile-menu li {
  margin-bottom: 1.5rem;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  padding: 0.8rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* .mobile-menu a:hover {
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
} */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-menu:hover {
  background: var(--white);
  color: var(--orange-primary);
  transform: rotate(90deg);
}

/* ─────────────────────────────────────────
   FORM GLOBALI
───────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
  letter-spacing: 0.8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 4px rgba(233, 83, 14, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: 16px;
}

input::placeholder {
  font-family: "Lato", Sans-serif;
  font-size: 16px;
  color: #000000;
  opacity: 1;
}

.careers-form {
  --bs-gutter-x: 3rem;
}
/* ─────────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────────── */
.services {
  padding: 6rem 5%;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

h2 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--yellow-primary);
  opacity: 0.4;
  z-index: -1;
}

.section-header p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 600;
}

/* Service Cards Grid (fallback) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--orange-primary),
    var(--yellow-primary),
    var(--red-accent)
  );
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange-primary);
  box-shadow: 0 20px 40px rgba(233, 83, 14, 0.15);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--orange-primary), var(--red-accent));
  color: var(--white);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 50px rgba(233, 83, 14, 0.4);
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--orange-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.7;
}

.service-card svg {
  width: 100%;
  height: auto;
  max-height: 120px;
  display: block;
  margin: 0 auto 1rem;
}

.svg-primary {
  fill: #e9530e;
}
.svg-secondary {
  fill: #333;
}
.svg-outline {
  fill: none;
  stroke: #e9530e;
  stroke-width: 2;
}
.svg-bg {
  fill: #f8f9fa;
}

/* ─────────────────────────────────────────
   SERVICES CAROUSEL
───────────────────────────────────────── */
.services-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 15px 0;
  margin: -15px 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}

.carousel-track .service-card {
  flex: 0 0 auto;
  animation-delay: 0s !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--orange-primary);
  background: var(--white);
  color: var(--orange-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(233, 83, 14, 0.2);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow--prev {
  left: 0;
}
.carousel-arrow--next {
  right: 0;
}

.carousel-arrow:hover {
  background: var(--orange-primary);
  color: var(--white);
  transform: translateY(-60%) scale(1.1);
  box-shadow: 0 6px 18px rgba(233, 83, 14, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}

.carousel-dot.active {
  background: var(--orange-primary);
  width: 28px;
  border-radius: 5px;
}

.carousel-dot:focus, .slick-dots li button:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

@media (max-width: 767px) {
  .carousel-dot {
    width: 15px;
    height: 15px;
  }

  .carousel-dot.active {
    width: 30px;
    border-radius: 10px;
  }
}

@media (max-width: 575px) {
  .carousel-dot {
    width: 20px;
    height: 20px;
  }

  .carousel-dot.active {
    width: 35px;
  }
}

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--yellow-primary) 0%,
    var(--orange-primary) 50%,
    var(--red-accent) 100%
  );
  padding: 6rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.cta-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--white);
  margin-bottom: 2.5rem;
  font-weight: 600;
  opacity: 0.95;
}

.btn-cta-section {
  width: 50%;
}

/* Mobile small */
@media (max-width: 480px) {
  .cta-section {
    padding: 3em 5%;
  }

  .btn-large {
    width: 50%;
  }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #fafafa;
  color: rgba(0, 0, 0, 0.75);
  border-top: 3px solid var(--orange-primary);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 4rem 2rem 0;
  justify-items: center;
  align-items: start;
  justify-content: center;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: top;
}

.footer-logo-main {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
  line-height: 1;
}

.footer-logo-main .logo-mac {
  color: var(--yellow-primary);
}
.footer-logo-main .logo-mark {
  color: var(--orange-primary);
}

.footer-logo-subtitle {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.4;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  margin: 0;
}

.footer-col-title {
  font-family: "Lato", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-primary);
  justify-self: normal !important;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0;
}

.footer-links li,
.footer-links li p {
  font-size: 0.9rem;
  line-height: 1.5;
  align-items: center !important;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--orange-primary);
  padding-left: 6px;
}

.footer-links--info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(0, 0, 0, 0.65);
}

.footer-links--info li p {
  color: rgba(0, 0, 0, 0.65);
}

.footer-links--info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--orange-primary);
}

.footer-links--info p a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links--info p a:hover {
  color: var(--orange-primary);
  padding-left: 0;
}

.footer-col--cta {
  display: flex;
  flex-direction: column;
}

.footer-col--cta p {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  padding: 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.8;
}

.footer-bottom p {
  font-size: clamp(0.7rem, 0.5vw, 0.5rem);
}

@media (max-width: 1024px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-legale {
    justify-self: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: start;
  }

  .footer-legale {
    justify-self: unset;
  }

  .hero-content {
    align-items: center;
    justify-content: center;
  }

  .hero-buttons {
    align-items: center;
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 2rem;
  }
}

/* ─────────────────────────────────────────
   SCROLL TO TOP BUTTON
───────────────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: var(--orange-dark);
  border: 2px solid var(--orange-dark);
  border-radius: 50%;
  background-color: var(--white);
  color: var(--orange-dark);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  color: #ffffff;
  background-color: var(--orange-dark);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   COOKIE BANNER
───────────────────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  width: auto;
  min-width: 800px;
  max-width: 90%;
  background: var(--white);

  padding: 12px 30px;
  border-radius: 100px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

  z-index: 10000;

  animation: slideInPill 0.4s ease-out forwards;
}

@keyframes slideInPill {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.cookie-banner__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-icon {
  width: 24px;
  height: 24px;
  color: var(--black);
  opacity: 0.8;
}

.cookie-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.cookie-banner .actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-banner .btn-cookie-link,
.cookie-banner .btn-cookie-gray,
.cookie-banner .btn-cookie-accent {
  border: none;
  font-family: var(--lato);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 0;
}

.cookie-banner .btn-cookie-link {
  background: transparent;
  color: var(--black);
  text-decoration: underline;
  opacity: 0.9;
}

.cookie-banner .btn-cookie-link:hover {
  color: var(--orange-primary);
}
.cookie-banner .btn-cookie-gray {
  background: #f1f3f4;
  color: var(--black);
  padding: 10px 20px;
  border-radius: 50px;
}

.cookie-banner .btn-cookie-gray:hover {
  background: #e8eaed;
}

.cookie-banner .btn-cookie-accent {
  background: var(--orange-primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
}

.cookie-banner .btn-cookie-accent:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .cookie-banner {
    display: block;
    min-width: 0;
    width: calc(100% - 30px);
    border-radius: 24px;
    padding: 20px;
    bottom: 15px;
  }

  .cookie-banner__container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .cookie-content {
    width: 100%;
  }

  .cookie-banner p {
    white-space: normal;
    font-size: 0.85rem;
  }

  .cookie-banner .actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  /* Bottoni Mobile */
  .cookie-banner .btn-cookie-gray,
  .cookie-banner .btn-cookie-accent {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    font-size: 0.8rem;
  }

  .cookie-banner .btn-cookie-link {
    width: 100%;
    text-align: center;
    order: 3;
    margin-top: 5px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-banner .actions {
    flex-direction: column;
  }

  .cookie-banner .btn-cookie-gray,
  .cookie-banner .btn-cookie-accent {
    width: 100%;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE GLOBALI
───────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1200px) {
  .logo-main {
    font-size: 1.7rem;
  }
}

@media (max-width: 1000px) {
  .btn-primary {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 1.2rem 0.7rem;
  }
}

/* Tablet portrait */
@media (max-width: 991px) {
  .hamburger {
    display: none;
  }
  .illustration-content {
    min-width: 350px;
  }
}

/* Mobile large */
@media (max-width: 768px) {
  .logo-main {
    font-size: 1.5rem;
  }
  .logo-subtitle {
    font-size: 0.5rem;
    letter-spacing: 2px;
  }
  .brand-logo-img {
    height: 38px;
  }
  .btn-primary {
    font-size: 0.8rem;
    white-space: unset;
    padding: 1.2rem 0.7rem;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .btn-large {
    width: 50%;
    text-align: center;
    padding: 1rem 1.5rem;
    white-space: unset;
  }
}

/* ── Text Truncate (mobile) ── */

.m-text-truncate {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.m-text-truncate.is-collapsed {
  max-height: 200px;
}

.m-text-truncate.is-expanded {
  max-height: 1000px;
}

.m-text-truncate__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--bg-color, #fff));
  pointer-events: none;
  transition: opacity 0.3s;
}

.m-text-truncate.is-expanded .m-text-truncate__fade {
  opacity: 0;
}

.m-text-truncate__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.m-text-truncate__toggle .arrow {
  display: inline-block;
  transition: transform 0.3s;
  font-size: 11px;
}

.m-text-truncate__toggle.is-expanded .arrow {
  transform: rotate(180deg);
}

/* ─────────────────────────────────────────
   BADGE WHATSAPP
───────────────────────────────────────── */

.whatsapp-widget,
.whatsapp-widget * {
  box-sizing: border-box;
}

/* IL CONTENITORE PRINCIPALE */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  background: #25d366;
  height: 46px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);

  transition:
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.45s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  will-change: width, transform;
}

.whatsapp-widget--expanded {
  width: 240px;
  border-radius: 50px;
}

.whatsapp-widget--collapsed {
  width: 46px;
  border-radius: 50%;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
  padding: 0;
}

.whatsapp-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
}

.whatsapp-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.4s ease;
}

.whatsapp-widget--collapsed .whatsapp-content {
  opacity: 0;
  transform: translateX(-10px);

  transition:
    opacity 0.1s ease,
    transform 0.1s ease;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  line-height: 1.2;
}

.whatsapp-text strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.whatsapp-close {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  border: 2px solid #25d366;
  color: #25d366;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.whatsapp-widget--collapsed .whatsapp-close {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.whatsapp-widget:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-close:hover {
  background: #ff4d4d;
  color: #fff;
  border-color: #ff4d4d;
}

.whatsapp-widget:not(.whatsapp-widget--animated) {
  animation: widgetEntrance 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.whatsapp-widget:not(.whatsapp-widget--animated)::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: pulseRing 2s ease-out 0.3s 2;
  pointer-events: none;
}

.whatsapp-widget--hidden {
  opacity: 0;
  animation: widgetExit 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.whatsapp-close:active {
  transform: scale(0.95);
}

@keyframes pulseRing {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes widgetEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(4px);
  }
  40% {
    opacity: 0.8;
    transform: translateY(-6px) scale(1.02);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes widgetExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  60% {
    opacity: 0.7;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(4px);
  }
}

@media (max-width: 768px) {
  .whatsapp-widget--expanded {
    width: 220px;
  }
    .g-recaptcha {
    transform: scale(0.7);
    transform-origin: 0 0;
  }
}

.logo {
    max-width: 64px;
    min-width: 64px;
}


h2 {
  font-size: 3.2rem;
  color: var(--black);
  margin-bottom: 1rem;
  font-weight: 800;
  justify-self: center;
}

h2 span {
  color: var(--orange-primary);
  position: relative;
}

h2 span::after {
  display: none;
}

.divider-line-footer {
  display: block;
  width: 15rem;
  height: 1px;
  background: linear-gradient(90deg, var(--orange-primary), var(--yellow-primary));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}


.footer-btn {
  background: linear-gradient(
    135deg,
    var(--red-accent) 0%,
    var(--orange-primary) 100%
  );
  color: var(--white);
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  min-width: fit-content;
  border: 3px solid var(--orange-primary);
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  font-size: 0.8rem;
  margin-top: 15px;
  width: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: linear-gradient(90deg, var(--orange-primary, #e9530e), var(--yellow-primary, #f9af17)) !important;
  border: none;
}

p { margin: 0; }