/*
 Theme Name:   archv
 Theme URI:    http://generatepress.com
 Description:  GeneratePress child theme
 Author:       Francesco Cipriani
 Author URI:   https://francescocipriani.com/
 Template:     generatepress
 Version:      0.1
 Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, fluid-layout, responsive-layout, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, light, white, dark, black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, yellow
*/


.scroll-reveal-text span {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

#masthead .gp-icon svg {
  height: 2em!important;
  width: 2em!important;
}

.header-wrap .site-header {
  background-image: linear-gradient(180deg,rgba(0,0,0,0.5) 70%,#fff0 100%);
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.2;
  /*text-align: justify;
  hyphens: auto;*/
}

h1,h2,h3,h4,h5 {
  font-family: "Roboto", sans-serif;
}

h1, h2, h3 {
  font-weight: 600;
}

:is(h1, h2, h3):not(.scroll-reveal-text) {
/*  background: linear-gradient(60deg, var(--contrast), #555, var(--contrast));*/
    background: linear-gradient(60deg, var(--contrast-2), #3b3b3b, var(--contrast-2));
    background-clip: border-box;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

:is(.dark-bckgrd, .page-hero) :is(h1, h2, h3) {
/*  background: linear-gradient(60deg, var(--global-color-8), var(--base-3), var(--contrast-3));*/
  background: linear-gradient(60deg, var(--global-color-8), var(--base-2), var(--global-color-8));
  background-clip: border-box;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size:6em;
  line-height: 1.1em;
}

h2 {
  font-size:4em;
  line-height: 1.1em;
}

h3 {
  font-size:2.8em;
  line-height: 1.1em;
}

h4 {
  font-size:1.6em;
}

h5 {
  font-size: 1.8em;
}

.page-hero h1 {
  line-height: .9;
  color: var(--base-2);
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 0;
}

.page-hero h3 {
  font-weight: normal;
  color: var(--base-2);
  line-height: 1.1;
  text-align: center;
}

.giustificato-sillabato {
  text-align: justify;
  hyphens: auto;
}


body.slide-opened .main-navigation, .main-navigation ul ul {
  background-color: rgba(0,0,0,0.9);
}

.main-navigation .menu-bar-item > a {
  padding-left: 0;
  padding-right: 0;
}

.main-navigation .main-nav ul li > a {
  font-size: 1.8em;
  line-height: 1.1em;
  font-weight: 600;
}

/* --- PULSANTI --- */

:is(a,input).scopri {
  align-items: center;
  background-color: var(--contrast-2);
  color: var(--base-3);
  column-gap: 0.5em;
  display: inline-flex;
  text-decoration: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 40px;
  border: 1px solid var(--contrast-2);
}

:is(a, input).scopri:hover {
  background-color: var(--global-color-8);
  color: var(--contrast-2);
  border: 1px solid var(--contrast-2);
}

:is(a,input).scopri-red {
  align-items: center;
  background-color: var(--accent);
  color: var(--base-3);
  column-gap: 0.5em;
  display: inline-flex;
  text-decoration: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 40px;
}

:is(a,input).scopri-red:hover {
  background-color:var(--contrast-3);
  color: var(--base-3);
}

:is(a,input).scopri-white {
  align-items: center;
  background-color: var(--base-3);
  color: var(--accent);
  column-gap: 0.5em;
  display: inline-flex;
  text-decoration: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 40px;
  border:1px solid var(--base-3);
}

:is(a,input).scopri-white:hover {
  background-color:var(--accent);
  color: var(--base-3);
}

:is(a,input).scopri-border {
  align-items: center;
  background-color:var(--accent);
  color: var(--base-3);
  column-gap: 0.5em;
  display: inline-flex;
  text-decoration: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 40px;
  border:1px solid var(--base-3);
}

:is(a,input).scopri-border:hover {
  background-color: var(--base-3);
  color: var(--accent);
}


:is(a,input).cta-1 {
  background-color: var(--accent);
  padding: 0.6rem 2rem;
  border-radius: 4px;
}

:is(a,input).cta-1:hover {
  background-color: var(--contrast);
  color: var(--base-3);
}

body.page-id-91 .slideout-toggle {
  color: var(--contrast)!important;
}


/* --- HERO --- */

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: -106px;
  z-index: -1;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--base);
  opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-content h1 {
    color: #fff;
    font-size: 7em;
    line-height: 1em;
    max-width: 800px;
}

body.home .inside-page-hero h1 {
  font-size: 7em;
}




div.numeri > div {
  border-radius: 10px !important;
  padding: 20px;
  background: var(--base-2);
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

div.numeri > div p {
  margin-bottom: 0;
}




.step-arrow {
  color: var(--accent);
  font-size: 2em;
}

h5 {
  color: var(--accent);
  text-transform: lowercase;
  font-weight: bold;
  font-style: italic;
  font-family: "Roboto", serif;
}

div.il-problema {
  background-color: var(--base);
  padding: 50px 0;
}

div.i-numeri {
  background-color: var(--base-2);
  padding: 50px 0;
}

div.la-soluzione {
  background-color: var(--base-3);
  padding: 50px 0;
}

div:is(.il-problema,.la-soluzione,.i-numeri) > div {
  max-width: 960px;
  margin-left: auto;
  margin-right:auto;
  padding: 40px;
}

/* --- TESTI SU FONDO --base- O --accent- ---
   Il gruppo :is() assume la specificità del selettore più forte (#cta-finale),
   così queste regole battono il gradiente clippato di :is(h1,h2,h3) più sopra.
   Serve -webkit-text-fill-color: senza, il gradiente vince sul color. */

:is(.il-problema, #diversi, #cta-finale) {
  color: var(--base-2);
}

:is(.il-problema, #diversi, #cta-finale) :is(h1, h2, h3, h4, h5, p, li),
div.i-numeri > div > div > div :is(h1, h2, h4, h5, p, li) {
  color: var(--base-2);
  -webkit-text-fill-color: var(--base-2);
  background: none;   /* annulla il gradiente clippato sul testo */
}

#cta-finale ul {
  font-size: 1.2em;
  line-height: 1.3em;
}

/* link e pulsanti mantengono il proprio colore: -webkit-text-fill-color si eredita */
:is(.il-problema, #diversi, #cta-finale) :is(a, button, input) {
  -webkit-text-fill-color: currentColor;
}

div:is(.il-problema, .la-soluzione, .i-numeri) > div > div > div {
  background-color: #ffffff1a;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

div.i-numeri > div > div > div {
  background-color: var(--accent);
  border-radius: 10px;
  text-align: center;
  color: var(--base-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

div.i-numeri > div > div > div h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73px;
  height: 73px;
  margin: .6rem auto;
  border-radius: 50%;
  background: var(--base-3);
  color: var(--contrast-2);
  font-size: 1.6rem;
  font-style: normal;
  -webkit-text-fill-color: var(--contrast-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

#diversi {
  background-color: var(--base);
  padding: 50px 40px;
}

#diversi > div > div > div {
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  background-color: #ffffff1a;
}

#diversi > div > div > div p {
  margin-bottom: 0;
}

#casi > div > div {
  border-radius: 5px;
  background-color: var(--global-color-8);
}

#cta-finale {
  background-color: var(--accent);
  padding: 50px 40px;
  margin-bottom: -50px;
}

#cta-finale > div {
  max-width: 960px;
  margin-left: auto;
  margin-right:auto;
  padding: 40px;
}

.generate-back-to-top {
  border-radius: 30px;
}

/* --- PULSANTE WHATSAPP --- */

.archv-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;              /* speculare al back-to-top, che sta a destra */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: background-color 300ms ease-in-out, transform 300ms ease-in-out;
}

