/* ============================================
   SETTIMO CANNATELLA STUDIO — CSS
   Minimalistic One-Page Template
   ============================================ */

   @font-face {
    font-family: 'Heebo';
    src: url('../fonts/Heebo-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/dm-serif-display-v17-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /*--color-bg: #0a0a0a;
    --color-bg: #1e1e2f;*/
    --color-bg: #1e1e2f;
    /*--color-text: #e8e4df;
    --color-text: #f4f6fc;*/
    --color-text: #f5faff;
    /*--color-text-muted: #9a958f;*/
    --color-text-muted: #f4f6fc;
    /*--color-accent: #c8c3bc;
    --color-accent: #8a2be2;*/
    --color-accent: #5546FA;
    --color-line: rgba(255, 255, 255, 0.15);
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Heebo', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: #fff;
    color: #0a0a0a;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Page Layout --- */
.page-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- Left Content Panel --- */
.content-panel {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-panel::-webkit-scrollbar {
    display: none;
}

.content-inner {
   padding: 40px 48px 60px;

    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Top Line Accent --- */
.top-line,.col-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin-bottom: 20px;
    opacity: 0;
    animation: lineReveal 1s var(--ease-out) 0.2s forwards;
    display:none
}
/*.col-line {
    width: 100%;
    height: 1px;
    background: var(--color-line);
    margin-bottom: 20px;
}*/

@keyframes lineReveal {
    from { 
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
    }
    to { 
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* --- Brand --- */
.brand {
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}
.brand-logo-link:hover {
    color: var(--color-text);
    opacity: 1;
}

.brand-logo {
    width: 60px;
    height: 72px;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0rem;
    letter-spacing: 0.02em;
    color: inherit;
}

/* --- Hero Text --- */
.hero-text {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: 0.02em;
    color: var(--color-text);
    opacity: 0;
    padding-bottom: 1rem;
    animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}
.presentazione {
    font-family: var(--font-sans);
    font-size: clamp(1.3rem, 2.4vw, 2.1rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1.28;
    letter-spacing: 0;
    color: var(--color-text);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}
.cosafaccio {
    font-family: var(--font-sans);
    font-size: clamp(1.3rem, 2.4vw, 2.1rem);
    font-weight: 200;
    line-height: 1.28;
    letter-spacing: 0;
    color: var(--color-text);
    margin-bottom: auto;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}
/* --- CTA Button --- */
.cta-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 32px;
    margin-bottom: auto;
    padding: 10px 14px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text);
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1s forwards;
    background: var(--color-accent);
}

.cta-btn:hover {
    color: var(--color-accent);
    background: var(--color-text);
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer Columns --- */
.footer-columns {
    display: flex;
    gap: 40px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

.footer-col {
    flex: 1;
}



.col-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.01em;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* --- Services List --- */
.services-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* --- Contact --- */
.contact-info {
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.contact-links {
    margin-bottom: 20px;
}

.new-business-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 2px;
}

.email-link {
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 5px;
    /*text-decoration-color: rgba(255, 255, 255, 0.3);*/
    text-decoration-color: var(--color-accent);
    font-weight: 400;
    transition: text-decoration-color 0.3s ease, opacity 0.3s ease;
    letter-spacing: 0.01em;
}

.email-link:hover {
    opacity: 1;
    text-decoration-color: var(--color-text);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    letter-spacing: 0.01em;
}

.social-links a {
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 5px;
    /*text-decoration-color: rgba(255, 255, 255, 0.3);*/
    text-decoration-color: var(--color-accent);
    font-weight: 400;
    width: fit-content;
    transition: text-decoration-color 0.3s ease, opacity 0.3s ease;
    
}

.social-links a:hover {
    opacity: 1;
    text-decoration-color: var(--color-text);
}

/* ============================================
   RIGHT — CAROUSEL PANEL
   ============================================ 
   .carousel-slide:first-child img {
    content-visibility: auto;
}
   .carousel-slide:first-child {
    opacity: 1;
    z-index: 2;
}*/
.carousel-panel {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Viewport clips the slides */
.carousel-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Track holds all slides stacked */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide — stacked, fade transition */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
    z-index: 1;
}

.carousel-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide:active {
    cursor: default;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

/* Slide overlay label */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    pointer-events: none;
}

.carousel-slide.is-active .slide-overlay {
    opacity: 1;
}

.slide-label {
    
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 200;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.3;
    font-style:italic;
    
}
.slide-label em {
    font-family: var(--font-sans);
    font-style:normal;
    font-weight: 400;
}

/* --- Carousel Navigation --- */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 90%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.nav-btn {
    width: 48px;
    height: 48px;
    /*border: 1px solid rgba(138, 43, 223, 0.8);*/
    border: 1px solid rgba(85, 70, 250, 0.8);
    border-radius: 50%;
   /* background: rgba(0, 0, 0, 0.4);
    background: rgba(138, 43, 223, 0.4);*/
    background: rgba(85, 70, 250, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.nav-btn:hover {
    background: rgba(06, 06, 19, 0.9);
    border-color: rgba(06, 06, 19, 0.9);
    color:#5546FA;
    transform: scale(1.08);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .content-inner {
        padding: 32px 36px 48px;
    }

    .hero-text {
        font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    }

}

/* Mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .page-wrapper {
        flex-direction: column;
        height: auto;
    }

    .content-panel {
        flex: none;
        max-width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .content-inner {
        padding: 28px 24px 40px;
    }

    .hero-text {
        font-size: 2rem;
        padding-bottom: 1rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 32px;
    }

    .carousel-panel {
        flex: none;
        max-width: 100%;
        height: 70vh;
    }

}

/* Small Mobile */
@media (max-width: 480px) {
    .content-inner {
        padding: 20px 18px 32px;
    }

    .hero-text {
        font-size: 2rem;
    }

    .carousel-panel {
        height: 55vh;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
    .carousel-nav {
    left: 80%;
}
}
#home.home-particles {
	background: #0a0a0a;
	overflow: hidden;
}
#home.home-particles .pg-canvas {
	position: absolute;
	top: 0;
	left: 0;
	height: 100% !important;
	width: 100% !important;
	opacity: .12;
}
#home.home-particles .shadow-overlay {
	display: none;
}