@font-face {
    font-family: 'Din';
    src: url('font/D-DIN.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Din_Bold';
    src: url('font/D-DIN-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Din', sans-serif;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

h1, p, a {
    margin: 0;
    padding: 0;
}

.site-header {
    position: sticky;    
    top: 0;    
    z-index: 10;    
    background-color: rgba(255, 255, 255, 0.95);   
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    padding: 10px 50px;
}

.nav-bar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: nowrap;
}

.nav-bar a,
.nav-bar a:link,
.nav-bar a:visited,
.nav-bar a:active {
    color: black;           
    text-decoration: none;  
    margin-left: 15px;
    font-weight: bold;
}

.nav-bar a:hover {
    text-decoration: underline;
}

.nav-left a {
    margin-left: 0;
}

.nav-right {
    display: flex;
    gap: 15px; 
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: auto;
    padding: clamp(20px,6vw,80px);
}

body.home {
    background-image: url('img/OTTO_sfondo.png');
    background-repeat: no-repeat;
    background-position: right -20vw top -10vw;
    background-size: clamp(600px,70vw,1400px);
}

.hero-left {
    position: relative;
    left: 70px;
}

.hero-logo {
    width: 100%;
    max-width: 550px;
    height: auto;
}

.hero-text {
    position: relative;
    left: -100px;
    max-width: 650px;
    z-index: 2;
}

.hero-text h1 {
    text-align: right;
    font-size: 50px;
    font-weight: 400;
}

.hero-text p {
    font-weight: bold;
    font-size: clamp(18px,2vw,26px);
    margin-top: 50px;
}

.hero-text a {
    color: inherit;        
    text-decoration: none;   
    display: inline-block;  
}

.hero-text h1:nth-of-type(1) a:hover { color:#821461; }
.hero-text h1:nth-of-type(2) a:first-of-type:hover { color:#12a3d3; }
.hero-text h1:nth-of-type(2) a:last-of-type:hover { color:#18ac22; }
.hero-text h1:nth-of-type(3) a:first-of-type:hover { color:#9f582f; }
.hero-text h1:nth-of-type(3) a:last-of-type:hover { color:#e2e925; }
.hero-text h1:nth-of-type(4) a:hover { color:#fa9200; }

.line {
    display: inline-block;
    width: clamp(40px,8vw,120px);
    border-bottom: 3px solid black;
    transform: translateY(-6px);
}

.images-left {
    position: relative;
    width: clamp(280px, 30vw, 420px);
}

.freccia-img {
    width: 60%;
    position: absolute;
    top: 20%;
    left: clamp(-80px, -10vw, -30px);
    z-index: 2;
}

.cascata-img {
    width: 100%;
    position: relative;
    z-index: 1;
}

.lorem-container {
    max-width: 600px;
}

.lorem-container h1 {
    font-family: 'Din_Bold';
    font-size: clamp(32px,4vw,50px);
    text-align: center;
}

.lorem-container p {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.7;
}

.route-img {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 100px 0 50px 0;
    padding-bottom: 50px;
}

.title-top{
    font-size:70px;
}

.title-bottom{
    font-size:70px;
    display:flex;
    align-items:flex-end;
    gap:15px;
}

.italic{
    font-style:italic;
}

.small{
    font-size:24px;
    font-weight:normal;
    margin-left:20px;
}

.green{color:#3a9c2f;}
.blue{color:#1e87c8;}
.black{color:#000;}

.yellow-bar{
    width:8px;
    height:80px;
    background:#ffd600;
}

.offer-main{
    font-size:36px;
    color:#273c75;
    font-weight:600;
}

.offer-sub{
    font-size:32px;
    color:#3a9c2f;
    font-weight:600;
}

.offer-en{
    font-size:18px;
    color:#273c75;
}

.steps{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    transform:skewY(-5deg);
}

.step{
    display:flex;
    align-items:center;
    gap:20px;
}

.num{
    font-size:40px;
    color:#273c75;
    font-weight:bold;
}

.step-title{
    font-size:32px;
    color:#273c75;
}

.step-sub{
    font-size:26px;
    color:#3a9c2f;
}

.qr{
    margin-top:60px;
    transform:skewY(-5deg);
}

.qr img{
    width:120px;
}

.qr p{
    color:#273c75;
    margin-top:10px;
    font-size:14px;
}

.footer {
    width: 100%;
    height: auto;
    display: block;
}

.app-img {
    width: 100%;
    height: auto;
}

.app-wrapper {
    position: relative;
    width: 100%;
}

.col {
    flex: 1;
    text-align: center;
}


.col-img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: block;
}

.columns-header {
    text-align: left;
    margin-bottom: 40px;
    flex: 0 0 100%;
}

.columns-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}


.col h1 {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    font-weight: bold;
}

.col p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}


.site-footer {
    width: 100%;
}

.info-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 4vw, 90px);
    padding: clamp(40px, 5vw, 120px);
    max-width: min(1800px, 90vw);
    margin: auto;
}

.map-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(30px,6vw,80px);
    padding: clamp(40px,6vw,80px);
    
    margin: auto;
}

.map-bg-img {
    position: absolute;

    left: -760px;
    top: -200px;

    width: 1300px;
    height: auto;

    z-index: 0;
    pointer-events: none; 
}

.map-left-space {
    position: relative;
    width: clamp(260px,30vw,500px);
    aspect-ratio: 1/1;
}

.map-container {
    flex: 2;

}

.map-img {
    width: 100%;
  
    height: auto;   
    display: block;
}

.legend-img {
    width: clamp(120px,10vw,180px);
    margin-top: 190px;
    transform: translateX(-80px);
}

.map-wrapper {
    position: relative;
    width: 100%;
    
}

.map-point {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFD600;
    border: 3px solid #000;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-point:hover {
    background: #ff5722;
    transform: translate(-50%, -50%) scale(1.2);
}



body.cascata {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.cascata {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
}

.divider {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.cascata p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.cascata h1 { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-left: 120px; 
    display: inline-block; 
}

.bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
}

.cascata-text {
    margin-left: 150px;
}

.rondine {
    width: 100%;
}

.torre {
    position: absolute;
    bottom: 2%;
    left: 10%;
    width: 90px;
}

.gambero {
    width: 100%;
}

body.arrone {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.arrone {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number2 {
    position: absolute;
    top: -5%;
    left: -2%;
    width: 120px;
}

.divider2 {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.arrone p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.arrone h1 { 
    font-size: 2rem; font-weight: bold; 
    margin-left: 120px; 
    display: inline-block; 
}

.arrone-text {
    margin-left: 150px;
}

.tortora {
    width: 100%;
}

.porta {
    position: absolute;
    bottom: -32%;
    left: 10%;
    width: 150px;
}

body.montefranco {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.montefranco {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number3 {
    position: absolute;
    top: -5%;
    left: -2%;
    width: 120px;
}

.divider3 {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.montefranco p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.montefranco h1 { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-left: 120px; 
    display: inline-block; 
}

.montefranco-text {
    margin-left: 150px;
}

body.ferentillo {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.ferentillo {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number4 {
    position: absolute;
    top: 0%;
    left: -2%;
    width: 120px;
}

.divider4 {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.ferentillo p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.ferentillo h1 { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-left: 120px; 
    display: inline-block; 
}

.ferentillo-text {
    margin-left: 150px;
}

.mura {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
}

.falco {
    width: 100%;
}

body.scheggino {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.scheggino {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number5 {
    position: absolute;
    top: -7%;
    left: -1%;
    width: 120px;
}

.divider5 {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.scheggino p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.scheggino h1 { 
    font-size: 2rem; font-weight: bold; margin-left: 120px;
    display: inline-block; 
}

.scheggino-text {
    margin-left: 150px;
}

.chiesa {
    position: absolute;
    bottom: -10%;
    left: 0%;
    width: 260px;
}

.trota {
    width: 100%;
}

body.anatolia {
    margin: 0;
    padding: 40px;
    position: relative;
    background-color: #fff;
}

.anatolia {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.arrow-number6 {
    position: absolute;
    top: 0%;
    left: -1%;
    width: 120px;
}

.divider6 {
    height: 4px;
    background-color: #000;
    width: 100%;
    margin: 20px 0;
}

.anatolia p {
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 150px;
}

.anatolia h1 { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-left: 120px;
    display: inline-block; 
}

.anatolia-text {
    margin-left: 150px;
}

.anatolia-img {
    position: absolute;
    bottom: -10%;
    left: 10%;
    width: 170px;
}

.topo {
    width: 100%;
}

.cascata-testo {
    width: 90%;
}

.arrone-testo {
    width: 90%;
}

.montefranco-testo {
    width: 90%;
}

.ferentillo-testo {
    width: 90%;
}

.scheggino-testo {
    width: 90%;
}

.anatolia-testo {
    width: 90%;
}

.scroll-down {
    width: 100%;
    text-align: center;
    margin-top: -90px;
    position: relative;
    z-index: 10;
}

.scroll-down a {
    display: inline-block;
    text-decoration: none;
}

.arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-left: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: rotate(-45deg);
    animation: bounce 1.5s infinite;
    position: relative;
    top: -20px;
    left: 70px;
}

.hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-link {
    position: absolute;
    left: 15%;
    top: 90%;
    width: 30%;
    height: 4%;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

.map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-path {
    fill: none;
    stroke: transparent;
    stroke-width: 40; 
    cursor: pointer;
    pointer-events: stroke; 
}

.map-path.visual {
    stroke: red;
    stroke-width: 6;
    pointer-events: none;
}

/*
.map-path:hover {
    stroke: rgba(255, 0, 0, 0.3);
}*/

.news-section{
    padding:60px;
    background:#f4f4f4;
}

.news-section h2{
    font-size:32px;
    margin-bottom:40px;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    text-align: center;
}

.news-image {
    width: 100%;
    max-width: 250px;
    min-width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.news-card h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    font-weight: bold;
}

.news-line{
    height:4px;
    width:80%;
    background:black;
    margin:10px auto 20px auto;
}

.news-card p{
    color:#777;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.news-card a{
    color:#1e88e5;
    text-decoration:none;
}

.news-card a:hover{
    text-decoration:underline;
}

.app-section {
    display: flex;
    justify-content: center;
}

@media (min-width: 1800px) {
    .info-section {
        max-width: 1800px;
    }

    .images-left {
        width: 550px;
    }

    .lorem-container {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {

    .hero-main {
        flex-direction: column;    
        justify-content: center;
        align-items: center;        
        text-align: center;
    }

    .hero-left {
        left: 0;                  
    }

    .hero-logo {
        max-width: 100%;             
    }

    .app-wrapper {
        width: 100%;
    }

    .app-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .map-section{
        flex-direction: column;
        align-items: center;
        text-align:center;
    }

    .map-container{
        width: 100%;
    }

    .map-img {
        left: -150px;
        top: -100px;
        width: 500px;
    }

    .map-left-space {
        display: none;
    }

    .legend-img {
        display: none;
    }

    .hero-main {
        flex-direction:column;
        text-align:center;
    }

    .hero-text {
        left: 0;             
        text-align: center;   
        max-width: 100%;
    }

    .hero-text h1 {
        text-align: center;   
        font-size: 32px;      
    }

    .hero-text p {
        margin-top: 20px;    
        font-size: 18px;     
    }

    .info-section {
        flex-direction: column;
        text-align: center;
    }

    .images-left {
        width: 100%;
        max-width: 400px;
    }

    .lorem-container h1 {
        text-align: center;
    }

    .freccia-img {
        display: none;
    }

    .scroll-down {
        display: none;
    }

    .site-header {
        position: relative;
        padding: 10px 20px; 
    }

    .nav-bar {
        flex-direction: column;   
        align-items: flex-start;  
        gap: 10px;
    }

    .nav-right {
        flex-direction: column;   
        width: 100%;
        gap: 10px;
    }

    .nav-bar a {
        margin-left: 0; 
    }

    body.home {
        background: none;
    }

    .news-section {
        padding: 30px 20px;
    }

    .news-container {
        grid-template-columns: 1fr; 
    }

    .arrows {
        display: none;
    }

    .site-footer {
        width: 100%;
    }

    .cascata-testo {
        width: 100%;
    }

    .rondine {
        width: 100%;
    }

    .arrone-testo {
        width: 100%;
    }

    .montefranco-testo {
        width: 100%;
    }

    .ferentillo-testo {
        width: 100%;
    }

    .scheggino-testo {
        width: 100%;
    }

    .anatolia-testo {
        width: 100%;
    }

    .map-point {
        display: none;
    }
}

@media (min-width: 1600px) {
    .info-section {
        max-width: 1500px;
    }
}

@media (min-width: 2000px) {
    .info-section {
        max-width: 1800px;
    }
}