/*
DIGITAL TREND
https://templatemo.com/tm-538-digital-trend
*/

/* ---------------------------------------
   FONT-FACE
-----------------------------------------*/
@font-face {
  font-family: 'AlbertSans-ExtraBold';
  src: url('../fonts/AlbertSans-ExtraBold.ttf') format('ttf'),
  url('../fonts/AlbertSans-ExtraBold.ttf') format('ttf');
  font-weight: 500; /* ExtraBold */
  font-style: normal;
}

@font-face {
  font-family: 'AlbertSans-Italic';
  src: url('../fonts/AlbertSans-Italic.ttf') format('ttf'),
  url('../fonts/AlbertSans-Italic.ttf') format('ttf');
  font-weight: 300; /* Regular */
  font-style: italic;
}

@font-face {
  font-family: 'AlbertSans-Normal';
  src: url('../fonts/AlbertSans-Regular.ttf') format('ttf'),
  url('../fonts/AlbertSans-Regular.ttf') format('ttf');
  font-weight: 300; /* Regular */
  font-style: normal;
}

@font-face {
  font-family: 'Plain-Regular';
  src: url('../fonts/Plain-Regular.woff2') format('woff2'),
  url('../fonts/Plain-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Plain-Light';
  src: url('../fonts/Plain-Light.woff2') format('woff2'),
  url('../fonts/Plain-Light.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Plain-Bold';
  src: url('../fonts/Plain-Bold.woff2') format('woff2'),
  url('../fonts/Plain-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* ---------------------------------------
   ROOT VARIABLES
-----------------------------------------*/
:root {
  --primary-color:        #bceeff; /* Verde ricco al posto del teal */
  --secondary-color:      #f1c111; /* Giallo mantenuto per contrasto */
  --white-color:          #ffffff; /* Bianco invariato */
  --dark-color:           #171819; /* Colore scuro invariato */
  --project-bg: #c3fbff; /* Sfondo verde chiaro */
  --menu-bg:              #def7ff; /* Verde principale per il menu */

  --title-color:          #15141a; /* Colore del titolo invariato */
  --gray-color:           #707070; /* Grigio leggermente più scuro per miglior contrasto */
  --link-color:           #f1c111; /* Verde mare per i link */
  --p-color:              #555555; /* Grigio scuro per il testo */

  --base-font-family:     'Plain-Light', sans-serif;
  --title-font-family:    'Plain-Regular', sans-serif;
  --font-bold-family:     'Plain-Bold', sans-serif;
  --font-weight-bold:     bold;

  --h1-font-size:         42px;
  --h2-font-size:         32px;
  --h3-font-size:         24px;
  --p-font-size:          18px;
  --base-font-size:       16px;
  --menu-font-size:       14px;

  --border-radius-large:  100px;
  --border-radius-small:  5px;
}

/* ---------------------------------------
   BASE
-----------------------------------------*/
body {
  background: var(--white-color);
  font-family: var(--base-font-family);
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--dark-color);
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--dark-color);
  outline: none;
  text-decoration: none;
}

::selection {
  background: var(--dark-color);
  color: var(--white-color);
}

.section-padding {
  padding: 4em 0;
}

.section-padding-half {
  padding: 4em 0;
}

.google-map iframe {
  display: block;
  width: 100%;
}

/* ---------------------------------------
   TYPOGRAPHY
-----------------------------------------*/
/* Font per "Dott.ssa" */
.dott-font {
  font-family: 'AlbertSans-Italic', sans-serif;
  font-weight: 300; /* Regular */
  font-style: italic;
  line-height: normal;
}

/* Font per "Federica Palmieri" */
.name-font {
  font-family: 'AlbertSans-ExtraBold', sans-serif;
  font-weight: 500; /* ExtraBold */
  font-style: normal;
  line-height: normal;
}

/* Font per "PSICOLOGA" */
.psicologo-font {
  font-family: 'AlbertSans-Normal', sans-serif;
  font-weight: 300; /* Regular */
  font-style: normal;
  font-size: 1.35rem;
  line-height: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font-family);
  line-height: inherit;
}

h1 {
  color: var(--title-color);
  font-size: var(--h1-font-size);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: 100;
}

h3 {
  font-size: var(--h3-font-size);
  font-weight: 100;
  margin-bottom: 0;
}

h4 {
  color: var(--gray-color);
  font-family: var(--base-font-family);
  font-size: var(--p-font-size);
  letter-spacing: 1px;
  text-transform: uppercase;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  line-height: 1.5em;
}

b,
strong {
  letter-spacing: 0;
  color: var(--dark-color);
}

/* BLOCKQUOTES */
.quote {
  position: relative;
  margin: 0;
}
.quote::after {
  content: "“";
  position: absolute;
  bottom: -80px;
  left: 20px;
  font-family: times;
  color: var(--gray-color);
  font-weight: var(--font-weight-bold);
  font-size: 14em;
  line-height: 0;
  opacity: 0.10;
}

blockquote {
  border-left: 5px solid rgba(0,0,0,0.05);
  display: block;
  margin: 42px 0;
  padding: 14px 22px;
  color: rgba(0,0,0,0.5);
}

/* BUTTON */
.custom-btn {
  background: transparent;
  border: 2px solid var(--dark-color);
  border-radius: var(--border-radius-large);
  padding: 12px 26px 14px 26px;
  color: var(--dark-color);
  font-family: var(--title-font-family);
  font-size: var(--p-font-size);
  white-space: nowrap;
}

.custom-btn.btn-bg {
  background: var(--white-color);
  color: var(--primary-color);
  border-color: transparent;
  transition: all .3s ease;
}

.custom-btn:hover,
.custom-btn:focus {
  background: var(--dark-color);
  color: var(--white-color);
  border-color: transparent;
}

/* ---------------------------------------
   MENU
-----------------------------------------*/
.navbar {
  background: var(--menu-bg);
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  padding: 1.5em;
}

/* Le modifiche per la navbar: i testi saranno in dark-color */
.navbar-brand {
  color: var(--dark-color);
  font-size: var(--h2-font-size);
}

.nav-link {
  color: var(--dark-color);
  font-size: var(--menu-font-size);
  letter-spacing: 0.4px;
  margin: 0 1.6em;
  padding: 0.6em;
}

.nav-link.active,
.nav-link:hover {
  color: var(--dark-color);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0;
  padding-left: 0;
}

.navbar-expand-lg .navbar-nav .nav-link.contact {
  border: 2px solid var(--dark-color);
  border-radius: var(--border-radius-large);
  color: var(--dark-color);
  font-family: var(--font-bold-family);
  padding: 0.6em 2em 0.8em 2em;
}

.navbar-expand-lg .navbar-nav .nav-link.contact:hover,
.navbar-expand-lg .navbar-nav .nav-link.contact.active {
  background: var(--dark-color);
  color: var(--white-color);
}

.navbar-nav .navbar-toggler-icon {
  background: none;
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0 10px 0 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

/* ---------------------------------------
   HERO
-----------------------------------------*/
.hero {
  padding-top: 100px;
  padding-bottom: 100px;
}

.hero-bg {
  background: linear-gradient(170deg, var(--primary-color) 64%, var(--white-color) 30%);
}

.hero-image {
  position: relative;
  top: 2em;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 50px;
    padding-bottom: 30px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .hero {
    padding-top: 14em;
  }
}

/* ---------------------------------------
   CHI SONO
-----------------------------------------*/
#chi-sono {
  background-color: var(--dark-color);
  margin-top: 50px;
}

/* Forza il testo della sezione CHI SONO in dark-color */
#chi-sono h4,
#chi-sono p,
#chi-sono strong {
  color: var(--white-color);
}

