/*
 Theme Name:   UnSitoFattoBene.it
 Description:  Tema Custom
 Author:       Viola Niccolai
 Author URI:   https://unsitofattobene.it 
 Template:     generatepress
 Version:      1.4
*/

/* ! Reset */

body, html{
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
    
  *,*:before,*:after{
    box-sizing: border-box;
  }

  h1,h2,h3,h4,h5,h6, p, ol, ul, a {
    margin: 0;
    padding: 0;
  }

  p, ol, ul, a {
    line-height: 1.3;
  }




  /* ! Title System */
  /* --------------------------------------------------------- */


.text-0{
    font-size: clamp(2.5rem, 1.408rem + 4.66vw, 7rem);
    line-height: 1;
  }

  h1, .text-1{
    font-size: clamp(2rem, 1.272rem + 3.107vw, 3.5rem);
  }

  h2, .text-2{
    font-size: clamp(1.75rem, 1.509rem + 1.243vw, 2.4rem);
  }

  h3, .text-3{
    font-size: clamp(1.4rem, 1.006rem + 0.828vw, 1.7rem);
  }

  h4, .text-4{
    font-size: clamp(1.1rem, 0.865rem + 0.828vw, 1.38rem);
  }

  p, ol, ul{
    font-size: clamp(1rem, 0.863rem + 0.198vw, 1.05rem);
  }

  .title-small {

  font-size: 1em;
  font-family: var(--gp-font--manrope);
  text-transform: uppercase;
  }

  h1, h2, h3, h4, p, ol, ul{
    margin-bottom: 1rem;
  }

/* ! HEADER */
 /* --------------------------------------------------------- */
 
#site-navigation {
  position: relative;
  z-index: 100;
}

#site-navigation,
#sticky-navigation {
  position: relative;
  overflow: visible !important;
}

#site-navigation .inside-navigation,
#sticky-navigation .inside-navigation {
  overflow: visible !important;
}

#site-navigation::after,
#sticky-navigation::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, rgba(67, 45, 135, 0.3), transparent);
  pointer-events: none;
  z-index: 10;
}

  /* ! Button system */
  /* --------------------------------------------------------- */

/* === ROSSO (default) === */

/* Container: bordino + shine */
.btn-wrap {
    display: inline-block;
    padding: 5px;
    border: 1.5px solid #A70000;
    background: transparent;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

/* Shine sul container */
.btn-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}
.btn-wrap:hover::before {
    animation: shine 1.2s ease-in-out;
}

/* Bottone: semplice, cresce al hover */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    padding: 12px 24px;
    min-width: 200px;
    text-align: center;
    color: #FFFFFF !important;
    background: #A70000 !important;
    border: none !important;
    box-shadow: 0 0 0 0 #A70000;
    touch-action: manipulation;
    transition: box-shadow 0.4s ease;
}
.btn:is(:hover, :focus, :active) {
    box-shadow: 0 0 0 5px #A70000 !important;
    color: #FFFFFF !important;
}

/* === VERDE OLIVA === */
.btn-g-wrap {
    display: inline-block;
    padding: 5px;
    border: 1.5px solid #5F6600;
    background: transparent;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.btn-g-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}
.btn-g-wrap:hover::before {
    animation: shine 1.2s ease-in-out;
}
.btn-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    padding: 12px 24px;
    min-width: 200px;
    text-align: center;
    color: #FFFFFF !important;
    background: #5F6600 !important;
    border: none !important;
    box-shadow: 0 0 0 0 #5F6600;
    touch-action: manipulation;
    transition: box-shadow 0.4s ease;
}
.btn-g:is(:hover, :focus, :active) {
    box-shadow: 0 0 0 5px #5F6600 !important;
    color: #FFFFFF !important;
}

/* === VIOLA === */
.btn-v-wrap {
    display: inline-block;
    padding: 5px;
    border: 1.5px solid #432D87;
    background: transparent;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.btn-v-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}
