@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@400;500;600;700&display=swap');
.av-timeline {
--av-color: #124068;
--av-color-light: rgba(18, 64, 104, 0.16);
--av-color-border: rgba(18, 64, 104, 0.15);
--av-color-shadow: rgba(18, 64, 104, 0.20);
position: relative;
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 12px 20px 12px 66px;
box-sizing: border-box;
font-family: 'Cantarell', sans-serif;
color: #333333;
}
.av-timeline *,
.av-timeline *::before,
.av-timeline *::after {
box-sizing: border-box;
}
/* LINEA VERTICALE */
.av-timeline-line {
position: absolute;
left: 20px;
top: 0;
width: 2px;
height: 0;
border-radius: 2px;
background: var(--av-color-border);
}
.av-timeline-progress {
width: 100%;
height: 0;
border-radius: inherit;
background: var(--av-color);
box-shadow: 0 0 10px var(--av-color-shadow);
}
/* SINGOLO ELEMENTO */
.av-timeline-step {
position: relative;
padding: 34px 0 38px;
border-bottom: 1px solid var(--av-color-border);
}
.av-timeline-step:last-child {
border-bottom: 0;
padding-bottom: 12px;
}
/* PALLINI */
.av-timeline-dot {
position: absolute;
left: -54px;
top: 43px;
z-index: 2;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid rgba(18, 64, 104, 0.4);
background: #ffffff;
transform: scale(0.85);
transition:
transform 0.4s ease,
background 0.4s ease,
border-color 0.4s ease,
box-shadow 0.4s ease;
}
.av-timeline-dot::after {
content: "";
position: absolute;
inset: -5px;
border-radius: 50%;
border: 1px solid var(--av-color);
opacity: 0;
}
.av-timeline-step.is-active .av-timeline-dot {
transform: scale(1.1);
border-color: var(--av-color);
background: var(--av-color);
box-shadow:
0 0 0 5px var(--av-color-light),
0 0 15px var(--av-color-shadow);
}
.av-timeline-step.is-active .av-timeline-dot::after {
animation: avTimelinePulse 2.2s ease-out infinite;
}
@keyframes avTimelinePulse {
0% {
transform: scale(0.7);
opacity: 0.6;
}
100% {
transform: scale(2.2);
opacity: 0;
}
}
/* CONTENUTI ANIMATI */
.av-timeline-content {
opacity: 0.35;
transform: translateX(12px);
transition:
opacity 0.6s ease,
transform 0.6s cubic-bezier(.22, .7, .2, 1);
}
.av-timeline-step.is-active .av-timeline-content {
opacity: 1;
transform: translateX(0);
}
/* TITOLI */
.av-timeline-title {
margin: 0 0 14px;
font-family: 'Cantarell', sans-serif;
font-size: clamp(19px, 2.2vw, 25px);
font-weight: 500;
line-height: 1.4;
color: #124068;
}
/* TESTI */
.av-timeline-text {
margin: 0;
font-family: 'Cantarell', sans-serif;
font-size: clamp(15px, 1.5vw, 18px);
font-weight: 400;
line-height: 1.8;
color: #333333;
}
.av-timeline-text strong {
font-weight: 700;
color: #124068;
}
/* NUMERO DECORATIVO */
.av-timeline-number {
display: inline-block;
margin-right: 7px;
color: #124068;
font-family: 'Cantarell', sans-serif;
font-size: 0.9em;
font-weight: 500;
opacity: 0.8;
}
/* DESKTOP */
@media screen and (min-width: 768px) {
.av-timeline {
padding-left: 76px;
padding-right: 30px;
}
.av-timeline-line {
left: 23px;
}
.av-timeline-dot {
left: -61px;
top: 42px;
width: 20px;
height: 20px;
}
.av-timeline-step {
padding-top: 36px;
padding-bottom: 42px;
}
.av-timeline-title {
margin-bottom: 16px;
font-size: 25px;
}
.av-timeline-text {
font-size: 17px;
line-height: 1.85;
}
}
/* MOBILE */
@media screen and (max-width: 767px) {
.av-timeline {
padding: 4px 8px 4px 44px;
}
.av-timeline-line {
left: 11px;
}
.av-timeline-dot {
left: -40px;
top: 37px;
width: 17px;
height: 17px;
}
.av-timeline-step {
padding: 27px 0 30px;
}
.av-timeline-title {
font-size: 19px;
line-height: 1.45;
margin-bottom: 12px;
}
.av-timeline-text {
font-size: 15px;
line-height: 1.75;
}
}
/* ACCESSIBILITÀ */
@media (prefers-reduced-motion: reduce) {
.av-timeline-content,
.av-timeline-dot {
transition: none;
}
.av-timeline-step.is-active .av-timeline-dot::after {
animation: none;
}
}