.archv-whatsapp:hover,
.archv-whatsapp:focus {
  background-color: #1da851;
  color: #fff;
  transform: scale(1.1);
}

.archv-whatsapp:focus-visible {
  outline: 2px solid var(--contrast-2);
  outline-offset: 3px;
}

.archv-whatsapp svg {
  display: block;
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .archv-whatsapp { transition: none; }
  .archv-whatsapp:hover { transform: none; }
}

figcaption {
  font-size: .8em;
  margin-top: 8px;
}

/* --- COME FUNZIONA --- */

#come-funziona-page > div > div > H4 > strong > em {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--base-3);
    font-size: 1.2rem;
    font-style: normal;
    line-height: 1;
  }


#come-funziona-page > div > div {
    margin-top: .6rem;
    padding: 50px;
    background: var(--base-2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

#come-funziona-page > div > div > :is(p,ul,h4) {
    text-align: justify;
    hyphens: auto;
}




/* ===== Layout a cerchio — solo desktop con hover ===== */
@media (min-width: 769px) and (hover: hover) {

  .archv-come.circle-list {
    display: block;          /* neutralizza il grid di GenerateBlocks */
    position: relative;
    width: 680px;
    height: 560px;
    max-width: 100%;
    margin: 3rem auto 5rem;  /* il margine basso lascia spazio ai tooltip */
    --r: 230px;              /* raggio del cerchio */
    --card: 200px;           /* larghezza di ogni punto: lascia ~25° di varco per le frecce */

    /* 4 archi con punta di freccia: 1→2→3→4→5 (aperto, nessun ritorno da 5 a 1).
       Lo stroke-width='3' regola lo spessore */
    --frecce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 540'%3E%3Cpath d='M379.6 45.3A250 250 0 0 1 443.7 90.2M517.6 304.8A250 250 0 0 1 494.7 379.6M313.4 516.2A250 250 0 0 1 235.2 517.6M49.3 387.4A250 250 0 0 1 23.8 313.4' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M461.5 109.3L449.9 83.7L437.4 96.6ZM482.0 402.5L502.8 383.5L486.6 375.6ZM209.5 512.6L234.0 526.5L236.5 508.7ZM20.6 287.4L14.9 315.0L32.7 311.8Z' fill='%23000'/%3E%3C/svg%3E");
  }

  /* frecce curve che uniscono i cinque punti */
  .archv-come.circle-list::before {
    content: "";
    position: absolute;
    inset: calc(50% - var(--r) - 20px);
    background-color: var(--accent);   /* il colore delle frecce si cambia qui */
    -webkit-mask-image: var(--frecce);
            mask-image: var(--frecce);
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    pointer-events: none;
  }

  .archv-come.circle-list > div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--card);
    padding: 0;
    text-align: center;
    transform:
      translate(-50%, -50%)
      rotate(calc(72deg * var(--i)))
      translateY(calc(-1 * var(--r)))
      rotate(calc(-72deg * var(--i)));
  }

  .archv-come.circle-list > div:nth-child(1) { --i: 0; }
  .archv-come.circle-list > div:nth-child(2) { --i: 1; }
  .archv-come.circle-list > div:nth-child(3) { --i: 2; }
  .archv-come.circle-list > div:nth-child(4) { --i: 3; }
  .archv-come.circle-list > div:nth-child(5) { --i: 4; }

  /* il numero: primo h4 → badge tondo */
  .archv-come.circle-list > div > h4:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--base-3);
    font-size: 1.2rem;
    font-style: normal;    /* annulla gli <em> */
    line-height: 1;
  }

  /* il titolo */
  .archv-come.circle-list > div > h3 {
    margin: 0;
    font-size: 1.40rem;
    font-style: normal;
    line-height: 1.3;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
  }

  /* la descrizione: ultimo h4 → tooltip al hover */
  .archv-come.circle-list > div > h4:last-of-type {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 280px;
    margin-top: .6rem;
    padding: .85rem 1rem;
    background: var(--base-2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    font-size: .875rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 3;
    text-align: justify;
    hyphens: auto;
  }

  .archv-come.circle-list > div:hover { z-index: 5; }
  .archv-come.circle-list > div:hover > h4:last-of-type {
    opacity: 1;
    visibility: visible;
  }

  /* le frecce ↓ non hanno senso in cerchio */
  .archv-come.circle-list .step-arrow { display: none; }
}