.btn-v-wrap:hover::before {
    animation: shine 1.2s ease-in-out;
}
.btn-v {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    padding: 12px 24px;
    min-width: 200px;
    text-align: center;
    color: #FFFFFF !important;
    background: #432D87 !important;
    border: none !important;
    box-shadow: 0 0 0 0 #432D87;
    touch-action: manipulation;
    transition: box-shadow 0.4s ease;
}
.btn-v:is(:hover, :focus, :active) {
    box-shadow: 0 0 0 5px #432D87 !important;
    color: #FFFFFF !important;
}

/* === BIANCO === */
.btn-w-wrap {
    display: inline-block;
    padding: 5px;
    border: 1.5px solid #FFFFFF;
    background: transparent;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.btn-w-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.08) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.08) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}
.btn-w-wrap:hover::before {
    animation: shine 1.2s ease-in-out;
}
.btn-w {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    padding: 12px 24px;
    min-width: 200px;
    text-align: center;
    color: #A70000 !important;
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 0 0 0 #FFFFFF;
    touch-action: manipulation;
    transition: box-shadow 0.4s ease;
}
.btn-w:is(:hover, :focus, :active) {
    box-shadow: 0 0 0 5px #FFFFFF !important;
    color: #A70000 !important;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

  
    /* ! ABBELLIMENTI */
    /* --------------------------------------------------------- */


  ::selection  {
    background: #C3C867;
    color: #432D87;
  }

  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }
  }


  /* ! ACCESSIBILITY ACT */
  /* --------------------------------------------------------- */


    /* ! Freccia su outlink */

    a.outlink[target="_blank"]::after {
      content: "\2197";
    }

    :focus-visible {
      outline: 3px solid #A70000;
      outline-offset: 3px;
    }

    ::placeholder {
      color: #595959 !important;
      opacity: 1 !important;
    }

 
  /* ! Animation */
/* --------------------------------------------------------- */

.scroll-to-id {
  scroll-margin-top: 120px;
  }

.fade-in{
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.slide-r { 
  opacity: 0;
  transform: translateX(3rem); /* Offset moderato per evitare entrate troppo lunghe */
  transition: opacity 1.5s ease, transform 1.5s ease-out;
}

.slide-l { 
  opacity: 0;
  transform: translateX(-3rem);
  transition: opacity 1.5s ease, transform 1.5s ease-out;
}


/* ! Helpers */
/*----------------------------------------------------------------------------------- */

.mt-0{margin-top: 0;}
.mt-1{margin-top: 1rem;}
.mt-2{margin-top: 2rem;}
.mt-3{margin-top: 3rem;}
.mt-4{margin-top: 4rem;}

.mb-0{margin-bottom: 0;}
.mb-1{margin-bottom: 1rem;}
.mb-2{margin-bottom: 2rem;}
.mb-3{margin-bottom: 3rem;}
.mb-4{margin-bottom: 4rem;}

.p-0{padding: 0;}
.p-1{padding: 1rem;}
.p-2{padding: 2rem;}
.p-3{padding: 3rem;}
.p-4{padding: 4rem;}

.pt-0{padding-top: 0;}
.pt-1{padding-top: 1rem;}
.pt-2{padding-top: 2rem;}
.pt-3{padding-top: 3rem;}
.pt-4{padding-top: 4rem;}

.pb-0{padding-bottom: 0;}
.pb-1{padding-bottom: 1rem;}
.pb-2{padding-bottom: 2rem;}
.pb-3{padding-bottom: 3rem;}
.pb-4{padding-bottom: 4rem;}

.wide {
  margin: 0 auto;
  width: 100%;
  max-width: 1250px;
}

.no-u, .no-u a { 
  text-decoration: none !important; 
}


.g-link a {
  color: #5F6600;
}

.g-link a:hover {
  color: #A70000;
}

  .balance {
     text-wrap: balance;
  }


/* ! Custom ADDINGS  */
/*----------------------------------------------------------------------------------- */

.fancy {
	color: #A70000;
  font-family: var(--gp-font--caramello-free);
	font-size: 1.4em;
	letter-spacing: 0px !important;
}

.accent strong,
.accent b {
    color: #5F6600;
}

/* ! Bullet points  */

.bp {
  position: relative;
  padding-left: 20px;
}

.bp:before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1em;
  margin-top: 0;
  color: #A70000;
}

/* end file */