

/* main.css aggiornato con stile elegante per il menu */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #012169;
  background: #fff;
  
}


p {
  font-family: 'Montserrat', sans-serif;
  color: #012169;
  background: #fff;
  line-height: 1.6;
  font-weight: 100;
  font-size: 1.2rem;
}


@font-face {
  font-family: 'Celine Dion Handwriting';
  src: url('../fonts/Celine Dion Handwriting.ttf') format('woff2'),
       url('../fonts/Celine Dion Handwriting.woff') format('woff'),
       url('../fonts/Celine Dion Handwriting.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
}



body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}



h1 { 
	
 font-family: 'Playfair Display', serif;
  font-weight: 100;
  font-size: 5rem;
  letter-spacing: 0px;
 background: linear-gradient(to right, #d90000, #f22613);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
	}

h2 { 
	
  font-family: 'Playfair Display', serif;
  font-weight: 100;
  text-decoration: none;
  font-size: 3.4rem;
  color: #012169;
	}


h3 { 
	
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  text-decoration: none;
  font-size: 2rem;
  color: #012169;
	 position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
	}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px; /* spessore della sottolineatura */
  width: 100%;
  background: linear-gradient(to right, #d90000, #f22613);
  border-radius: 0px;
}


h4 { 
	
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.3rem;
   background: linear-gradient(to right, #d90000, #f22613);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
	}


h5 { 
	
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: #012169;
	}

h6 { 
	
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  text-decoration: none;
  font-size: 0.6rem;
  color: #012169;
	}

.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
 padding: 0.5rem 0rem 0.5rem 0.5rem;
}


.container-large {
  width: 100%;
  max-width: 1500px;
  margin: auto;
 padding: 0.3rem 0rem 0.5rem 0rem;
}



.hero-content {
  width: 100%;
  max-width: 880px;
  margin: auto;
  padding: 0 auto;
}

.fullwidth-one-line {
  width: 100%;
  text-align: center;
  background: transparent;
  padding: 1.5rem 0;
}

.one-line-inner {
  font-size: 1.4rem;
  font-weight: 300;
  color: #012169;
  letter-spacing: 0.3px;
  padding: 0 1rem;
  line-height: 1.5;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Allineamento e struttura desktop */


.nav-wrapper {
 
 display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}


.desktop-only {
  display: inline-block;
}
	

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}


.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem;
 
}

.nav-menu-right {
   display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right {
 display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.burger {
  display: none;
}

/* Bottone fisso solo da mobile */

.mobile-fixed-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #d90000, #f22613);
  color: white;
  padding: 1rem 0;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  z-index: 999;
  border: none;
  border-radius: 0;
}


.logo {
  height: auto;
  width: 340px;
  display: block;
  flex-shrink: 0;
}



.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: #012169;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c62033;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #012169;
  border-radius: 2px;
}

.hero {
  padding: 12rem 1rem 4rem;
  text-align: center;
  background: #f2f2f2;
}

.hero h1 {
  font-size: 2.8rem;
}

.hero p {
  font-size: 2.7rem;
  margin: 1rem 0;
}


.hero22 {
  padding: 7rem 1rem 0rem;
  text-align: center;
  background: #ffffff;
}

.hero22 h1 {
  font-size: 4rem;
}

.hero22 p {
  font-size: 1.4rem;
  margin: 0.4rem 0;
}


.hero44 {
  padding: 1rem 1rem 1rem 0rem;
  text-align: center;
  background: #ffffff;
}

.hero44 h1 {
  font-size: 4rem;
}

.hero44 p {
  font-size: 1.4rem;
  margin: 0.4rem 0;
}


