:root
{
    --color-primary: #345382;
    --color-secondary: #95c11f;
    --color-accent: #21a5df;
    --font-primary: 'Work Sans', sans-serif;
    --color-text: #4b5968;
}

html,body
{
  font-family: var(--font-primary);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

@media screen and (max-width:767px) {
    html,body
    {
        font-size: 12px;
    }
}

header {
	position: fixed;
    width: 100%;
	z-index: 2;
	top: 0;
	left: 0;
    padding: 15px;
    /* padding-bottom: 80px; */
    transition: background-color 0.3s ease; 
}
header.scrolled {
	background-color: white;
}
img.logo
{
    height: 90px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease, visibility 0.3s ease;
}
header.scrolled img.logo {
	filter: unset;
    height: 65px;
}

.links-social svg {
    height: 36px;
    width: auto;
    opacity: 0.9;
    fill: white;
}
header.scrolled .links-social svg {
	fill: var(--color-primary);
    opacity: 1;
}

#opening-screen
{
    position: relative;
    min-height: 100vh;
}
.video-container
{
    height: 100vh;
    width: 100vw;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    position: absolute;
    top: 0;
    left: 0;
    background-color: #eee;
    overflow: hidden;
}
@media screen and (max-width:1199px) {
    .video-container
    {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 1px;
        width: 100%;
    }
    #opening-screen
    {
        aspect-ratio: 16 / 9;
        min-height: 1px;
    }
    img.logo
    {
        height: 55px;
    }
    header.scrolled img.logo {
        filter: unset;
        height: 45px;
    }
}

.video-container video
{
    position: absolute;
    top: 50%;
    left: 50%;    
    /* min-height: 101vh; */
    max-width: none;
    max-height: none;
    width: 100%;
    height: 130%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.video-overlay {
	z-index: 1;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.1);
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: safe;
	color: #fff;
	padding: 28px;
	font-size: 2rem;
	line-height: 3rem;
	font-style: italic;
	font-weight: 700;
}

#arrow-scroll-down
{
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    cursor: pointer;
    animation: bounce 2s infinite;
}
#arrow-scroll-down svg {
	height: 55px;
    width: auto;
    opacity: 0.9;
}
#arrow-scroll-down svg path {
    stroke: white;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

main
{
    min-height: 50vh;
    overflow-x: hidden;
}

h1 {
	font-size: 7rem;
	line-height: 6.4rem;
	color: black;
	font-weight: 700;
}

@media screen and (max-width: 767px)    
{
    h1 {
        font-size: 5.5rem;
        line-height: 5.5rem;
    }    
}

p {
	font-size: 1.3rem;
    line-height: 1.9rem;
	color: var(--color-text);
	font-weight: 400;
}

.texttitle,
h2
{
    font-size: 2.5rem;
    line-height: 3.5rem;
    color: black;
    font-weight: 400;
}


.imagebox {
	aspect-ratio: 3 / 4;
	width: 100%;
    position: relative;
}

.imagebox.img1
{
    aspect-ratio: 1 / 1;
}
.imagebox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imagesboxes {
    position: sticky;
    top: 120px;
}

#listacomuni {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#listacomuni .comune {
	font-size: 1.3rem;
    line-height: 1.9rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}
#listacomuni .comune:hover
{
	font-size: 1.3rem;
    line-height: 1.9rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}
#listacomuni .comune.active
{
    font-weight: 600;
    color: var(--color-accent);
}

a.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 1.3rem;
    line-height: 1.9rem;
    margin-top: 40px;
}
a.button:hover {
    background-color: var(--color-primary);
}

.stemmalogo img {
	height: 90px;
	filter: grayscale(20);
	opacity: 0.75;
}

.stemmalogo .text-stemma {
	font-size: 13px;
    line-height: 15px;
    margin-top: 4px;
}


.divider-section
{
    background-color: var(--color-secondary);
    color: white;
}
.divider-section h2
{
    color: white;
}
.divider-section .button
{
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.divider-section .button:hover {
    background-color:  rgba(255, 255, 255, 0.2);
}