/* ---------------------------------------
   ABOUT
-----------------------------------------*/
.about {
  position: relative;
  overflow: hidden;
}

.about-image img {
  display: block;
  margin: 0 auto;
}

/* ---------------------------------------
   CONTACT
-----------------------------------------*/
.newsletter-form .form-control,
.contact-form .form-control {
  box-shadow: none;
  background: var(--project-bg);
  border: 0;
  padding: 1.7em 1.3em;
  margin: 14px 0;
}

.newsletter-form button,
.contact-form #submit-button {
  background: var(--primary-color);
  border-radius: var(--border-radius-large);
  color: var(--dark-color);
  cursor: pointer;
  font-size: var(--p-font-size);
  line-height: 0px;
  padding: 1.5em 1.3em;
}

.newsletter-form button {
  background: var(--dark-color);
}

/* ---------------------------------------
   FOOTER
-----------------------------------------*/
.site-footer {
  background: var(--dark-color);
  padding: 7em 0 6em 0;
}

/* Forza il testo del footer in bianco */
.site-footer,
.site-footer h1,
.site-footer h4,
.site-footer p,
.site-footer a {
  color: var(--white-color) !important;
}

.site-footer a:hover,
.footer-icon {
  color: var(--white-color);
}

.footer-link li {
  display: inline-block;
  list-style: none;
  margin: 0 10px;
}

