/**
* Template Name: Kelly
* Template URL: https://bootstrapmade.com/kelly-free-bootstrap-cv-resume-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #222222; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #34b7a7; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #444444;  /* The default color of the main navmenu links */
  --nav-hover-color: #34b7a7; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #34b7a7; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background{
  --background-color: #F2ECE1;
  --surface-color: #FFFFFF;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}



/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 4px;              /* era 15px: ridotto per far spazio al logo */
  min-height: 70px;            /* aggiunto: evita che il logo venga tagliato */
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
  display: flex;               /* aiuta l’allineamento verticale */
  align-items: center;
}

.header .logo img {
  max-height: 60px;            /* era 36px */
  height: 60px;                /* aggiunto */
  width: auto;                 /* aggiunto */
  margin-right: 14px;          /* era 8px */
}

.header .logo h1,
.header .logo .sitename {
  font-size: 28px;             /* leggermente ridotto (prima 32px) */
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

/* Ingrandisce le voci del menu (Home, Profilo, ecc.) */
#navmenu ul li a {
  font-size: 17px;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Header SOLO per index (body.index-page)
--------------------------------------------------------------*/
body.index-page #header {
  min-height: 36px;   /* <-- imposta qui l’altezza della barra in home */
  padding: 0;
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 25px;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  position: relative;
  padding: 22px 0 22px;
  font-size: 14px;
  line-height: 1.6;

  /* fallback se l'immagine non carica */
  background-color: #0a1423;

  /* background: immagine + overlay più uniforme e leggibile */
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 20, 35, 0.55) 0%,
      rgba(10, 20, 35, 0.75) 100%
    ),
    url("../img/footer2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 65% 60%;

  color: #fff;

  /* micro-contrasto sul testo su foto */
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Titoli colonne */
.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

/* Liste/righe contatto */
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul li {
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Icone nei punti elenco */
.footer ul li i {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
}

/* Link */
.footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

/* Focus accessibile (tastiera) */
.footer a:focus-visible,
.footer .social-links a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-color), #fff 25%);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Social links */
.footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.10);

  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);

  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(0, 0, 0, 0.18);
}

/* Separatore */
.footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  margin: 22px 0;
}

/* Nota / credits */
.footer .footer-note {
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none; /* di solito qui è meglio pulito */
}

/* Responsive focus immagine + spaziatura */
@media (max-width: 768px) {
  .footer {
    padding: 36px 0;
    background-position: 60% 50%;
  }
}

/* Extra small */
@media (max-width: 575px) {
  .footer {
    padding: 32px 0;
    font-size: 13.5px;
  }
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.page-title h1 {
  font-size: 24px;
  font-weight: 400;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero  (UPDATED: focus immagine a destra + testo molto più in basso su mobile)
--------------------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden; /* evita scroll orizzontali da overlay/immagine */
}

@media (max-width: 1200px) {
  .hero {
    min-height: calc(100vh - 68px);
  }
}

/* immagine full-screen */
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 1;
}

/* overlay per contrasto testo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
}

/* contenuto sopra immagine/overlay */
.hero .container {
  position: relative;
  z-index: 3;
  margin-top: 200px; /* desktop */
}

.hero h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.hero p {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: #fff;
}

.hero .typed{
  display: inline;
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  border-bottom: 0;
  padding-bottom: 0;
}

/* cursore typed.js */
.hero .typed-cursor {
  opacity: 1;
  animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
  50% { opacity: 0; }
}

.hero .btn-get-started {
  margin-top: 30px;
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 20%);
}

/* --- MOBILE / TABLET --- */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 68px); /* svh = più stabile su mobile */
    padding: 40px 0;
  }

  /* IMPORTANT: sposta il punto di fuoco verso destra (per non tagliare te) */
  .hero > img {
    object-position: 85% 50%; /* prova 80% / 90% se serve */
  }

  /* container ancora più in basso */
  .hero .container{
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(6px + env(safe-area-inset-bottom)); /* più giù di 24px */
    margin-top: 0;          /* annulla margin-top desktop */
    padding: 0 16px;        /* respiro laterale */
    text-align: center;     /* opzionale */
  }

  /* SOLO nome + tagline salgono molto (frase resta ferma) */
  .hero :is(h2, .hero-tagline){
    position: relative;
    top: -60px;             /* più negativo = più su (es. -72px) */
  }

  /* riduce lo spazio enorme di mb-5 su mobile (opzionale ma consigliato) */
  .hero .hero-tagline{
    margin-bottom: 7px !important;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}

