/* style.css - Il Tucano Showcase - Bento & Advanced UI */

:root {
    --primary-color: #EE5A00;
    --primary-color-hover: #ff680c;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #20BA56;
    --bg-dark: #0f1115;
    --bg-darker: #08090a;
    --bg-card: #15181e;
    --text-main: #ECECEC;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}
.highlight-text {
    color: var(--primary-color);
    font-style: italic;
}
.mt-30 {
    margin-top: 30px;
}

/* Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9100);
    width: 0%;
    z-index: 9999;
    border-radius: 0 2px 2px 0;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(238, 90, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(238, 90, 0, 0.5);
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--whatsapp-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo-il { color: var(--text-main); }
.logo-tucano { color: var(--primary-color); }

.navbar nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.navbar nav ul li a:not(.btn-primary) {
    font-weight: 600;
    opacity: 0.8;
}

.navbar nav ul li a:not(.btn-primary):hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero .spoiler {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(238, 90, 0, 0.15) 0%, rgba(15, 17, 21, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Servizi Section (Bento Box Grid) */
.servizi {
    padding: 100px 5%;
    background-color: var(--bg-darker);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bento Box Layout */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-vertical {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Glassmorphism Card */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform var(--transition-speed), background var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.watermark-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    color: var(--primary-color);
    opacity: 0.04;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover .watermark-icon {
    transform: scale(1.1);
    opacity: 0.08;
}

.service-card > * {
    z-index: 1;
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1rem;
}

.service-list li svg {
    color: var(--whatsapp-color);
    flex-shrink: 0;
}

.card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.service-link {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    transition: color var(--transition-speed);
    cursor: pointer;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-card:hover {
    transform: scale(1.02);
    background: var(--glass-hover);
    border-color: rgba(238, 90, 0, 0.4);
}

.card-icon {
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: transform var(--transition-speed), color var(--transition-speed), filter var(--transition-speed);
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(238, 90, 0, 0.8));
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p.card-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 120px 5%;
    background-color: var(--bg-dark);
}

.chi-siamo-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.chi-siamo h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.chi-siamo .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.valori-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.valore-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.valore-item h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.valore-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.valore-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contatti Section */
.contatti {
    padding: 100px 5%;
    background-color: var(--bg-darker);
}

.contatti-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.contatti-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contatti-intro {
    margin-bottom: 30px;
}

.contatti-intro h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.contatti-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Map Container */
.map-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.static-map-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: linear-gradient(rgba(24,24,27,0.7), rgba(24,24,27,0.7)), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-main);
    text-decoration: none;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.static-map-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 94, 0, 0.05);
}

.static-map-btn svg {
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform var(--transition-speed);
}

.static-map-btn:hover svg {
    transform: translateY(-5px);
}

.static-map-btn span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Form Styles */
.glass-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.privacy-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}
.privacy-notice a { color: var(--primary-color); text-decoration: underline; }

.form-footer.mt-auto {
    margin-top: auto;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 1rem;
}
.contact-details strong {
    color: #fff;
}
.text-center {
    text-align: center;
}


/* Footer */
footer {
    text-align: center;
    padding: 50px 5%;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-darker);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}
footer strong { color: #fff; }
footer a { color: var(--primary-color); display: inline-block; margin-top: 10px; }
footer a:hover { text-decoration: underline; }

/* =========================================
   Intro Video Overlay & Skip Button
   ========================================= */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2.8s ease-in-out, visibility 2.8s;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-skip {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s, border-color 0.3s;
    z-index: 10000;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large { grid-column: span 2; }
    .bento-vertical { grid-column: span 2; grid-row: span 1; }
    .bento-small { grid-column: span 1; }
    .valori-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .contatti-container { grid-template-columns: 1fr; gap: 40px;}
    .hero h1 { font-size: 3.5rem; }
    .chi-siamo h2 { font-size: 2.8rem; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-vertical, .bento-small { grid-column: span 1; }
    
    .navbar { flex-direction: column; padding: 15px 10px; }
    .navbar nav ul { margin-top: 15px; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .chi-siamo h2 { font-size: 2.2rem; }
    .btn-skip { top: 15px; right: 15px; }
}