.copyright-text,
.footer-link,
.site-footer .social-icon {
  margin-top: 6em;
  padding: 0;
}

.copyright-text {
  margin-top: 5.3em;
}

.contact-info {
  margin-left: -20px;
  white-space: nowrap;
}

/* ---------------------------------------
   SOCIAL ICON
-----------------------------------------*/
.social-icon {
  position: relative;
  padding: 0;
  margin: 4em 0 0 0;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  text-decoration: none;
  display: inline-block;
  font-size: var(--base-font-size);
  margin: 10px;
  text-align: center;
}

/* ---------------------------------------
   RESPONSIVE STYLES
-----------------------------------------*/
@media screen and (max-width: 991px) {
  .hero-text {
    bottom: 2em;
  }
  .navbar {
    padding: 1em;
  }
  .navbar-collapse {
    text-align: center;
    padding: 2.5em 0;
  }
  .nav-link {
    display: inline-block;
  }
  .navbar-expand-lg .navbar-nav .nav-link.contact {
    margin: 1em 0;
  }
  .copyright-text,
  .footer-link,
  .site-footer .social-icon {
    margin-top: 3em;
    padding: 0;
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 22px;
  }
  .project-info {
    right: 0;
    left: 0;
    margin: 0 auto;
  }
  .footer-link,
  .site-footer .social-icon {
    margin-top: 1em;
  }
  .copyright-text {
    margin: 2.5em 0 1em 0;
  }
  .footer-link li {
    margin-left: 0;
  }
  .hyphens-on {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
  .hyphens-off {
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
  }
}

/* ---------------------------------------
   CHECKBOX GOOEY PERSONALIZZATO
-----------------------------------------*/
.checkbox-wrapper-12 {
  position: relative;
}

.checkbox-wrapper-12 > svg {
  position: absolute;
  top: -130%;
  left: -170%;
  width: 110px;
  pointer-events: none;
}

.checkbox-wrapper-12 * {
  box-sizing: border-box;
}

.checkbox-wrapper-12 input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  margin: 0;
}

.checkbox-wrapper-12 input[type="checkbox"]:focus {
  outline: 0;
}

.checkbox-wrapper-12 .cbx {
  width: 24px;
  height: 24px;
  position: relative;
}

.checkbox-wrapper-12 .cbx input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #bfbfc0;
  border-radius: 50%;
}