/* Logo piccolo in alto a sinistra nella hero */
.hero .hero-logo{
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;            /* sopra overlay e contenuto */
  width: 110px;
  height: auto;
  max-width: 35vw;
  margin: 0 !important;  /* neutralizza mb-3 */
}

@media (max-width: 768px){
  .hero .hero-logo{
    top: 12px;
    left: 12px;
    width: 90px;
    max-width: 45vw;
  }
}

/* Spaziatura testo */
.hero-subtitle{
  margin: 10px 0 0 0;
}



/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/* Pergamena elegante SOLO per Profilo (sezione About) */
body.about-page section#about.about.section{
  background-color: #efe0bd; /* pergamena calda */
  background-image:
    radial-gradient(1100px 650px at 20% 10%, rgba(255,255,255,.40), rgba(255,255,255,0) 60%),
    radial-gradient(900px 650px at 85% 90%, rgba(0,0,0,.10), rgba(0,0,0,0) 65%),
    radial-gradient(1200px 900px at 50% 50%, rgba(0,0,0,.06), rgba(0,0,0,0) 70%);
  background-attachment: fixed;
}

/* Colore della barra sotto il titolo "Profilo" SOLO in profilo.html */
body.about-page .section-title h2:after{
  background: #b08a3a; /* scegli il colore */
}

body.about-page #about .content p{
  color: #0d0d0d;
}




/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section (Grid + Collapse) + Icon colors
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 0;
  text-align: left;
  transition: 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.services .service-item:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.12);
}

/* Header cliccabile */
.services .service-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.services .service-toggle:focus {
  outline: none;
  box-shadow: none;
}

/* blocco icona + titolo */
.services .service-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* icona (colore di default se non matcha nessuna regola sotto) */
.services .service-icon {
  font-size: 22px;
  line-height: 0;
  color: var(--accent-color);
  flex: 0 0 auto;
}

/* TITOLI */
.services .service-title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

/* freccia a destra */
.services .acc-icon {
  margin-left: auto;
  font-size: 14px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  transition: transform 0.25s ease, color 0.25s ease;
  flex: 0 0 auto;
}

.services .service-toggle:not(.collapsed) .acc-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* corpo espandibile */
.services .service-collapse {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.services .service-text {
  padding: 16px 22px 22px 22px;
  margin: 0;
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Icon colors (diversi per servizio)
   Si basano sulla classe della Bootstrap Icon usata in HTML.
--------------------------------------------------------------*/
.services .service-icon.bi-shield-check { color: #0dcaf0; }      /* consulenza penale - cyan */
.services .service-icon.bi-search { color: #fd7e14; }           /* indagini difensive - orange */
.services .service-icon.bi-people { color: #20c997; }           /* persone/famiglia/patrimonio - teal */
.services .service-icon.bi-briefcase { color: #6610f2; }      /* societari/fallimentari - indigo */
.services .service-icon.bi-receipt { color: #df1529; }          /* tributari - red */
.services .service-icon.bi-buildings { color: #198754; }           /* urbanistica/paesaggio - green */
.services .service-icon.bi-car-front-fill { color: #f3268c; }   /* circolazione stradale - pink */
.services .service-icon.bi-clipboard-check { color: #6f42c1; }    /* reati colposi - violet */
.services .service-icon.bi-bank { color: #0d6efd; }                 /* ordinamento penitenziario - blue */
.services .service-icon.bi-person-heart { color: #e83e8c; }        /* diritto minorile - magenta */
.services .service-icon.bi-cash-coin { color: #198754; }           /* gratuito patrocinio - green */
.services .service-icon.bi-shield-lock { color: #fd7e14; }    /* misure cautelari pers./reali - amber */


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

