/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* VARIABILI COLORI 
var(--bricks-color-ucpabk); ____ #060e0f; NERO
var(--bricks-color-iiwevb); ____ #148aa3; BLU CHIARO
var(--bricks-color-viahky); ____ #096275; BLU SCURO
var(--bricks-color-arwpja); ____ #ffffff; BIANCO
*/


/* TITOLI */
h1 {
  font-size: clamp(35px, 6vw, 55px);
  line-height: 1.1;
  font-weight: 400;
}
h2 {
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.2;
  font-weight: 400;
}
h3 {
  font-size: clamp(26px, 3vw, 21px);
  line-height: 1.3;
  font-weight: 400;
}
h6 {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.4;
  font-weight: 400;
}
/* testo base no tag h , usato come pre-intestaizione */
.pre-heading{
	font-size: clamp(14px, 2.5vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
	margin-bottom: var(--8);
}
/*simil h */
h2.servizi {
  font-size: clamp(35px, 6vw, 55px);
  line-height: 1.1;
  font-weight: 400;
}
.servizih2{
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.2;
  font-weight: 400;
}
/* PARAGRAFO */
p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: va(--bricks-color-hkgbig);
}

ul {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: va(--bricks-color-hkgbig);
}


/* CLASSI PERSONALIZZATE */
.testo-16-500 p {
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.5;
  font-weight: 500;
}
.testo-16-400 p {
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.5;
  font-weight: 400;
}

.testo-16-footer p {
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 2;
  font-weight: 400;
}

.testo-21 p {
  font-size: clamp(20px, 3vw, 21px) !important;
  line-height: 1.3;
  font-weight: 400;
}


.testo-26 {
  font-size: clamp(18px, 3vw, 26px) !important;
  line-height: 1.3;
  font-weight: 300;
}

.testo-32 {
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.3;
  font-weight: 400;
}

.testo-60 {
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.1;
  font-weight: 300;
}

.testo-85 {
  font-size: clamp(48px, 12vw, 85px);
  line-height: 1.05;
  font-weight: 200;
}


/* SEZIONI SFUMATE */
.sezione-sfumata-img {
  background:
    url('/wp-content/uploads/2025/07/Frame-1618873296.svg') no-repeat top right,
    linear-gradient(to bottom,
      #060e0f 0%,
      #060e0f 30%,
      #096275 70%,
      #096275 100%
    );
  background-size: 50, cover;
  background-repeat: no-repeat;
}

.sezione-sfumata-img-career {
  background:
    url('/wp-content/uploads/2025/07/Frame-1618873296.svg') no-repeat top right,
    linear-gradient(to bottom,
      #060e0f 0%,
      #060e0f 60%,
      #096275 80%,
      #096275 100%
    );
  background-size: 50, cover;
  background-repeat: no-repeat;
}
.sezione-sfumata-img-azienda {
  background:
    url('/wp-content/uploads/2025/07/Frame-1618873296.svg') no-repeat top right,
    linear-gradient(to bottom,
      #060e0f 0%,
      #060e0f 60%,
      #096275 80%,
      #096275 100%
    );
  background-size: 50, cover;
  background-repeat: no-repeat;
}

/* IMMAGINI */
.img-h600 {
  height: 600px;
  width: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Su mobile: altezza automatica */
@media (max-width: 767px) {
  .img-h600 {
    height: auto;
    width: 100%;
    object-fit: contain;
  }
}




/* FRECCIA LEGGI L'ARTICOLO */
/* Contenitore bottone */
#button-news {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: fit-content;
  cursor: pointer;
  width: 150px;
}

/* Contenitore interno per animare */
.button-news .arrow-news {
  position: absolute;
  left: 0;
  transition: left 0.4s ease;
}

/* Testo inizialmente invisibile */
.button-news .read-more-news {
  opacity: 0;
  padding-left: 0;
  margin-left: 0;
  transition: opacity 0.4s ease, margin-left 0.4s ease;
  white-space: nowrap;
}

/* Hover: mostra testo e sposta freccia */
#grid-block:hover .read-more-news {
  opacity: 1;
  margin-left: 0px; 
}

#grid-block:hover .arrow-news {
  left: 100%; 
  transform: translateX(-100%); 
}

/* Button torna indietro */
#button-career {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.torna-indietro {
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s ease;
  white-space: nowrap;
}

#button-career:hover .torna-indietro {
  transform: translateX(0);
  opacity: 1;
}


/* GRID SERVIZI */
/* Nasconde il pulsante "Leggi di più" inizialmente */
#leggidipiu-grid-servizi {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Imposta una transizione anche per il blocco descrizione */
#blocco-descrizione-grid-servizio {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover sul blocco: cambia sfondo con transizione */
#blocco-grid-servizio {
  transition: background-color 0.3s ease;
}

#blocco-grid-servizio:hover {
  background-color: var(--bricks-color-viahky); 
}

/* Nasconde descrizione e mostra il bottone con transizione */
#blocco-grid-servizio:hover #blocco-descrizione-grid-servizio {
  opacity: 0;
  visibility: hidden;
}

#blocco-grid-servizio:hover #leggidipiu-grid-servizi {
  opacity: 1;
  visibility: visible;
}

/* FORM CANDIDATURA */
.form-group.file {
  padding: 50px 20px;
  text-align: center;
  position: relative;
  border: none;
  color: #fff;
  font-family: sans-serif;
}

.form-group.file input[type="file"] {
  display: none;
}

.form-group.file > label:first-of-type {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 14px;
  color: #ccc;
}

.form-group.file .choose-files {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 30px;
  transition: all 0.3s ease;
}

.form-group.file .choose-files:hover {
  background-color: transparent;
}

.form-group.file .choose-files::before {
  content: "";
  display: block;
  width: 40px;
  height: 48px;
  background-image: url('/wp-content/uploads/2025/07/Upload.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 0px;
}

/* TESTO sotto l’icona */
.form-group.file .choose-files .file-label-text {
  font-size: 13px !important;
  color: #aaa;
  transition: opacity 0.3s;
}
.choose-files {
  font-size: 14px !important;
}
.form-group.file > label:first-of-type {
  left: 0px !important;
}

/* Su mobile */
@media (max-width: 767px) {
  .form-group.file > label:first-of-type {
  left: 5px !important;
}
}
.bricks-button.remove {
  background: #fff !important;
}
.bricks-button.remove:hover {
  background: var(--bricks-color-iiwevb) !important;
}

.immagine-copertina-articolo {
  height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

form .options-wrapper label[for="form-field-d09105-0"] {
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-block; /* se vuoi avere pieno controllo del line-height */
}

@layer bricks {
  :where(.brxe-form) .options-wrapper label {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
}

/* Freccia filtro */
@layer bricks {
  select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-image: linear-gradient(45deg,transparent 50%,#fff 0),linear-gradient(135deg,white 50%,transparent 0);
    background-position: calc(100% - 20px) calc(50% + 2px),calc(100% - 16px) calc(50% + 2px);
    background-repeat: no-repeat;
    background-size: 4px 4px,4px 4px;
    border-radius: 0;
  }
}