/*
 Theme Name:   Bricks Child alexweb
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Color+Emoji&display=swap");

:root {
  /*FONT*/
  --font-family-base: "Inter", sans-serif;
  --font-family-heading: "Inter", sans-serif;
  --heading-line-height: 120%;
  --body-line-height: 150%;
  /*COLORI*/
  --primary: #ffc067;
  --secondary: #75cff0;
  --light-orange: #fff4e5;
  --light-rose: #ffece7;
  --light-blue: #e8f5ff;
  --black-text: #2f2f2f;
  --grey: #6c6b6b;
  /*LAYOUT*/
  --lt-radius-large: 34px;
  --lt-section-padding: 60px;
  /*BUTTON*/
  --global--size: clamp(32px, 4vw, 80px); /* da clamp(2rem, 4vw, 5rem) */
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --lt-real-vh: 1vh;
}

@font-face {
  font-family: "Instrument Serif";
  font-weight: normal;
  font-style: normal;
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Instrument Serif";
  font-weight: normal;
  font-style: italic;
  src: url("assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
}

*:not(span, .joinchat__tooltip *) {
  font-family: "Inter", sans-serif;
  line-height: var(--body-line-height);
}

*[id] {
  scroll-margin-top: 80px;
}

@media (min-width: 1024px) {
  html {
    scroll-behavior: smooth;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.fake-h1,
.fake-h2,
.fake-h3,
.fake-h4,
.fake-h5,
.fake-h6 {
  line-height: var(--heading-line-height);
  margin: 0;
}

h1,
.fake-h1 {
  font-size: clamp(40px, 5vw, 56px); /* da clamp(2.5rem, 5vw, 3.5rem) */
  font-weight: 700;
  text-transform: none;
}
h2,
.fake-h2 {
  font-size: clamp(32px, 4vw, 44px); /* da clamp(2rem, 4vw, 2.75rem) */
  font-weight: 600;
  text-transform: none;
}
h3,
.fake-h3 {
  font-size: clamp(24px, 3.5vw, 36px); /* da clamp(1.5rem, 3.5vw, 2.25rem) */
  font-weight: 600;
}
h4,
.fake-h4 {
  font-size: clamp(20px, 3vw, 24px); /* da clamp(1.25rem, 3vw, 1.5rem) */
  font-weight: 600;
}
h5,
.fake-h5 {
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.body-text-B1,
.body-text-B2,
.body-text-B3,
.body-text-B4,
.body-text-B5 {
  line-height: var(--body-line-height);
  font-weight: 400;
}

.emoji-font {
  font-family: "Noto Color Emoji", "Inter", sans-serif;
}

.body-text-B1 {
  font-size: 20px;
}

.body-text-B2,
.body-text-B3 {
  font-size: 17px;
}

.body-text-B4 {
  font-size: 15px;
}

.body-text-B5 {
  font-size: 11px;
}

.lt-padding-t-b {
  padding: var(--lt-section-padding) 0;
}

.skip-link {
  display: none;
}

.lt-section-container {
  width: 1250px;
  max-width: 92%;
  margin: 0 auto;
}
.lt-section-container-text {
  width: 900px;
  max-width: 92%;
  margin: 0 auto;
}
.lt-section-container-92 {
  width: 1920px;
  max-width: 92%;
  margin: 0 auto;
}
.lt-section-container-full {
  width: 2000px;
  max-width: 100%;
  margin: 0 auto;
}

.gradient-bg,
.gradient-button,
.wpcf7 input[type="submit"] {
  background: linear-gradient(220deg, #ffc067 0%, #ffc9a1 40%, #75cff0 100%);
}
.gradient-txt {
  background: linear-gradient(220deg, #ffc067 0%, #ffc9a1 40%, #75cff0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ========== GLASS CARD STYLES ========== */
.glass-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 1px 1px 0 -0.5px #ffffff20,
    inset -1px -1px 0 -0.5px #ffffff10,
    inset 0 0 0.5px #ffffff40,
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 0 2px rgba(255, 255, 255, 0.1);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle-2) at 50% 50%,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0) 60%
  );
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  transition:
    background-position 0.6s ease,
    --angle-2 0.6s ease;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Button Wrap Container */
.button-wrap {
  position: relative;
  z-index: 2;
  border-radius: 999vw;
  background: transparent;
  pointer-events: none;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

/* Button Shadow Container */
.button-shadow {
  --shadow-cuttoff-fix: 32px; /* da 2em */
  position: absolute;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(2px, 2px, 12px)); /* da 0.125em */
  -webkit-filter: blur(clamp(2px, 2px, 12px));
  -moz-filter: blur(clamp(2px, 2px, 12px));
  -ms-filter: blur(clamp(2px, 2px, 12px));
  overflow: visible;
  pointer-events: none;
}

.button-shadow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 999vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  width: calc(100% - var(--shadow-cuttoff-fix) - 4px); /* da 0.25em */
  height: calc(100% - var(--shadow-cuttoff-fix) - 4px);
  top: calc(var(--shadow-cuttoff-fix) - 8px); /* da 0.5em */
  left: calc(var(--shadow-cuttoff-fix) - 14px); /* da 0.875em */
  padding: 2px; /* da 0.125em */
  box-sizing: border-box;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}
@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

.button-wrap button {
  --border-width: clamp(1px, 1px, 4px); /* da 0.0625em */
  all: unset;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  pointer-events: auto;
  z-index: 3;
  background: linear-gradient(
    -75deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 999vw;
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    /* 0.125em */ inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 4px 2px -2px rgba(0, 0, 0, 0.2),
    /* 0.25em,0.125em,-0.125em */ 0 0 1.6px 4px inset rgba(255, 255, 255, 0.2); /* 0.1em,0.25em */
  backdrop-filter: blur(clamp(1px, 2px, 4px)); /* da 0.125em */
  -webkit-backdrop-filter: blur(clamp(1px, 2px, 4px));
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap button:hover {
  transform: scale(0.975);
  backdrop-filter: blur(0.16px); /* da 0.01em */
  -webkit-backdrop-filter: blur(0.16px);
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 2.4px 0.8px -1.6px rgba(0, 0, 0, 0.25),
    /* 0.15em,0.05em,-0.1em */ 0 0 0.8px 1.6px inset rgba(255, 255, 255, 0.5); /* 0.05em,0.1em */
}

.button-wrap button span {
  position: relative;
  display: block;
  user-select: none;
  letter-spacing: -0.8px; /* da -0.05em */
  font-weight: 500;
  font-size: 16px; /* da 1em */
  text-shadow: 0px 4px 0.8px rgba(0, 0, 0, 0.1); /* 0.25em,0.05em */
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  padding-inline: 24px; /* da 1.5em */
  padding-block: 14px; /* da 0.875em */
  text-transform: uppercase;
}

.button-wrap button span::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  box-sizing: border-box;
  border-radius: 999vw;
  overflow: clip;
  background: linear-gradient(
    var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 40% 50%,
    rgba(255, 255, 255, 0) 55%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition:
    background-position calc(var(--anim--hover-time) * 1.25)
      var(--anim--hover-ease),
    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.button-wrap button:hover span::after {
  background-position: 25% 50%;
}

.button-wrap button:active span::after {
  background-position: 50% 15%;
  --angle-2: -15deg;
}

@media (hover: none) and (pointer: coarse) {
  .button-wrap button span::after,
  .button-wrap button:active span::after {
    --angle-2: -45deg;
  }
}

.button-wrap button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 999vw;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background:
    conic-gradient(
      from var(--angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5% 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60% 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition:
    all var(--anim--hover-time) var(--anim--hover-ease),
    --angle-1 500ms ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.button-wrap button:hover::after {
  --angle-1: -125deg;
}

.button-wrap button:active::after {
  --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
  .button-wrap button::after,
  .button-wrap button:hover::after,
  .button-wrap button:active::after {
    --angle-1: -75deg;
  }
}

.button-wrap:has(button:hover) .button-shadow {
  filter: blur(clamp(2px, 1px, 6px)); /* da 0.0625em */
  -webkit-filter: blur(clamp(2px, 1px, 6px));
  transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(button:hover) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 14px); /* da 0.875em */
  opacity: 1;
}

.button-wrap:has(button:active) {
  transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(button:active) button {
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 2px 2px -2px rgba(0, 0, 0, 0.2),
    0 0 1.6px 4px inset rgba(255, 255, 255, 0.2),
    0 3.6px 0.8px 0 rgba(0, 0, 0, 0.05),
    0 4px 0 0 rgba(255, 255, 255, 0.75),
    inset 0 4px 0.8px 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(button:active) .button-shadow {
  filter: blur(clamp(2px, 2px, 12px)); /* da 0.125em */
  -webkit-filter: blur(clamp(2px, 2px, 12px));
}

.button-wrap:has(button:active) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 8px); /* da 0.5em */
  opacity: 0.75;
}

.button-wrap:has(button:active) span {
  text-shadow: 0.4px 4px 0.8px rgba(0, 0, 0, 0.12); /* da 0.025em,0.25em,0.05em */
}

.wpcf7 select {
  color-scheme: dark;
}

.button-gr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; /* da 2.25rem */
  height: 36px; /* da 2.25rem */
  border-radius: 9999px;
}

.gradient-button,
.wpcf7 input[type="submit"] {
  padding-top: 12px; /* py-3 */
  padding-bottom: 12px;
  padding-left: 20px; /* px-5 */
  padding-right: 20px;
  gap: 10px; /* gap-2.5 */
  width: 100%; /* w-full */
  text-transform: uppercase;
  color: var(--color-black-text);
  font-size: 16px; /* text-base */
  line-height: 24px;
  font-weight: 700; /* font-bold */
  text-align: center;
  border-radius: 9999px; /* rounded-full */
  transition-duration: 600ms;
  transition-timing-function: ease-out;
  transition-property: transform;
}

.gradient-button:hover,
.wpcf7 input[type="submit"]:hover {
  transform: scale(1.03);
}

@media (min-width: 640px) {
  .gradient-button,
  .wpcf7 input[type="submit"] {
    width: fit-content;
  }
}

.cursor {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--primary);
  border-radius: 50%;
  mix-blend-mode: difference; /* effetto invert per adattarsi allo sfondo */
  transition: background 0.2s ease-out;
  z-index: 9999; /* sempre in primo piano */
  display: none; /* nascosto di default */
  pointer-events: none;
  opacity: 0.4; /* leggera trasparenza */
}

.anim-text .word {
  opacity: 0;
  transform: translateY(120px) rotateX(80deg);
  display: inline-block; /* serve per applicare i transform correttamente */
}

.special-font {
  font-family: "Instrument Serif", serif;
  font-size: 1em;
  letter-spacing: 2px;
  font-style: italic;
}

.h1-special,
.sub-title-special {
  text-align: left;
  color: white;
}

.sub-title-special {
  font-size: clamp(26px, 3vw, 42px);
  line-height: var(--heading-line-height);
  font-family: "Instrument Serif", serif;
}

@media (min-width: 640px) {
  .h1-special,
  .sub-title-special {
    text-align: center;
  }
}

.h1-special {
  font-size: clamp(50px, 5vw, 95px);
  letter-spacing: -2px;
  line-height: var(--heading-line-height);
}

.h2-special {
  font-size: clamp(42px, 4.2vw, 72px);
  letter-spacing: -2px;
  line-height: var(--heading-line-height);
}

.h3-special {
  font-size: clamp(32px, 3.2vw, 56px); /* più piccolo */
  letter-spacing: -2px;
  line-height: var(--heading-line-height);
}

@media (min-width: 1024px) {
  .h1-special {
    letter-spacing: -3.5px;
  }
}

p {
  margin: 0;
}

.lt-white-text {
  color: white;
}

.card,
.card-black {
  border-radius: var(--lt-radius-large);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.card {
  background-color: #ffffff;
  color: var(--black-text);
  transition: transform 600ms ease-out;
}

.card:hover {
  transform: scale(1.02);
}

.card-black {
  background-color: #2c2c2c;
  color: #ffffff;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.card-gradient {
  width: 36px;
  height: 36px;
  border-radius: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.card .card-content,
.card-black .card-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: 100%;
}

.card-black.active {
  border: 1px solid #6c6b6b;
}

/* rende la citazione allineata al fondo della card */
/* .card-text {
  flex: 1 1 auto;
} */

.card-cit {
  color: #737373;
}

.bg-dark-grey {
  background-color: rgba(255, 255, 255, 0.1);
}

.card-black.outline {
  border: 1px solid var(--grey);
}

.arrow {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 300ms ease-out;

  &:hover {
    transform: scale(1.1);
  }
}

/* ── Input e textarea ────────────────────────────────────────────────────── */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
  width: 100%;
  border-radius: 9999px;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid transparent;
  outline: none;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;

  &::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  &:focus {
    box-shadow: 0 0 0 2px #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* ── Textarea: angoli più larghi e altezza fissa ─────────────────────────── */

.wpcf7 textarea {
  border-radius: var(--lt-radius-large);
  height: 128px;
  resize: none;
}

/* ── Margini tra i campi ─────────────────────────────────────────────────── */

/* .wpcf7 p {
  margin-bottom: 16px;
} */

/* ── Spinner nascosto ────────────────────────────────────────────────────── */

.wpcf7-spinner {
  display: none;
}

/* ── Messaggi di output ──────────────────────────────────────────────────── */

.wpcf7-response-output {
  margin-top: 16px;
  font-size: 14px;
  color: #ffffff;
}

/* ── Layout a colonne ────────────────────────────────────────────────────── */

.wpcf7-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .wpcf7-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── GDPR checkbox ───────────────────────────────────────────────────────── */

.wpcf7 .wpcf7-acceptance,
.wpcf7-acceptance label .wpcf7-list-item-label,
.wpcf7-acceptance label {
  font-size: 14px;
  line-height: 135%;
  color: white;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary);
}

.wpcf7 .wpcf7-acceptance a {
  text-decoration: underline;
  transition: color 200ms ease;
  color: var(--secondary);
}

/* ── Submit ──────────────────────────────────────────────────────────────── */

.wpcf7 .wpcf7-submit {
  width: 100%;
  margin-top: 0;
}

/* ── Colonna intera ──────────────────────────────────────────────────────── */

.col-2-cf7 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .col-2-cf7 {
    grid-column: span 2;
  }
}

/* ── Select ──────────────────────────────────────────────────────────────── */

.wpcf7 select {
  width: 100%;
  border-radius: 9999px;
  padding: 12px 40px 12px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid transparent;
  outline: none;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' fill='none' stroke='white' stroke-width='15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;

  &:focus {
    box-shadow: 0 0 0 2px #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
  }

  &::picker(select) {
    background-color: #ffffff;
    color: var(--black-text);
    border-radius: var(--lt-radius-large);
  }
}

.wpcf7 select option {
  &:hover {
    background-color: var(--primary);
  }
}