.checkbox-wrapper-12 .cbx label {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-filter: url("#goo-12");
  filter: url("#goo-12");
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg {
  position: absolute;
  top: 5px;
  left: 4px;
  z-index: 1;
  pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
  transition: stroke-dashoffset 0.3s ease;
  transition-delay: 0.2s;
}

.checkbox-wrapper-12 .cbx input:checked + label {
  animation: splash-12 0.6s ease forwards;
  background: #f1c111;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
  stroke-dashoffset: 0;
}

@-webkit-keyframes splash-12 {
  40% {
    background: #f1c111;
    box-shadow:
            0 -18px 0 -8px #f1c111,
            16px -8px 0 -8px #f1c111,
            16px 8px 0 -8px #f1c111,
            0 18px 0 -8px #f1c111,
            -16px 8px 0 -8px #f1c111,
            -16px -8px 0 -8px #f1c111;
  }
  100% {
    background: #f1c111;
    box-shadow:
            0 -36px 0 -10px transparent,
            32px -16px 0 -10px transparent,
            32px 16px 0 -10px transparent,
            0 36px 0 -10px transparent,
            -32px 16px 0 -10px transparent,
            -32px -16px 0 -10px transparent;
  }
}

@keyframes splash-12 {
  40% {
    background: #f1c111;
    box-shadow:
            0 -18px 0 -8px #f1c111,
            16px -8px 0 -8px #f1c111,
            16px 8px 0 -8px #f1c111,
            0 18px 0 -8px #f1c111,
            -16px 8px 0 -8px #f1c111,
            -16px -8px 0 -8px #f1c111;
  }
  100% {
    background: #f1c111;
    box-shadow:
            0 -36px 0 -10px transparent,
            32px -16px 0 -10px transparent,
            32px 16px 0 -10px transparent,
            0 36px 0 -10px transparent,
            -32px 16px 0 -10px transparent,
            -32px -16px 0 -10px transparent;
  }
}

/* ---------------------------------------
   SILLABAZIONE ON/OFF
-----------------------------------------*/
.hyphens-on {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
}

.hyphens-off {
  -webkit-hyphens: none;
  -moz-hyphens: none;
  hyphens: none;
  word-wrap: normal;
}

/* ---------------------------------------
   SEZIONI PERSONALIZZATE
-----------------------------------------*/
.small-justify-text {
  font-size: 1.3rem;
  text-align: justify;
  font-weight: 400;
  line-height: 1.6em;
}

.tcc-text {
  margin: 0;
  padding: 0;
  text-align: justify;
  font-size: var(--p-font-size);
  line-height: 1.6;
  color: var(--p-color);
}

.tcc-text p {
  margin-bottom: 1rem;
}

.tcc-text ul,
.tcc-text ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.tcc-text ul li,
.tcc-text ol li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.tcc-text strong {
  font-weight: bold;
  color: var(--dark-color);
}

.about-info {
  padding-bottom: 50px;
}

/* Stile per il bottone personalizzato "contact-btn" */
.custom-btn.contact-btn {
  background: transparent;
  border: 2px solid var(--dark-color);
  border-radius: var(--border-radius-large);
  padding: 0.6em 2em 0.8em 2em; /* Stesso padding usato nella navbar per il link contact */
  color: var(--dark-color);
  font-family: var(--font-bold-family); /* Usa lo stesso font del link della navbar */
  transition: all 0.3s ease;
}

/* Stato hover/focus: fondo scuro, testo bianco e contorno invariato */
.custom-btn.contact-btn:hover,
.custom-btn.contact-btn:focus {
  background: var(--dark-color);
  color: var(--white-color);
  border-color: var(--dark-color); /* Mantiene il contorno scuro */
}

.hero .hero-phone-icon {
  color: #000000 !important; /* Imposta il colore a nero */
}

/* ---------------------------------------
   RESPONSIVE STYLES PER .tcc-text
-----------------------------------------*/
@media screen and (max-width: 991px) {
  .tcc-text {
    margin: 0 1rem;
  }
}

@media screen and (max-width: 767px) {
  .tcc-text {
    margin: 0 0.5rem;
  }
}
