@font-face {
  font-family: 'Roboto';
  src: url('/resources/fonts/Roboto-VariableFont_wdth,wght.ttf') format('ttf');
  font-weight: 100 800;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('/resources/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('ttf');
  font-weight: 100 800;
  font-style: italic;
}

body { 
    margin:0; 
    font-family: Roboto, sans-serif; 
    height: 100%;
    width: 100%;
}


p {
    font-size: 1.25em;
    color: #222;
    line-height: 1.5em;
    text-align: justify;
}

b {
    color: #a25a02;
}

sup {
    font-size: .75em;
}

ul > li {
    font-size: 1.25rem;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #ccc;
  padding-left: 15px;
  margin: 20px 0;
  color: #444;
}

blockquote footer {
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  text-align: right;
}

ul.gap, ol.gap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.25em;
}
ul.gap li, ol.gap li {
    line-height: 1.25em;
    text-align: justify;
}

.layout-wrapper {
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background: #32446d;
}

/* ================= TOPBAR ================= */
.topbar {
    background:#1e293b;
    color:#cbd5e1;
    font-size:0.9rem;
    padding:0.4rem 2rem;
}

/* ================= HEADER ================= */
.layout-header {
    position:sticky;
    top:0;
    z-index:1000;
    background:#0f172a;
    color:white;
    padding:1.2rem 2rem;
    transition:all .3s ease;
}

.layout-header.shrink {
    padding:.6rem 2rem;
    box-shadow:0 3px 8px rgba(0,0,0,0.25);
}

.logo img {
    height:55px;
    transition:height .3s ease;
}

.layout-header.shrink .logo img {
    height:40px;
}

.desktop-menu .p-menubar {
    background:transparent;
    border:none;
}

.desktop-menu .p-menuitem-link {
    color:white !important;
    font-weight:500;
}

.layout-content {
    flex: 1;
    background: #f4f6f9;

    width: 100%;          /* sempre fluido */
    max-width: 1440px;   /* limite massimo */
    margin: 0 auto;      /* centrato */

    padding: 0 1rem;     /* respiro su mobile */
    box-sizing: border-box;
}

/* ANIMAZIONE INTRO PRIMO CARICAMENTO */
#intro-loader {
    position: fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    animation: fadeOut 1.5s ease forwards;
    animation-delay: 2s;
}

.intro-logo {
    color:white;
    font-size:2rem;
    letter-spacing:4px;
    opacity:0;
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity:1; }
}

@keyframes fadeOut {
    to {
        opacity:0;
        visibility:hidden;
    }
}

/* NAVBAR GLASS BLUR PREMIUM */
.layout-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all .4s ease;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.75);
}