/* --- CONTATTI --- */

.contatti-form {
  margin: 60px auto;
  border: 1px solid;
  padding: 40px;
  border-radius: 5px;
}

.contatti-form label.form-title {
  font-size: 1.5em;
  font-weight: 500;
  font-style: italic;
  margin-top: 20px;
}

.contatti-form input:not([type="checkbox"]) {
  width: 100%;
}

.contatti-diretti {
  
}


/* --- FOOTER --- */

.widget-title {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-widgets .widget {
  margin-bottom: 20px;
}





/* --- MOBILE --- */


@media (max-width: 768px) {

  	.site-header .header-image {
	  width: 140px;
	}
	
	.contatti-form {
    margin: 40px auto;
    padding: 15px;
  }
	
	body.home .inside-page-hero h1 {
		font-size: 3.4em;
		hyphens: auto;
	}

  h1 {
    font-size:3.4em;
    line-height: 1.1em;
  }

  h2 {
    font-size:2.6em;
    line-height: 1.1em;
  }

  h3 {
    font-size:1.4em;
    line-height: 1.1em;
  }

  h4 {
    font-size:1.3em;
  }

  h5 {
    font-size: 1.2em;
  }

  .page-hero h1 {
    line-height: .9;
  }

  .archv-come > div {
    padding: 60px 20px 40px;
  }

  div:is(.il-problema, .la-soluzione, .i-numeri) > div {
    padding: 15px;
  }

  #cta-finale {
    padding: 0;
  }

  #cta-finale > div {
    padding: 40px 20px;
  }

  #come-funziona > div > div > H4 > strong > em {
    /*background-color: var(--accent);
    padding: 14px 24px;
    border-radius: 30px;
    font-family: "Open Sans", sans-serif;
    font-style: normal;*/
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--base-3);
    font-size: 1.2rem;
    font-style: normal;
    line-height: 1;
  }

  .archv-come > div {
    padding: 60px;
    background: var(--global-color-8);
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }

  .archv-come > div p {
    text-align: justify;
  }

  #diversi {
    padding: 50px 15px;
  }

  #come-funziona-page > div > div {
    padding: 50px 20px;
  }

} 