.btn {
  background: linear-gradient(to right, #d90000, #f22613);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  text-decoration: none;
	 transition: transform 0.3s ease, font-weight 0.3s ease;
}


.btn:hover {
  background: linear-gradient(to right, #f22613, #d90000);
	 transform: scale(1.05);      /* zoom leggero */
  font-weight: 700; 
	 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.btn-blue {
  background: none;
  color: #012169;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: underline;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  display: inline-block;
  transition: color 0.3s ease;
	 transition: transform 0.3s ease, font-weight 0.3s ease;
}



.btn-blue:hover {
  color: #f22613;
  text-decoration: none;
	 transform: scale(1.05);      /* zoom leggero */
  font-weight: 700; 
	 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-blue i {
  margin-right: 8px;
}


.icons-home {
  width: 70%;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

.about-section {
  padding: 4rem 1rem;
  background-color: #ffffff;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text {
  flex: 1 1 50%;
  font-size: 1.1rem;
  color: #333;
}

.about-img {
  flex: 1 1 45%;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}



.section {
  padding: 4rem 1rem;
}

.section.light {
  background: #f7f7f7;
}

.two-cols, .three-cols {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}


.three-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.besy-profile {
  text-align: center;
  margin: 3rem auto;
}

.besy-thumbnail {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #d90000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto 1rem auto;
}

.besy-signature {
  font-family: 'Celine Dion Handwriting', cursive;
  font-size: 2rem;
  color: #012169;
  text-align: center;
  margin-top: 1rem;
}


.about-img img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.about-row {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.about-row.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text h2 {
  transition: all 0.3s ease;
}

.about-text h2:hover {
  color: #c62033;
  font-weight: 600;
}

/* Banner dei cookie */

.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  background: #f9f9f9;
  
  padding: 1rem 1.5rem;
  text-align: center;
	text-decoration: none !important;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  display: none;
}

.cookie-banner p {
	color: #012169;
  margin: 0 0 0.8rem 0;
  font-weight: 300;
	background: #f9f9f9;
	text-decoration: none !important;
}

.cookie-banner a {
  color: #e00906;
  text-decoration: none !important;
	background: #f9f9f9;
}

./* Pulsanti */
.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cookie-banner .btn {
  background: linear-gradient(to right, #d90000, #f22613);
  border: none;
  color: white;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner .btn-decline {
  background: none;
  color: #012169;
  border: 1px solid #012169;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-banner .btn-decline:hover {
  background: #012169;
  color: white;
}

/* Linguetta per richiamare le preferenze */
.cookie-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  background: #ffffff;
  color: #012169;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #012169;
  border-radius: 4px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  opacity: 0.85;
}

.cookie-toggle:hover {
  background: #f8f8f8;
  opacity: 1;
}


.card {
  flex: 1 1 30%;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpCard 0.8s ease-out forwards;
  animation-play-state: paused; /* blocca in partenza */
}

.card.animate {
  animation-play-state: running;
}

.card:nth-child(1) {
  animation-delay: 0.3s;
}

.card:nth-child(2) {
  animation-delay: 0.6s;
}

.card:nth-child(3) {
  animation-delay: 0.9s;
}





.service-icon {
 width: 60px;
  height: auto;
  margin: 0 0 1rem auto; /* Allinea a destra */
  display: inline-block;
  transition: transform 0.3s ease;
}

.card:hover .service-icon {
  transform: scale(1.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}



/* Container per le CTA */
.cta-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}





.footer {
  background: #f0f0f0;
  padding: 3rem 1rem;
  text-align: center;
}

.footer-wrapper {
   background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
 
}

.footer-logo {
  height: 40px;
  margin-bottom: 0.5rem;
}

.footer-copy {
	background: #f0f0f0;
  font-size: 0.9rem;
  color: #012169;
}


.footer-copy a {
  color: #012169;
  text-decoration: underline;
  margin: 0 0.3rem;
  background: #f0f0f0;
  padding: 0;
  border: none;
  background: #f0f0f0;
}



.footer-copy a:hover {
  color: #c62033;
  background: #f0f0f0;
}


.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
	background: #f0f0f0;
}


.footer-contact {
  text-align: center;
  font-size: 0.9rem;
  color: #012169;
  margin-top: 0.5rem;
  background: #f0f0f0;
}

.footer-contact a {
  color: #012169;
  text-decoration: none;
  background: #f0f0f0;
}
.footer-contact p {
  color: #012169;
  text-decoration: none;
  background: #f0f0f0;
}


.footer-contact h6 {
  color: #012169;
  text-decoration: none;
  background: #f0f0f0;
}

.footer-contact a:hover {
  color: #c62033;
  text-decoration: underline;
  background: #f0f0f0;
}



#typewriter {
  font-size: 3.2rem; /* aumentato del ~30% rispetto a 2rem */
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #012169;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 1.5rem;
  animation: blink-caret 0.75s step-end infinite;
  font-family: 'Playfair Display', serif;
}


@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #012169; }
}


#fade-author {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#fade-author.visible {
  opacity: 1;
}


.highlighted-bold {
   font-weight: 600;
  font-size: 1.6rem !important;
  line-height: 1.6;
  color: #012169;

}

.spacer {
  height: 2rem; /* regola l'altezza dello spazio */
}

.underlined-animated {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  color: #012169;
  cursor: default;
}

.underlined-animated::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(to right, #d90000, #f22613);
  border-radius: 2px;
  animation: underline-grow 1s ease-out forwards;
  animation-delay: 2.4s; /* opzionale: parte dopo un piccolo ritardo */
}

@keyframes underline-grow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


.underlined-scroll {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  color: #012169;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.underlined-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.underlined-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(to right, #d90000, #f22613);
  border-radius: 2px;
  transition: width 0.8s ease-out 0.4s; /* delay + duration */
}

.underlined-scroll.visible::after {
  width: 100%;
}






/* Responsiveness */


@media (max-width: 991px) {
	
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  
	
	.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .burger span {
    width: 25px;
    height: 3px;
    background: #012169;
    border-radius: 2px;
  }

 .desktop-only {
    display: none !important;
  }
	

  .logo {
    display: block;
	 height: auto;
     width: 240px;

  }

}

@media (min-width: 992px) 

{
  .mobile-only {
    display: none !important;
  }
}



@media (max-width: 768px) {
	
.fullwidth-one-line {
    overflow: visible;
    white-space: normal;
    padding: 1rem;
  }

  .one-line-inner {
    white-space: normal;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
	
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 60px;
    width: 100%;
    text-align: center;
  }
  .nav-links.show {
    display: flex;
  }
  .burger {
    display: flex;
  }
	
	
  .hide-mobile {
    display: none;
  }
	
	
	  .highlighted-bold {
    font-size: 1.5rem;
  }
	
 .three-cols {
    flex-direction: column;
  }
	
	
	  .about-row {
    flex-direction: column;
  }

  .about-text, .about-img {
    flex: 1 1 100%;
  }
	
	.about-row.reverse-mobile {
    flex-direction: column-reverse;
  }
	
	.cta-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .cta-wrapper a {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
	
	  #typewriter {
    font-size: 2.0rem;
    padding: 0 1rem;
	white-space: normal;
  word-break: break-word;
  text-align: center;
  border-right: none;
  animation: none;
  }

  #fade-author {
    font-size: 0.9rem;
  }

  .icons-home {
    width: 200px;
    margin-top: 2rem;
  }
	
	
	.hero {
    padding: 6rem 1rem 2rem;
  }

  .hero22 h1,
  .hero44 h1 {
    font-size: 2.2rem;
  }

  .hero22 p,
  .hero44 p,
  .highlighted-bold {
    font-size: 1.1rem !important;
    line-height: 1.5;
  }

  h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  .container,
  .container-large {
    padding: 0 1rem;
  }

  .card {
    width: 100%;
    margin-bottom: 2rem;
  }

  .btn,
  .btn-blue {
    font-size: 1rem;
    padding: 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-wrapper {
    padding: 0.5rem 1rem;
  }

  .logo {
    width: 200px;
  }

	.cookie-banner {
    bottom: 5rem; /* sopra il bottone contacts fisso */
    width: 90%;
    padding: 1rem 1rem;
    font-size: 0.9rem;
  }

  .cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-banner .btn,
  .cookie-banner .btn-decline {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .cookie-toggle {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    bottom: 6rem; /* sopra il bottone rosso */
  }
	
 .fullwidth-one-line {
    white-space: normal;
    overflow: visible;
    text-align: center;
    padding: 1rem;
  }

  .one-line-inner {
    white-space: normal;
    display: block;
    font-size: 1.1rem;
    line-height: 1.5;
  }
	
}