
/* Touch e schermi piccoli */
*,*::before,*::after{box-sizing:border-box}img{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}button,.choice,.room,select{min-height:44px}input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}input:not([type=checkbox]):not([type=radio]){min-height:44px}input,textarea,select{scroll-margin-block:110px}main,section,.choices,.field{min-width:0}html{scroll-padding-bottom:100px}body{overflow-wrap:break-word}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2c777c;outline-offset:3px}.install-app{margin:12px;min-height:44px;padding:10px 16px;border:1px solid #638b89;background:#e8f0ee;color:#183f3e;border-radius:6px}.install-app[hidden]{display:none}
@media(max-width:700px){header{flex-wrap:wrap;height:auto;gap:12px;padding:16px}header nav{flex-wrap:wrap;gap:12px}header nav a{display:inline-flex;align-items:center;min-height:44px}.choices,.room-grid{min-width:0}.choice{overflow-wrap:anywhere}body:has(input:focus) .stickyfoot,body:has(textarea:focus) .stickyfoot,body:has(select:focus) .stickyfoot{position:static}footer{padding-bottom:env(safe-area-inset-bottom,0px)}}

/* Stable compact progress: no scroll-dependent height changes. */
:root{--progress:#913b73;--progress-soft:#f4e9f1}
.journey,.journey.compact{position:sticky;top:8px;padding:10px 14px;margin-bottom:22px;background:#fffafef5;border:1px solid #e4cddd;border-radius:10px;transition:none;backdrop-filter:blur(10px)}
.journey-top{display:flex;align-items:center;gap:12px;min-height:44px}.journey-service{flex:0 0 110px}.journey-service select{width:100%;min-height:44px;padding:8px 10px;background:white;border:1px solid #d4b5ca;border-radius:6px;color:#6f2855;font-weight:600}
.journey-location{font-size:13px;color:#6f2855;line-height:1.3}.journey-track,.journey.compact .journey-track{height:5px;margin:7px 0;background:#eadce5}.journey-track span{background:var(--progress)}
.journey .journey-steps,.journey:has(.journey-step:nth-child(6)) .journey-steps{display:flex;justify-content:space-between;gap:4px;row-gap:0}
.journey .journey-step,.journey.compact .journey-step{flex:1;flex-direction:row;justify-content:center;min-height:44px;padding:0;gap:0}
.journey .journey-step b{display:none}.journey .journey-step span{width:25px;height:25px;font-size:12px;border-color:#cdb8c5;background:#fff;color:#7a6672;flex-shrink:0}
.journey .journey-step.current span{background:var(--progress);border-color:var(--progress);color:white;box-shadow:0 0 0 3px #eed5e5}.journey .journey-step.past span{background:#eed9e6;color:#6b2c52;border-color:#b9789f}
.journey .journey-detail{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.choice,.choice>span,.regular-grid .choice>span,.garden-photo-question .choice>span{overflow-wrap:normal;word-break:normal;hyphens:none}
.small-gallery .photo-grid{max-width:420px}.small-gallery .photo{max-height:260px}
.question-group,.question{scroll-margin-top:155px}
@media(max-width:700px){
 .journey,.journey.compact{top:0;margin:0 0 20px;padding:8px 10px;border-radius:0 0 10px 10px}
 .journey-location{font-size:12px}.journey-top{gap:10px}.journey-service{flex-basis:90px}
 aside .route-links,aside .mobile-navigation,aside .eyebrow,aside .help{display:none}aside{padding:8px 16px!important}aside .back-home{margin:0}
 .opening{padding:16px}.opening-pair .choices{grid-template-columns:1fr!important}.opening .choice{width:100%;font-size:16px;padding:12px}.opening .choice span{white-space:normal;overflow-wrap:normal}
 .regular-grid .choices:not(.rating){grid-template-columns:repeat(2,minmax(0,1fr))!important}.regular-grid .choice{font-size:13px;padding:10px 8px;gap:7px}.regular-grid .choice .line-icon{width:22px;height:22px;margin:0}
 .regular-grid.numeric-grid.cols-5 .choices:not(.rating){grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .regular-grid .choice>span{min-width:0}.regular-grid.visual-choice-grid .choice{font-size:12px}
 .question{padding:16px}.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room{overflow-wrap:normal;word-break:normal}
}
@media(max-width:360px){.regular-grid .choices:not(.rating){grid-template-columns:1fr!important}.regular-grid.numeric-grid.cols-5 .choices:not(.rating){grid-template-columns:repeat(3,minmax(0,1fr))!important}.room-grid{grid-template-columns:1fr}}
@media print{.journey{display:none!important}}

.measurement-icon{width:28px;height:28px;margin-right:10px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}

/* Revisione 5 novembre: servizi in linea e fasi collegate senza cambi di altezza. */
.service-tabs{display:flex;gap:4px;align-items:center;margin-bottom:4px}.service-tabs button{min-height:36px;padding:6px 13px;border:1px solid transparent;background:transparent;border-radius:6px;color:#52605a;font:600 13px Arial}.service-tabs button.active{background:#913b73;color:#fff}.service-tabs button:disabled{opacity:.45;cursor:default}.service-tabs button:disabled:not(.active){color:#6d716c}
.journey-progress-row{position:relative;display:grid;grid-template-columns:112px minmax(0,340px);align-items:center;gap:6px;min-height:42px}.journey-location{font-size:12px;max-width:112px}.journey .journey-steps,.journey:has(.journey-step:nth-child(6)) .journey-steps{position:relative;z-index:1;gap:0;justify-content:space-between}.journey .journey-step,.journey.compact .journey-step{flex:0 0 26px;min-height:38px;background:transparent;border:0;box-shadow:none}.journey .journey-step span{width:26px;height:26px}.journey .journey-step.past span{background:#913b73;color:#fff;border-color:#913b73}.journey .journey-step.current span{box-shadow:0 0 0 2px #efdaE7}
.journey .journey-track,.journey.compact .journey-track{position:absolute;left:131px;right:calc(100% - 445px);top:50%;height:3px;margin:0;max-width:314px;z-index:0;border-radius:0;pointer-events:none}.journey-track span{transition:none}.choice.choice-free:not(.chosen){background:#eeefed;border-color:#d6d9d5}.choice-tools{margin-top:12px}.palette-inline{width:100%;height:auto;display:block}.regular-grid.cols-2 .choices{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.service-tabs{justify-content:center}.service-tabs button{flex:1;max-width:120px;min-height:32px;padding:5px 9px}.journey-progress-row{grid-template-columns:94px minmax(0,1fr);gap:6px}.journey-location{max-width:94px;font-size:11px}.journey .journey-track,.journey.compact .journey-track{left:113px;right:13px;max-width:none}.journey .journey-step span{width:24px;height:24px}.journey .journey-step,.journey.compact .journey-step{flex-basis:24px}.journey .journey-step b{display:none}.choice-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:359px){.journey-progress-row{grid-template-columns:82px minmax(0,1fr)}.journey-location{max-width:82px}.journey .journey-track,.journey.compact .journey-track{left:100px}.regular-grid.cols-2 .choices{grid-template-columns:1fr}}

/* Revisione sintetica: nome fase, poi punti sull’intera larghezza. */
.journey,.journey.compact{padding:6px 12px;border-radius:6px;background:#fff}
.service-tabs{margin:0;justify-content:center}.service-tabs button{min-height:30px;padding:4px 14px}
.journey-location{max-width:none;width:100%;white-space:nowrap;font-size:12px;line-height:18px;font-weight:600;margin:2px 0 0}
.journey-progress-row{display:block;min-height:30px;width:100%}
.journey .journey-steps,.journey:has(.journey-step:nth-child(6)) .journey-steps{width:100%;max-width:none;justify-content:space-between}
.journey .journey-step,.journey.compact .journey-step{min-height:30px;flex-basis:24px}
.journey .journey-step span{width:22px;height:22px;font-size:11px}
.journey .journey-track,.journey.compact .journey-track{left:12px;right:12px;max-width:none;top:50%;height:3px}
.choice-tools{margin:0 0 10px}.choice-free .visual-icon,.choice-free .line-icon{display:none}

.question#I4-12 .visual-examples img{max-height:220px;object-fit:cover}
@media(max-width:700px){.journey,.journey.compact{padding:4px 10px;top:0}.service-tabs button{min-height:28px}.journey-location{font-size:11px;line-height:16px}.journey-progress-row{min-height:28px}.journey .journey-step,.journey.compact .journey-step{min-height:28px}.journey .journey-step span{width:21px;height:21px}.journey .journey-step.current span{box-shadow:none}.choice-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Informazioni disponibili: tre voci per riga, anche su iPhone. */
#I0-2.regular-grid .choices:not(.rating){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
#I0-2.regular-grid .choice{min-height:48px;padding:8px;gap:6px;line-height:1.25;font-size:13px}
#I0-2.regular-grid .choice .visual-icon,#I0-2.regular-grid .choice .line-icon{width:20px;height:20px;min-width:20px;flex-basis:20px}
@media(max-width:600px){#I0-2.regular-grid .choice{padding:8px 6px;font-size:12px;flex-wrap:wrap;align-content:center}#I0-2.regular-grid .choice>span{flex:1 1 60px}}

/* Revision 6 November: compact requested rows, restrained paired galleries. */
#Q04-05 .choices,#I-dining-guests .choices,#I7-wallpaper .choices,article[id^="Q10-08"] .choices{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#Q04-06 .choices{grid-template-columns:repeat(4,minmax(0,1fr))!important}
#Q04-06 .choice,#Q04-05 .choice,article[id^="Q10-08"] .choice{padding:10px 7px;font-size:13px;min-width:0}
#Q04-06 .choice .line-icon,#Q04-06 .choice .visual-icon{display:none}
#floorMode .choices,#Q07-01 .choices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#Q06-01 .option-photo{aspect-ratio:4/3;height:auto;max-height:300px;object-fit:cover}
#Q08-02 .visual-examples,#Q08-03 .visual-examples,#wall-PAR-ETH1 .visual-examples,#wall-PAR-TEXT1 .visual-examples,#wall-PAR-LAND1 .visual-examples{max-width:650px;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
#Q08-02 .visual-examples img,#Q08-03 .visual-examples img,#wall-PAR-ETH1 .visual-examples img,#wall-PAR-TEXT1 .visual-examples img,#wall-PAR-LAND1 .visual-examples img{width:100%;height:170px;object-fit:contain;background:#f5f4f0}
#fireplace .visual-examples{max-width:480px;grid-template-columns:1fr}#fireplace .visual-examples img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
#I8-10 .visual-examples img,#I7-desk .visual-examples img,#I8-2 .visual-examples img{object-fit:contain!important;width:100%;height:auto;max-height:320px}
@media(max-width:600px){#Q08-02 .visual-examples img,#Q08-03 .visual-examples img,#wall-PAR-ETH1 .visual-examples img,#wall-PAR-TEXT1 .visual-examples img,#wall-PAR-LAND1 .visual-examples img{height:125px}#Q04-06 .choice{font-size:12px;gap:4px;padding:8px 4px}}

/* Final visual review: wide examples, legible originals, centered return control. */
.back-to-top{left:50%;right:auto;transform:translateX(-50%);bottom:calc(88px + env(safe-area-inset-bottom,0px))}
#fireplace .visual-examples,#I4-12 .visual-examples{width:100%;max-width:900px;grid-template-columns:minmax(0,1fr)}
#fireplace .visual-examples img,#I4-12 .visual-examples img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:2/1;object-fit:cover;object-position:center}
#Q11-05 .visual-examples .full-width-original{grid-column:1/-1;width:100%}
#Q11-05 .visual-examples .full-width-original img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
#Q08-02 .visual-examples,#Q08-03 .visual-examples,#wall-PAR-ETH1 .visual-examples,#wall-PAR-TEXT1 .visual-examples,#wall-PAR-LAND1 .visual-examples{width:100%;max-width:none}
#Q08-02 .visual-examples img,#Q08-03 .visual-examples img,#wall-PAR-ETH1 .visual-examples img,#wall-PAR-TEXT1 .visual-examples img,#wall-PAR-LAND1 .visual-examples img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:cover}
#Q06-01 .option-photo{aspect-ratio:16/9;height:auto;object-fit:cover}
#Q12-08 .photo-grid img,#I3-9 .photo-grid img{width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:contain}
#Q08-01 .example-photo{aspect-ratio:16/9;height:auto;min-height:0}
article[id^="Q11-05"] .visual-examples .full-width-original{grid-column:1/-1;width:100%}
article[id^="Q11-05"] .visual-examples .full-width-original img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
article[id^="Q12-08"] .photo-grid, #I3-9 .photo-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:none}
article[id^="Q12-08"] .photo-grid img,#I3-9 .photo-grid img{width:100%;max-height:none;height:auto;aspect-ratio:16/9;object-fit:contain}
/* Scoped approved-photo repair. Keep subjects and choices intact. */
article[id^="Q13-04"] .photo-grid img{width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:contain}
article[id^="Q13-02"] .photo-grid img,#Q15-01 .photo-grid img{width:100%;height:auto;max-height:none;object-fit:contain}
article[id^="Q12-12"] .visual-examples{grid-template-columns:repeat(2,minmax(0,1fr))}
article[id^="Q12-13"] .visual-examples{grid-template-columns:repeat(3,minmax(0,1fr))}
article[id^="Q12-12"] .visual-examples img,article[id^="Q12-13"] .visual-examples img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;max-height:none}
#I6-12 .visual-examples img,#Q08-01 .example-photo{height:auto;aspect-ratio:16/9;object-fit:cover}
@media(max-width:600px){article[id^="Q12-13"] .visual-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* An enlarging photo stays a separate action from selecting its answer. */
.photobtn[onclick^="zoom("],.zoom-photo-frame,.zoom-chip{position:relative;cursor:zoom-in}
.photobtn[onclick^="zoom("]::after,.zoom-photo-frame::after,.zoom-chip::after{content:"+";position:absolute;right:4px;bottom:4px;display:grid;place-items:center;width:23px;height:23px;background:rgba(24,37,39,.83);color:#fff;border:1px solid #fffd;border-radius:50%;font:600 19px/1 system-ui;box-sizing:border-box;pointer-events:none;z-index:1}
.zoom-photo-frame{display:inline-grid;line-height:0;overflow:hidden;align-self:center;min-width:0}
.zoom-photo-frame>img{grid-area:1/1;width:100%;height:100%;min-height:0;min-width:0;object-fit:inherit;border-radius:inherit;display:block}
.question.visual-choice-grid .choices .choice>.zoom-photo-frame{grid-column:1/-1;grid-row:1;align-self:stretch}
.zoom-photo-frame:focus-visible,.zoom-chip:focus-visible{outline:2px solid #82366b;outline-offset:2px}
article:is([id^="Q12-13"],#I3-12) .visual-examples img{aspect-ratio:16/9;width:100%;height:auto;max-height:none}
article[id^="Q12-14"] .visual-examples img{width:100%;height:auto;aspect-ratio:1;max-height:none;object-fit:contain}
:is(#Q17-01,#Q17-02,#Q17-03,#Q17-04,#Q17-05,#Q04-14,article[id^="Q12-11"]) .photo-grid{width:min(100%,740px);margin-inline:auto}
article[id^="Q12-11"] .photo-grid{max-width:590px}
:is(article[id^="Q12-03"],article[id^="Q12-04"],#Q17-06) .photo-grid{width:min(100%,850px);margin-inline:auto}
:is(article[id^="Q12-03"],article[id^="Q12-04"],#Q17-06) .photo-grid img{width:100%;height:auto;max-height:480px;object-fit:contain}
@media print{.photobtn::after,.zoom-photo-frame::after,.zoom-chip::after{display:none!important}}