.layout-header.shrink {
    padding: .6rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* HERO 3D CINEMATICO MIGLIORATO */
.hero-3d {
    position: relative;
    height: 85vh;
    perspective: 1800px;
    overflow: hidden;
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1.8s cubic-bezier(.77,0,.175,1);
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    bottom:0; left:0;
    width:100%; 
    height:200px;
    background: linear-gradient(
        rgba(15,23,42,0.8),
        rgba(15,23,42,0.6)
    );
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
    padding:2rem;
}

.face1 { transform: rotateY(0deg) translateZ(300px); }
.face2 { transform: rotateY(90deg) translateZ(300px); }
.face3 { transform: rotateY(180deg) translateZ(300px); }
.face4 { transform: rotateY(-90deg) translateZ(300px); }

.hero-overlay h1 {
    font-size:3rem;
}

.hero-overlay p {
    font-size:1.2rem;
    max-width:700px;
    margin:1rem auto 2rem auto;
}
/* PARALLAX SOFT ELEGANTE */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ================= FOOTER ================= */
.layout-footer {
    background:#1e293b;
    color:#cbd5e1;
    padding:3rem 2rem;
}

.layout-footer h3 { color:white; }

/* ================= ANIMAZIONI ================= */
.fade-in {
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

.fade-in.visible {
    opacity:1;
    transform:translateY(0);
}


.counter {
    font-size:3rem;
    font-weight:bold;
    color:#0f172a;
}

/* MICRO-INTERAZIONI PREMIUM */
.service-card {
    transition: all .4s cubic-bezier(.25,.8,.25,1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bottone premium */
.p-button {
    transition: all .3s ease;
}

.p-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}


/* DARK / LIGHT AUTOMATICO */

@media (prefers-color-scheme: light) {
    body {
        background: #ffffff;
        color: #1e293b;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }
}


.hr-blue-gradient {
    border: none;
    height: 3px;
    margin: 2rem 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        #1e3a8a 20%,
        #2563eb 50%,
        #1e3a8a 80%,
        transparent 100%
    );
}

.scroll-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width:60px;
    height: 60px;
    opacity: .8;
    background-color: #2563eb !important; /* Colore blu */
    color: white !important;;
    border: none !important;;
    border-radius: 50% !important;;
    padding: 15px !important;;
    font-size: 18px !important;;
    cursor: pointer !important;;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease !important;;
    z-index: 1000; /* Assicura che il pulsante sia sopra altri contenuti */
}

.scroll-to-top:hover {
    background-color: #1e40af !important;; /* Blu più scuro al passaggio del mouse */
    transform: scale(1.1); /* Lieve ingrandimento al passaggio del mouse */
}
/* ================= CARDS ================= */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-image {
    width: 160px;
    height: auto;
    margin-bottom: 1rem;
}

.service-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.service-subtitle {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.service-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-button {
    margin-top: auto;
}

.cover {
    position: relative;
    overflow: hidden;      /* impedisce fuoriuscite */
    max-height: 160px;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* riempie il div */
    display: block;
}

.pageimage {
    max-height: 400px;
}

.service-card .service-title,
.service-card .service-subtitle,
.service-card .service-text {
    margin: 10px 0;
}


.shine-container {
  position: relative;
  overflow: hidden;
  /*background: linear-gradient(45deg, #4158D0, #C850C0);*/
  background: linear-gradient(45deg, #e8e8e8, #bfbfbf);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Bordo sottile lucido */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.shine-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  100% { left: 125%; }
}

.zoom-container {
    overflow: hidden;
    border-radius: 12px;           /* opzionale */
}

.zoom-image {
    width: 100%;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.zoom-container:hover .zoom-image {
    transform: scale(1.12);
}



.ui-float-label>input:focus ~ label,.ui-float-label>input.ui-state-filled ~ label,.ui-float-label>textarea:focus ~ label,.ui-float-label>textarea.ui-state-filled ~ label,.ui-float-label>.ui-inputwrapper-focus ~ label,.ui-float-label>.ui-inputwrapper-filled ~ label {
    top: -.75em;
    font-size: 16px !important
}

.ui-float-label>input:-webkit-autofill ~ label,.ui-float-label>textarea:-webkit-autofill ~ label {
    top: -.75em;
    font-size: 16px !important;
}

.yellow {
    color: yellow;
    font-weight: bold;
    font-size: 1.125em;
}

.footer p {
    color: white;
    font-size: 1.115em !important;
}

.ui-menuitem a span {
    color: rgb(34.65, 44.55, 99.55);
}
.ui-menuitem a span.ui-menuitem-icon {
    font-weight: bold;
}

.ui-menubar {
    background: ivory !important;
}

.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}


.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Singola icona */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Immagine circolare */
.step img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #333;
  padding: 4px;
}

/* Linea con freccia */
.arrow {
  flex-grow: 1;
  height: 2px;
  background-color: #333;
  position: relative;
  margin: 0 15px;
}

/* Punta della freccia */
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #333;
}



.text-wrapper {
    position: relative;
}

/* layer base (quello visibile) */
.text-layer {
    width: 100%;
    transition: opacity 2s ease-in-out;
}

/* solo quello NON attivo viene sovrapposto */
.text-layer:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.text-layer.active {
    opacity: 1;
}

/* stile testi */
.text1-welfare {
    font-size: 3em;
    font-weight: bold;
    display: block;
}

.text2-welfare {
    font-size: 1.5em;
    border-top: 4px solid orange;
    display: block;
    margin-top: 10px;
    padding-top: 10px;
}

.welform {
    display: flex;
    flex-direction: column;
    padding: 1em;
    gap: 2rem; /* spacing automatico */
}

.icon i {
    font-size: 2rem;
    background: #4a61bb;
    color: white;
    border: 2px solid #333;
    border-radius: 50%;
    padding: 12px;
}

.circle-list {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
  margin: 0;
}

.circle-list li {
  counter-increment: item;

  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 16px;

  line-height: 1.5;
}

/* numero cerchiato */
.circle-list li::before {
  content: counter(item);

  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  border: 2px solid #333;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 20px;

  background: #4b62bc;
  color: white;

  /* piccolo aggiustamento ottico */
  margin-top: 2px;
}


.ui-panel {
    transition: all .2s ease;
}

.ui-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.img-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(0,0,0,.25);
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-ring {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.ring-bg {
    fill: none;
    stroke: #d6d6d6;
    stroke-width: 3;
}

.ring-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;

    transform: rotate(-90deg);
    transform-origin: center;

    transition: stroke-dasharray .8s ease;
}

.progress-ring text {
    font-size: 6px;
    font-weight: bold;
    text-anchor: middle;
    fill: var(--text-color);
}



.circle-section{
    width:min(90vw,700px);
    border-radius:35%;
    background:#536488;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:clamp(30px,8vw,90px);
    box-sizing:border-box;

    text-align:center;
    line-height:1.7;
    color:white;

    box-shadow:0 20px 40px rgba(0,0,0,.08);

    transition:
        transform 1.2s cubic-bezier(.17,.84,.44,1),
        opacity 1.2s ease,
        box-shadow .6s ease;
}

.circle-section p{
    font-size:clamp(14px,2vw,20px);
    margin:0;
}

/* Leggero ingrandimento al passaggio del mouse */
.circle-section:hover{
    transform:scale(1.03);
    box-shadow:0 30px 60px rgba(0,0,0,.15);
    background:#414a6a;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-header span {
    white-space: nowrap;
}

.header-icon {
    width: 24px;
    height: 24px;
}

/* Header normale */
.pianiAccordion .ui-accordion-header {
    background: #f5f5f5;
    transition: background-color .2s;
}

/* Link/header interno */
.pianiAccordion .ui-accordion-header .accordion-header {
    background: #f5f5f5;
    padding: 1rem;
}

/* Header del tab aperto */
.pianiAccordion .ui-accordion-header.ui-state-active .accordion-header {
    background: #1565c0;
}

/* Testo del tab aperto */
.pianiAccordion .ui-accordion-header.ui-state-active span {
    color: white !important;
}

.titoloPiano {
    color: darkblue;
}

.pianiAccordion .ui-state-active .titoloPiano {
    color: white;
}
/* Tablet */
@media (max-width: 1200px) {
    .layout-content {
        max-width: 1000px;
    }
}

/* Tablet piccolo */
@media (max-width: 992px) {
    .layout-content {
        max-width: 800px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .layout-content {
        max-width: 100%;
        padding: 0 0.8rem;
    }
}

/* Mobile piccolo */
@media (max-width: 576px) {
    .layout-content {
        padding: 0 0.5rem;
    }
}