/* --- ROOT & VARIABILI --- */
:root { --legno-scuro: #2c1810; }
:root { --oro-antico: rgba(179,102,43,1.00); }
:root { --oro-chiaro: rgba(118,47,10,1.00); }
:root { --sfondo: rgba(252,250,247,1.00); }
:root { --testo: rgba(0,0,0,1.00); }
:root { --grigio-card: rgba(255,255,255,0.9); }
:root { --link: rgba(11,52,102,1.00); }

/* --- ANIMAZIONI --- */
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

/* --- BASE & LAYOUT AGGIORNATO --- */
body { position: relative; display: block; width: 100%; min-height: 100vh; margin: 0; overflow-x: hidden; font-family: 'Outfit', sans-serif; line-height: 1.6; letter-spacing: 0.02rem; background-color: rgba(246,244,240,1.00); color: var(--testo); }
body::before { content: ""; position: fixed; top: 0; left: 0; display: block; width: 100%; height: 100%; background: url("/assets/img/radica.jpg") center center repeat; transition: opacity 0.5s ease; animation: slowZoom 20s infinite alternate ease-in-out; z-index: -1; }

/* --- SFONDI DINAMICI (PULITI SENZA !IMPORTANT) --- */
html body.b-index-new::before { background-image: url('/assets/img/back-index.webp'); background-repeat: no-repeat; background-position: right top; background-size: cover; }
html body.b-mastrosanti::before { background-image: url('/assets/img/bottega/back-mastrosanti.webp'); background-repeat: no-repeat; background-position: left top; background-size: cover; }
html body.b-maestro-artigiano-toscano::before { background-image: url('/assets/img/bottega/back-maestro_artigiano_toscano.webp'); background-repeat: no-repeat; background-position: right top; background-size: cover; }
html body.b-media-and-press::before { background-image: url('/assets/img/bottega/back-media-and-press.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }
html body.b-show-room::before { background-image: url('/assets/img/bottega/back-show-room.webp'); background-repeat: no-repeat; background-position: right top; background-size: cover; }
html body.b-visite-esperienziali::before { background-image: url('/assets/img/bottega/back-visite-esperienziali.webp'); background-repeat: no-repeat; background-position: left top; background-size: cover; }
html body.b-contatti::before { background-image: url('/assets/img/bottega/back-contatti.webp'); background-repeat: no-repeat; background-position: right top; background-size: cover; }

html body.b-premi-e-riconoscimenti::before { background: url('/assets/img/bottega/back-premi-e-riconoscimenti.webp') no-repeat;center top; background-size: cover; }

/* Mestieri */
html body.b-intaglio::before { background-image: url('/assets/img/mestieri/back-intaglio.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }
html body.b-intarsio::before { background-image: url('/assets/img/mestieri/back-intarsio.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }
html body.b-restauro::before { background-image: url('/assets/img/mestieri/back-restauro.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }
html body.b-laccatura-e-doratura::before { background-image: url('/assets/img/mestieri/back-laccatura-e-doratura.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }

/* Creazioni */
html body.b-intaglio-di-una-cornice::before { background-image: url('/assets/img/creazioni/intaglio/intaglio-di-una-cornice/back-intaglio-di-una-cornice.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }

/* formazione */
html body.b-libro-tarsia::before { background-image: url('/assets/img/formazione/back-libro-tarsia.webp'); background-repeat: no-repeat; background-position: center top; background-size: cover; }




/* --- COMPENSAZIONE (GLASS EFFECT) --- */
.main-wrapper { position: relative; display: block; width: 100%; max-width: 1300px; min-height: 100vh; margin: 0 auto; padding-top: 80px; background: transparent; }
.main-wrapper-offerta { width: 100%; max-width: 1100px; margin: 30px auto 0; padding-top: 30px; background-color: rgba(255, 255, 255, 0.7); }

/* --- NAVBAR DESKTOP --- */
.navbar { position: fixed; top: 0; left: 0; display: flex; flex-flow: row nowrap; align-items: stretch; justify-content: flex-start; gap: 0; width: 100%; margin: 0; padding: 5px 0 0; background: rgba(44,24,16,0.79); border-bottom: 2px solid var(--oro-antico); transition: transform 0.4s ease-in-out, background 0.3s ease; z-index: 1050; }
.navbar.nav-up { transform: translateY(-100%); }
.navbar.nav-down { background: rgba(44, 24, 16, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(0); }
.navbar .container { display: flex; flex-flow: row nowrap !important; align-items: center; justify-content: space-between; gap: 0; width: 100%; max-width: 1100px; margin: 0 auto; }

.header-logo { display: block; width: auto; max-width: 260px; margin: 0; padding: 0; flex-shrink: 0; }
.navbar-brand { display: inline-block; text-decoration: none; cursor: pointer; }
.navbar-nav { display: flex; flex-flow: row nowrap; align-items: stretch; justify-content: flex-start; gap: 5px; margin-left: auto; }
.nav-link { display: block; padding: 10px 15px !important; font-size: 0.85rem; font-weight: 400; line-height: 1.6; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9) !important; transition: 0.3s; }
.navbar-nav a.active { font-weight: 600; background-color: #d4af37; color: rgba(255,255,255,1.00) !important; }
.navbar-nav a.nav-link.dropdown-toggle.active-nav-cat { background-color: rgba(212,175,55,0.50) !important; }
/* --- DROPDOWN DESKTOP --- */
.dropdown-menu { position: absolute; display: block; visibility: hidden; width: auto; margin: 0; padding: 0; background: var(--legno-scuro); border: 1px solid var(--oro-antico); border-radius: 0; opacity: 0; transition: all 0.3s ease-in-out; transform: translateY(10px); z-index: 1000; }
.nav-item.dropdown:hover .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-item { display: block; width: 100%; padding: 8px 15px; font-size: 1.0rem; color: rgba(255,255,255,0.9); transition: background 0.2s, color 0.2s; }
.dropdown-item:hover { background: var(--oro-antico); color: #000; }
.navbar-toggler { display: none; border: 1px solid var(--oro-antico); }
.navbar-toggler-icon { display: inline-block; filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(10deg); }
/* --- TIPOGRAFIA --- */
h1 { display: block; margin: 0 0 20px 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 2.4rem; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
h2 { display: block; margin: 0 0 15px 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.6rem; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
h3 { display: block; margin: 0 0 8px 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
h4 { display: block; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
h5 { display: block; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
h6 { display: block; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--oro-chiaro); text-rendering: optimizeLegibility; }
strong { font-weight: 600; }
p { margin: 0 0 15px 0; font-weight: 400; font-size: 1.15rem; line-height: 1.4; color: rgba(0,0,0,1.00); }
li { font-weight: 300; font-size: 1.15rem; line-height: 1.4; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* --- SEZIONE INTRO --- */
.hero-section { position: relative; display: flex; flex-flow: row nowrap; align-items: flex-end; justify-content: center; gap: 0; width: 100%; height: calc(100vh - 80px); min-height: 550px; padding: 20px 0 30px 0; text-align: center; background: transparent !important; }
.hero-section .container { width: 100%;padding: 30px; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px) saturate(20%) contrast(110%); border: 1px solid rgba(179, 102, 43, 0.4); border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.hero-section .col-lg-10 { width: 100% !important; max-width: 100% !important; }

.attestato { width: 100%; max-width: 80px; margin: 0 auto; filter: none; }
.intro-bottega { position: relative; display: block; width: 100%; text-align: center; }
.intro-bottega p.intro-long { width: 100%; max-width: 900px; margin: 0 auto 20px auto; font-size: 1.2rem; color: #333; }
.intro-bottega p.intro-long strong { font-weight: 700; color: #000; }
.separator-oro { display: block; width: 120px; height: 3px; margin: 40px auto; background: var(--oro-antico); border: none; opacity: 1; }

/* --- MAIN & CONTENUTO GENERALE --- */
main.container { padding-top: 40px; padding-left: 40px !important; padding-right: 40px !important; background: rgba(255, 255, 255, 0.80); backdrop-filter: blur(2px) saturate(10%) contrast(120%); border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

/* --- COMPONENTE BREADCRUMB CUSTOM --- */
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: -20px 0px 20px 0px; }
.breadcrumb-item { font-size: 1.0rem; font-weight: 400; color: rgba(0, 0, 0, 0.8); cursor: default; }
.breadcrumb-item a { display: inline-block; padding: 6px 10px; margin: -6px -10px; text-decoration:underline; color: var(--oro-chiaro);}
.breadcrumb-item a:hover { color:blue; }
.breadcrumb-item + .breadcrumb-item { padding-left: 15px;}
.breadcrumb-item + .breadcrumb-item::before { display: none; content: "/"; float: left; padding: 0; font-weight: 300; color: rgba(0, 0, 0, 0.8); }
/* --- CARD NARRATIVE --- */
.card-artigiano { position: relative; display: flex; flex-flow: column nowrap; align-items: stretch; justify-content: flex-start; gap: 0; width: 100%; height: 100%;/* padding: 25px; */background: transparent; backdrop-filter: none; border: none; border-radius: 0; box-shadow: none; transition: background 0.3s ease; }
.card-artigiano:hover { background: rgba(176, 141, 26, 0.00); }
.card-artigiano img { box-shadow: 6px 6px 12px rgba(0,0,0,0.30); }
.card-artigiano h2 { padding-bottom: 8px; border-bottom: 1px solid var(--oro-antico); }
.card-artigiano .logo-tv { width: 100%; max-width: 160px; }
.card-text p { margin-bottom: 6px; }
.card-text li { line-height: 1.1; margin-bottom: 8px; }
.card-text h3 { margin-bottom: 0px; }
.link-inline { display: inline; font-weight: 600; color: var(--link); border-bottom: 1px solid var(--link); transition: color 0.2s, border-color 0.2s; }
.link-inline:hover { color: #000000; border-bottom-color: var(--oro-antico); }
/* --- SEZIONE MESTIERI --- */
.mestieri { position: relative; display: block; width: 100%; }
.mestieri .card-artigiano { display: block; padding: 30px; }
.titolo-sezione { text-align: center; }
.mestiere-box { position: relative; overflow: hidden; display: block; width: 100%; height: 100%; text-align: left; background: transparent; border: none; background-color: rgba(255,255,255,0.81); border-radius: 14px; box-shadow: 4px 4px 4px rgba(0,0,0,.33); transition: background 0.3s ease; }
.mestiere-box:hover { background: rgba(255,255,255,0.8); box-shadow: 5px 5px 15px rgba(0,0,0,0.55); }
.mestiere-img-container { overflow: hidden; display: block; width: 100%; margin-bottom: 15px; padding: 10px; border-radius: 4px; }
.mestiere-img-container img { box-shadow: 2px 2px 6px rgba(0,0,0,0.33); }
.mestiere-box img { display: block; width: 100%; height: auto; filter: grayscale(10%); transition: transform 0.5s ease, filter 0.5s ease; }
.mestiere-box:hover img { filter: grayscale(0%); transform: scale(1.05); }
.mestiere-box h3 { padding: 0 15px; color: var(--oro-chiaro); }
.mestiere-box p { padding: 0 15px; }
.zoom-thumbnail { transition: transform 0.2s ease-in-out; cursor: pointer; }
.zoom-thumbnail:hover { transform: scale(1.03); }

/* --- FOOTER STRUTTURATO --- */
footer { display: block; width: 100%; margin-top: 40px; padding: 60px 0 30px; background: rgba(255,255,255,0.90);color: #2c1810;border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.2);  }
footer .container { width: 100%;s }

.border-gold-subtle { border-color: rgba(176, 141, 26, 0.2) !important; }
.footer-title { font-size: 1.1rem; margin-bottom: 10px; padding-bottom: 10px; color: var(--oro-chiaro); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(0,0,0,1.00); transition: all 0.2s ease; }
.footer-links a:hover { padding-left: 5px; color: var(--oro-antico); }
.footer-links a.active { font-weight: 600; font-style: oblique; background-color: transparent !important; color: var(--oro-chiaro); }
h2.footer-title.active-cat { border-bottom: 1px solid #d4af37; }
.footer-info { font-size: 0.95rem; line-height: 1.6; margin: 0; }
.footer-social { display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px; }
.social-link { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--oro-antico); transition: 0.2s; }
.footer-tag { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin: 0; color: var(--oro-antico); }
.footer-keywords { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; opacity: 0.6; color: #666; }
.footer-legal { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 15px; font-size: 0.75rem; opacity: 0.7; }
.footer-legal a { text-decoration: underline; color: inherit; }
/* --- FOOTER FORM --- */
.footer-form { display: block; width: 100%; margin: 0 auto; }
.footer-input { display: block; width: 100%; height: 45px; margin-bottom: 10px; padding: 0 15px; font-size: 0.9rem; background: #fff; border: 1px solid #ccc; border-radius: 2px; transition: border-color 0.2s ease; color: #333; }
.footer-textarea { display: block; width: 100%; height: 100px; margin-bottom: 15px; padding: 10px 15px; font-size: 0.9rem; background: #fff; border: 1px solid #ccc; border-radius: 2px; transition: border-color 0.2s ease; color: #333; resize: none; }
.footer-input:focus { border-color: var(--oro-antico); outline: none; }
.footer-textarea:focus { border-color: var(--oro-antico); outline: none; }
.footer-btn { display: inline-block; padding: 10px 35px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; background: #2c1810; border: none; border-radius: 2px; cursor: pointer; transition: background 0.2s ease; color: #fff; }
.footer-btn:hover { background: var(--oro-antico); }
/* --- VARIE --- */
.fluid { width: 100%; height: auto; }






/* ==========================================================================
   BREAKPOINTS - MEDIA MAX-WIDTH
   ========================================================================== */


/* --- viao il logo --- */
@media (max-width: 1360px) {
.main-wrapper {max-width: 920px; padding: 10px; }
.attestato { display:none; }
.hero-section { display: block; height: auto !important; min-height: 0 !important; padding-top: 340px; }
}





/* --- BREAKPOINT TABLET (991.98px) --- */
@media (max-width: 991.98px) {
  body { display: block; position: relative; }
  body::before { display: none !important; }
  .hero-section { display: block; height: auto !important; min-height: 0 !important; padding: 340px 20px 30px 20px !important; background-image: url('/assets/img/radica.jpg'); background-repeat: no-repeat !important; background-size: cover !important; }
 
  /* --- SFONDI DINAMICI HERO-SECTION --- */
  body.b-index-new .hero-section { background-image: url('/assets/img/back-index.webp') !important; background-position: right top !important; }
  body.b-mastrosanti .hero-section { background-image: url('/assets/img/bottega/back-mastrosanti.webp') !important; background-position: left top !important; }
  body.b-maestro-artigiano-toscano .hero-section { background-image: url('/assets/img/bottega/back-maestro_artigiano_toscano.webp') !important; background-position: right top !important; }
  body.b-media-and-press .hero-section { background-image: url('/assets/img/bottega/back-media-and-press.webp') !important; background-position: center top !important; }
  body.b-show-room .hero-section { background-image: url('/assets/img/bottega/back-show-room.webp') !important; background-position: center top !important; }
  body.b-visite-esperienziali .hero-section { background-image: url('/assets/img/bottega/back-visite-esperienziali.webp') !important; background-position:center top !important; }
  body.b-contatti .hero-section { background-image: url('/assets/img/bottega/back-contatti.webp') !important; background-position: right top !important; }
  body.b-premi-e-riconoscimenti .hero-section { background-image: url('/assets/img/bottega/back-premi-e-riconoscimenti.webp') !important; background-position: center top !important; }

  /* Mestieri */
  body.b-intaglio .hero-section { background-image: url('/assets/img/mestieri/back-intaglio.webp') !important; background-position: center top !important; }
  body.b-intarsio .hero-section { background-image: url('/assets/img/mestieri/back-intarsio.webp') !important; background-position: center top !important; }
  body.b-restauro .hero-section { background-image: url('/assets/img/mestieri/back-restauro.webp') !important; background-position: center top !important; }  
  body.b-laccatura-e-doratura .hero-section { background-image: url('/assets/img/mestieri/back-laccatura-e-doratura.webp') !important; background-position: center top !important; }

  /* Creazioni */
  body.b-intaglio-di-una-cornice .hero-section { background-image: url('/assets/img/creazioni/intaglio/intaglio-di-una-cornice/back-intaglio-di-una-cornice.webp') !important; background-position: center top !important; }

	
/* formazione */
  body.b-libro-tarsia .hero-section { background-image: url('/assets/img/formazione/back-libro-tarsia.webp') !important; background-position: center top !important; }	
	
	
	
	
	
  /* --- STRUTTURA LAYOUT & CONTENUTI --- */
  .main-wrapper { position: relative; width: 100%; max-width: 100%; margin-top: 0; padding: 0px; z-index: 1; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .container { width: 100%; max-width: 100%; padding: 0 15px; }
  .navbar { padding: 8px; background: rgba(44,24,16,0.99); }
  .header-logo { max-width: 220px; flex-shrink: 0; }
  .navbar-nav { flex-direction: column !important; align-items: flex-start; }
  .dropdown-menu { position: static; display: block; overflow: hidden; max-height: 0; padding: 0 15px; background: rgba(0,0,0,0.2); border: none; opacity: 0; transition: max-height 0.4s ease-in-out, opacity 0.3s ease; }
  .navbar-toggler { display: block; order: 2; padding: 5px 8px; background-color: #FFFFFF !important; border: none; border-radius: 4px; }
  .navbar-toggler-icon { width: 1.1em; height: 1.1em; filter: invert(1) brightness(0.2); }
  .navbar-collapse { position: absolute; top: 100%; left: 0; width: 100%; padding: 15px; background: rgba(44, 24, 16, 0.95); border-bottom: 2px solid var(--oro-antico); z-index: 1000; }
  .nav-item.dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu, .dropdown-menu.show { max-height: 500px; padding: 10px 15px; opacity: 1; }
  .hero-section .container { max-width: 100%; padding: 24px 20px 20px 20px !important; background: rgba(255,255,255,0.85) !important; backdrop-filter: blur(4px); border: var(--oro-antico) solid 1px; box-shadow: none; }
  .hero-section .container .attestato { display: none; }
  .attestato { display: block; max-width: 160px; }
	main.container { display: block; max-width: 100%; padding: 20px 10px 0 !important; background: transparent; backdrop-filter: none; }
	main.container p, main.container .row > div { margin-bottom: 25px !important; }	
	.breadcrumb { margin: -10px 40px 10px 40px; }
	.card-artigiano { background-color: rgba(255,255,255,1.00); border-radius: 14px; box-shadow: 0 6px 10px rgba(0,0,0,0.2); }	
	.mestieri .row { display: flex; flex-wrap: wrap; }
	.mestieri .row .col-6 { flex: 0 0 50%; }
	.mestieri .row .card-artigiano { padding: 10px 5px !important; }
}









/* --- BREAKPOINT SMARTPHONE (767.98px) --- */
@media (max-width: 767.98px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .navbar { padding: 4px 10px; }
  .header-logo { max-width: 180px; }
	
  .hero-section { display: block; height: auto;padding: 320px 4px 0px 4px !important;  background-size: 800px!important; background-position: center 20% !important; }
	  .hero-section .container { padding: 20px 15px !important; margin-top: 15px;  background-color: rgba(255,255,255,1.00)!important}
	
  main.container { display: block; max-width: 100%; padding: 0 !important; background: transparent; backdrop-filter: none; }
  main.container p, main.container .row > div { margin-bottom: 16px !important; }

	main.container [class*="col-"] { padding: 0 6px !important; }
	
	
  .breadcrumb { margin: -5px 15px 15px 15px; padding-top:15px;}
  .card-artigiano { background-color: rgba(255,255,255,1.00); border-radius: 14px; box-shadow: 0 6px 10px rgba(0,0,0,0.2); padding: 15px !important; }
  .col-md-3.col-6, .mestieri .row .col-6 { flex: 0 0 100%; max-width: 100%; padding: 10px 0 !important; }
	
	.mestiere-img-container ,
	.mestiere-box {box-shadow: none;s}
	
	
  footer { margin-top: 20px; padding: 40px 0 20px; text-align: center; }
  footer .container { padding: 0 15px; }
  .footer-btn { width: 100%; }
}















