@charset "utf-8";

/* ====================================================================
   1. STILI BASE E GLOBALI (estratti da astrobonimba.css)
   ==================================================================== */
body, caption, th {
    text-align: left;
}

*, blockquote, body, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, html, input, li, ol, p, pre, ul {
    margin: 0;
    padding: 0;
}

body, header, section {
    background-color: #11191f;
}

h1, h2 {
    font-style: normal;
}

address, caption, cite, code, h1, h2, h3, h4, h5, h6, pre, th {
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
}

h3, p {
    font-size: 1.1em;
}

ol, ul {
    list-style: none;
}

fieldset, img {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    color: #fff;
    overflow: auto;
    font-family: Arial;
}

header {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

section {
    padding: 1.5em;
    clear: both;
}

.container {
    height: auto !important;
    margin: 0 auto;
    overflow: hidden;
}

.spazio {
    margin-bottom: 30px;
}

h1 {
    font-weight: 700;
    color: red;
    font-size: 2em;
    padding-bottom: .3em;
}

h2, h3, p {
    font-weight: 400;
    color: #ccc;
}

p {
    padding-bottom: .5em;
    line-height: 1.2;
}

a {
    color: #ccc;
    text-decoration: none;
}

a:hover {
    color: red;
    text-decoration: underline;
}

/* ====================================================================
   2. STILI SPECIFICI PER IL CAROSELLO E LA STRUMENTAZIONE
   ==================================================================== */
.astro-carousel {
    position: relative;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
    
.carousel-inner {
    position: relative;
    width: 100%;
    min-height: 450px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}
    
.carousel-item picture {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding-top: 20px;
    padding-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
    
.carousel-item img {
    width: 100%;                  
    height: auto;                 
    max-height: 600px;            
    object-fit: contain;          
    border-radius: 8px;   
}

.carousel-caption {
    padding: 5px 20px 10px 20px; 
    text-align: left;     
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.carousel-caption h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: #ffaa00;
    text-align: center;
}

.carousel-caption p {
    margin: 0;
    font-size: 0.85em;
    color: #ccc;
    font-style: oblique;
}

.carousel-control {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid transparent; 
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.2); 
    border-color: #ffaa00; 
    color: #ffaa00; 
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }
    
ul { 
    list-style-type: disc; 
    margin-left: 20px; 
    padding-left: 20px; 
}

.descr_portfolio { 
    font-size: 1.3em !important; 
    font-style: oblique; 
    color: #fff !important; 
    margin-top: 1.5em; 
}

.dati {
    font-weight: normal; 
    font-style: normal; 
    color: #ccc;
}


/* ====================================================================
   3. MEDIA QUERY E POSIZIONAMENTO LOGO (Standard mipresento)
   ==================================================================== */

/* --- Smartphone (0px - 480px) --- */
@media only screen and (min-width:0px) and (max-width:480px){
    h2, h3 { color: #ccc; }
    .logo, .testo_logo { position: absolute; left: 15%; z-index: 10; }
    .centro, .sx { margin: 0 auto; }
    #menuDemo, .sx, h3 { text-align: left; }
    .dx, .sx { float: none; }
    body { font: .85em/1.35 Arial, "sans-serif"; letter-spacing: .06em; }
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    h1 { font-size: 1.5em; padding-bottom: .3em; }
    .logo { width: 40%; top: 8vw; }
    .testo_logo { font-size: 5vw; top: 26vw; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
    .centro, .dx, .sx { position: relative; }
    .centro { width: 100%; }
    .dati { font-size: 1em; }
}

/* --- Tablet (481px - 800px) --- */
@media only screen and (min-width:481px) and (max-width:800px){
    #menuDemo, h3 { text-align: left; }
    .logo, .testo_logo { position: absolute; }
    body { font: .8em/1.25 Arial, "sans-serif"; letter-spacing: .06em; }
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    .container { max-width: 100%; min-width: 481px; }
    .logo { width: 28%; top: 6vw; left: 13%; z-index: 10; }
    .testo_logo { font-size: 3.8vw; top: 10vw; right: 5vw; z-index: 10; font-family: Arial; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
    .dati { font-size: 1em; }
}

/* --- Laptop e Desktop (da 801px in su) --- */
@media only screen and (min-width: 801px) and (max-width: 1280px) {
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    .container { max-width: 100%; min-width: 801px; }
    .logo { position: absolute; width: 30%; top: .3vw; left: 9%; z-index: 10; }
    .testo_logo { position: absolute; font-size: 4vw; top: 5vw; right: 4vw; z-index: 10; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; font-family: Arial; }
    .dati { font-size: .9em; }
}

@media only screen and (min-width: 1281px) {
    #menuDemo { position: fixed; left: 2%; top: 2%; z-index: 999999990; }
    .container { max-width: 100%; min-width: 1281px; }
    .logo { position: absolute; width: 30%; top: .5vw; left: 8%; z-index: 10; }
    .testo_logo { position: absolute; font-size: 3vw; top: 6vw; right: 5vw; z-index: 10; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; font-family: Arial; }
    .dati { font-size: .9em; }
}

/* --- Layout Flexbox affiancato (schermi grandi >= 801px) --- */
@media only screen and (min-width: 801px) {
    section {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    section > h1, 
    section > h2, 
    section > p:not(.colonna-testo p) {
        width: 100%;
    }

    .colonna-testo {
        width: 48% !important;
        float: none !important;
        margin: 0 !important;
        order: 1;
    }

    .colonna-carosello {
        width: 48% !important;
        float: none !important;
        margin-top: 50px !important; 
        order: 2;
    }
}

